Problem in PreferenceDialog [message #449618] |
Tue, 16 May 2006 18:08  |
Eclipse User |
|
|
|
Originally posted by: aschneid.onlinehome.de
Hi
I have a problem when calling the following from an RCP application:
PreferenceNode one = new PreferenceNode( "one", new FieldEditorPageOne());
PreferenceNode two = new PreferenceNode("two", "Logging", null,
FieldEditorPageTwo.class.getName());
The first one works, but when selecting the second page, I get the
following in the log:
!ENTRY org.eclipse.jface 4 2 2006-05-16 23:57:14.438
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.jface.preference.PreferenceNode.createPage(Prefe renceNode.java:161)
at
org.eclipse.jface.preference.PreferenceDialog.createPage(Pre ferenceDialog.java:1241)
What can be wrong?
Regards,
Achim
|
|
|
|
|
|
|
Re: Problem in PreferenceDialog [message #449857 is a reply to message #449831] |
Tue, 23 May 2006 09:38  |
Eclipse User |
|
|
|
asc wrote:
>
> Paul, (sorry, where on business trip)
>
> do you mean its not possible at all? Or is there any way?
I mean AFAIK, you cannot use that constructor while in a plugin. The
problem is the jface plugin cannot load a class from a dependent plugin.
If you were just using the jface jar as part of a java app
(non-eclipse), it would work.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.28800 seconds