[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: Class Loader failing from PreferenceNode.createPage()


I have made that mistake before... :)

The plug-in loads and runs fine, the Error Log is clear, the problem
occurs when I invoke code that attempts to display a PreferenceDialog.

I might have something funny in build configuration... am looking at
that now.



Walter Harley wrote:
"Michael Megliola" <michael.megliola@xxxxxxxxx> wrote in message news:eqqbc0$udi$1@xxxxxxxxxxxxxxxxxxxx
Hi,

I am having trouble getting Eclipse to load a class by name.

I implemented a FieldEditorPreferencePage (called ArmPreferencePage).

Eclipse's class org.eclipse.jface.preference.PreferenceNode attempts
to load my class at runtime (within PreferenceNode.createObject()),
as part of the load sequence to display a PreferenceDialog that is
specific to my-plugin.

Eclipse fails with a ClassNotFoundException (@ PreferenceNode:161)

I exported the relevant package in my manifest.mf (below), I also
tried a variety of eclipse-buddy settings... although that seems like
it should not be needed for Eclipse to find my plug-in.

...any idea what I need to do to make my class visible to Eclipse
at runtime?


Explore the possibility that it's not actually a CNFE under the covers. Make sure that your plug-in's Activator is actually getting called and succeeding (ie, not throwing an exception). I might be mistaken but I think I've seen plug-in startup failures show up as CNFEs to the calling code.