Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » PhaseListener after phase 'PROCESS_ACTION'
PhaseListener after phase 'PROCESS_ACTION' [message #653326] Wed, 09 February 2011 11:52 Go to next message
Hussein Kobeisi is currently offline Hussein KobeisiFriend
Messages: 49
Registered: December 2010
Member
hey ppl,

i have this error when i try to switch from one view to another :

2011-02-09 12:46:24.004:WARN:/:ERROR: Could not execute PhaseListener after phase 'PROCESS_ACTION'.
java.lang.ClassCastException: org.eclipse.swt.layout.GridData cannot be cast to org.eclipse.swt.layout.FillData
at org.eclipse.swt.layout.FillLayout.flushCache(FillLayout.java :164)
at org.eclipse.swt.widgets.Composite.changed(Composite.java:602 )
at org.eclipse.swt.internal.graphics.TextSizeDeterminationHandl er$1.doVisit(TextSizeDeterminationHandler.java:86)
...


any ideas what this can be?

another Problem : i defined an OSGI in a Plugin in Order to register and getServiceReference from the BundleContext.. the Bundles are activated i checked the console but no services are registered i always get null... java.lang.NullPointerException: A null service reference is not allowed.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:660)

am i doing something wrong?

thx for your replies,

regards,
Hussein
Re: PhaseListener after phase 'PROCESS_ACTION' [message #653344 is a reply to message #653326] Wed, 09 February 2011 13:13 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Hussein,

here's the answer to your problem:

http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg04293.html

Regards, Ralf

--
Ralf Sternberg

Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: PhaseListener after phase 'PROCESS_ACTION' [message #653783 is a reply to message #653326] Fri, 11 February 2011 07:40 Go to previous messageGo to next message
Hussein Kobeisi is currently offline Hussein KobeisiFriend
Messages: 49
Registered: December 2010
Member
thx Ralf,
what about this ?

i defined an OSGI in a Plugin in Order to register and getServiceReference from the BundleContext.. the Bundles are activated i checked the console but no services are registered i always get null...

any ideas?

regards, Hussein
Re: PhaseListener after phase 'PROCESS_ACTION' [message #656397 is a reply to message #653326] Fri, 25 February 2011 12:50 Go to previous messageGo to next message
Hussein Kobeisi is currently offline Hussein KobeisiFriend
Messages: 49
Registered: December 2010
Member

hi Ralf,

can you explain a little how to solve the Problem...
i found the bug in my Code!! is there a way other than :
button.setLayoutData( new GridData() ); // BAD !!!
to setLayoutData...


thx for your help ..

Regards,
Hussein

Re: PhaseListener after phase 'PROCESS_ACTION' [message #656529 is a reply to message #656397] Sat, 26 February 2011 11:08 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Hussein,

the type of the layout data attached to a control must correspond to the
type of the layout of its parent. As an example, if you have a Composite
that has a RowLayout, you can only attach layout data of type RowData to
its children. If one of the children has, for example, a GridData
attached, you will get a ClassCastException.

Regards, Ralf

--
Ralf Sternberg

Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Understanding the RWT SettingStore
Next Topic:Table-Font - strikethrough, LOGFONT
Goto Forum:
  


Current Time: Thu Apr 25 21:05:55 GMT 2024

Powered by FUDForum. Page generated in 0.03354 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top