[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[ve-dev] How to use preferences store in a property editor?
|
Hi,
I built a control extending the visual editor in my plugin, it works
fine. Now I want to poblate a list for one of its property editors
from the preferences store using the line:
String[] values =
MyPlugin.getDefault().getPreferenceStore().getString("values").split(",");
the following exception is thrown when the bean is inserted in the pane
IWAV0073I *** RemoteVM Exception - Trace from Remote VM:
java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
at java.lang.ClassLoader.defineClass1(Native Method)
....
How can I force my plugin to find the requested preference?
org/eclipse/ui/plugin/AbstractUIPlugin is part of the
eclipse.ui.workbench plugin. I forced this dependence on my
plugin.xml, it finds the class but at then looks for another class,
and so forth. I added the bundles but at end a null pointer exception
is returned because the plugin is not initialized and getDefault()
returns null.
My environment is eclipse 3.2 with eclipse.ve 1.2
I'll thank for any help
------
This is what I added to my plugin.xml
<extension
point="org.eclipse.jdt.core.classpathContainerInitializer">
<classpathContainerInitializer class="org.eclipse.ve.internal.java.core.RegisteredClasspathContainerInitializer"
id="MyPlugin.ControlsContainer">
</classpathContainerInitializer>
</extension>
<extension point="org.eclipse.ve.java.core.registrations">
<registration container="MayPlugin.ControlsContainer"
description="My Plugin Library">
<library runtime="MyPlugin.ve.jar" />
<library runtime="skin.jar" />
<library runtime="org.eclipse.ui.workbench_3.2.2.M20070119-0800.jar" />
<library runtime="org.eclipse.core.runtime_3.2.0.v20060603.jar" />
<library runtime="org.eclipse.osgi_3.2.2.R32x_v20070118.jar"/>
</registration>
</extension>