[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?
|
- From: Camilo Vasquez <camilo.vasquez@xxxxxxxxx>
- Date: Fri, 20 Mar 2009 18:30:13 +0200
- Delivered-to: ve-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=QqQvG46IKSvMn/S8easq33gFMbmEO9cVRfG/nQdZLSo=; b=GqnN+aQtvnsE6A4H2XKg3+WUc8KkUssPR/VUkV/2ALkZ75LxVAWp/rOQkfYx4Yg+ll vSLYC0ari9vEVTJmGStk9dtwHz0KtOLfJQ2oWfZVxhZlkQLtFIjo8KbMATxlhlDPMAnS iZZLwqGOr4MZcJrtzrE7Csd6ScxGum97c5xpw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=A8Bb2+0Ok247MW88VLziDZlIW7/S9+ZImhgwh6rJuXl/HfWlpGAJCZJwFwO3IXAGfM AbVhZVcksZuPJMAgZmFu1MZSoO2Ik65nCOHpntsCI5yijZSmQZEq06jhfLRk3HNVoB+u /3NsYqdrkOO596inXWlqSnYSiguxZHuhRmfoE=
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>