Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Strange PlugIn starting problem
Strange PlugIn starting problem [message #37022] Sun, 18 May 2003 16:48 Go to next message
Eclipse UserFriend
Hi,

I have written a plugin called "myplugin". I tested it with the
runtime-workbench and all was well. Now, I thought that "myplugin" was
probably not the best name, so I changed it to "de.uni_sb.cs.dd" (which is
only hardly better but at least fully qualified :)). However, after I
(manually) changed all package names (from "myplugin.x" to
"de.uni_sb.cs.dd.x") and altered the imports, the plugin does not run
anymore! I must add that I also had problems with the classpath, so I
created a completely new project and added each file separately to its new
destination (i.e. de/uni_sb/cs/dd/x). I copied the manifest file and
replaced all "myplugin" strings, and then I selected "Update classpath.."
from the context menu of the manifest file and rebuilt the whole project.
Now, when I select an action of my plugin, I get the error message that
"The chosen operation is not currently available." along with the
exception: "Could not create action delegate for id:
de.uni_sb.cs.dd.actions.IsolateAction
Reason:
Plug-in de.uni_sb.cs.dd was unable to load class
de.uni_sb.cs.dd.actions.IsolateAction."

Now, the class de/uni_sb/cs/dd/actions/IsolateAction exists, and it does
implement "IWorkbenchWindowActionDelegate".

Does anybody have an idea what I could have overlooked?
The plugin worked before I renamed it... (Next time I will think of an
appropriate name _before_ starting to program :-)).

Well, thanks for your help,
Philipp
Re: Strange PlugIn starting problem [message #37397 is a reply to message #37022] Mon, 19 May 2003 05:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Philipp Bouillon wrote:

>Hi,
>
>I have written a plugin called "myplugin". I tested it with the
>runtime-workbench and all was well. Now, I thought that "myplugin" was
>probably not the best name, so I changed it to "de.uni_sb.cs.dd" (which is
>only hardly better but at least fully qualified :)). However, after I
>(manually) changed all package names (from "myplugin.x" to
>"de.uni_sb.cs.dd.x") and altered the imports, the plugin does not run
>anymore!
>
>Does anybody have an idea what I could have overlooked?
>
Check the package names in your plugin.xml

HTH
Dani
Re: Strange PlugIn starting problem [message #37431 is a reply to message #37397] Mon, 19 May 2003 05:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

thanks for the advice, but I already replaced all occurences of
\"myplugin\" with the correct name in the manifest file. The error still
occurs. In fact, I searched for \"myplugin\" in all files and did not get
a result, so I am pretty confident that I have replaced all occurences.

Philipp

> Philipp Bouillon wrote:

> >Hi,
> >
> >I have written a plugin called \"myplugin\". I tested it with the
> >runtime-workbench and all was well. Now, I thought that \"myplugin\" was
> >probably not the best name, so I changed it to \"de.uni_sb.cs.dd\" (which is
> >only hardly better but at least fully qualified :)). However, after I
> >(manually) changed all package names (from \"myplugin.x\" to
> >\"de.uni_sb.cs.dd.x\") and altered the imports, the plugin does not run
> >anymore!
> >
> >Does anybody have an idea what I could have overlooked?
> >
> Check the package names in your plugin.xml

> HTH
> Dani
Re: Strange PlugIn starting problem [message #37462 is a reply to message #37431] Mon, 19 May 2003 05:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Philipp Bouillon wrote:

>Hi,
>
>thanks for the advice, but I already replaced all occurences of
>\"myplugin\" with the correct name in the manifest file. The error still
>occurs. In fact, I searched for \"myplugin\" in all files and did not get
>a result, so I am pretty confident that I have replaced all occurences.
>
Verify that the requires section in your plugin.xml is correct. Maybe
one of the required plug-ins got removed while playing with the Java
build path.

Dani
Re: Strange PlugIn starting problem [message #37495 is a reply to message #37462] Mon, 19 May 2003 06:29 Go to previous messageGo to next message
Eclipse UserFriend
Hmm, the requires section looks okay to me.
Maybe I am just too blind for it right now. Here is my plugin.xml file
(slightly shortened). Notice that I renamed the project again (thinking
that maybe the underscore could lead to problems). The new name is
"de.uds.cs.st.dd", so the IsolateAction is in
de/uds/cs/st/dd/eclipse/actions/IsolateAction.java and
de/uds/cs/st/dd/eclipse/actions/IsolateAction.class

<?xml version="1.0" encoding="UTF-8"?>
<plugin
id="de.uds.cs.st.dd"
name="Delta Debugging"
version="0.0.1"
provider-name="Saarland University"
class="de.uds.cs.st.dd.eclipse.DeltaDebuggingPlugin">

<runtime>
<library name="de.uds.cs.st.dd/dd.jar">
<export name="de.uds.cs.st.dd.*"/>
<export name="de.uds.cs.st.dd.*.*"/>
<packages prefixes="de.uds.cs.st.dd,de.uds.cs.st.dd.core"/>
<packages
prefixes="de.uds.cs.st.dd.eclipse,de.uds.cs.st.dd.eclipse.actions "/>
</library>
<library name="org.eclipse.core.boot/boot.jar"/>
<library name="org.eclipse.core.resources/resources.jar"/>
<library name="org.eclipse.core.runtime/runtime.jar"/>
<library name="org.eclipse.ui/ui.jar"/>
<library name="org.eclipse.jdt.core/jdtcore.jar"/>
<library name="org.eclipse.jdt.launching/launching.jar"/>
<library name="org.eclipse.jdt.ui/jdt.jar"/>
<library name="org.eclipse.jdt.debug/jdimodel.jar"/>
<library name="org.eclipse.jdt.debug.ui/jdiui.jar"/>
<library name="org.eclipse.debug.core/dtcore.jar"/>
<library name="org.eclipse.debug.ui/dtui.jar"/>
<library name="org.junit"/>
</runtime>
<requires>
<import plugin="org.eclipse.core.boot"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.jdt.launching"/>
<import plugin="org.eclipse.jdt.ui"/>
<import plugin="org.eclipse.jdt.debug"/>
<import plugin="org.eclipse.jdt.debug.ui"/>
<import plugin="org.eclipse.jdt.junit"/>
<import plugin="org.eclipse.debug.core"/>
<import plugin="org.eclipse.debug.ui"/>
<import plugin="org.junit"/>
</requires>

<extension
point="org.eclipse.ui.actionSets">
<actionSet
label="Delta Debugging"
visible="true"
id="de.uds.cs.st.dd.eclipse.actionSet">
<menu
label="Delta Debugging"
id="JUnitMenu">
<separator
name="ddMinimizeGroup">
</separator>
</menu>
<action
label="Isolate Input"
icon="icons/Isolate16.gif"
tooltip="Isolate Failure-Inducing Input"
class="de.uds.cs.st.dd.eclipse.actions.IsolateAction"
menubarPath="JUnitMenu/ddMinimizeGroup"
toolbarPath="ddMinimizeGroup"
id="de.uds.cs.st.dd.eclipse.actions.IsolateAction">
</action>
</actionSet>
</extension>
</plugin>

This is really driving me crazy -- I hope that it's just an easy
"oooups"-error in the end :)

Philipp

> Philipp Bouillon wrote:

> >Hi,
> >
> >thanks for the advice, but I already replaced all occurences of
> >\"myplugin\" with the correct name in the manifest file. The error still
> >occurs. In fact, I searched for \"myplugin\" in all files and did not get
> >a result, so I am pretty confident that I have replaced all occurences.
> >
> Verify that the requires section in your plugin.xml is correct. Maybe
> one of the required plug-ins got removed while playing with the Java
> build path.

> Dani
Re: Strange PlugIn starting problem [message #37561 is a reply to message #37495] Mon, 19 May 2003 07:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Philipp Bouillon wrote:

>Hmm, the requires section looks okay to me.
>Maybe I am just too blind for it right now. Here is my plugin.xml file
>(slightly shortened). Notice that I renamed the project again (thinking
>that maybe the underscore could lead to problems). The new name is
>"de.uds.cs.st.dd", so the IsolateAction is in
>de/uds/cs/st/dd/eclipse/actions/IsolateAction.java and
>de/uds/cs/st/dd/eclipse/actions/IsolateAction.class
>
The following library entries are not needed since you already reference
the plug-ins in the required section:

<library name="org.eclipse.core.boot/boot.jar"/>
<library name="org.eclipse.core.resources/resources.jar"/>
<library name="org.eclipse.core.runtime/runtime.jar"/>
<library name="org.eclipse.ui/ui.jar"/>
<library name="org.eclipse.jdt.core/jdtcore.jar"/>
<library name="org.eclipse.jdt.launching/launching.jar"/>
<library name="org.eclipse.jdt.ui/jdt.jar"/>
<library name="org.eclipse.jdt.debug/jdimodel.jar"/>
<library name="org.eclipse.jdt.debug.ui/jdiui.jar"/>
<library name="org.eclipse.debug.core/dtcore.jar"/>
<library name="org.eclipse.debug.ui/dtui.jar"/>
<library name="org.junit"/>

Dani
Re: Strange PlugIn starting problem [message #40165 is a reply to message #37561] Tue, 20 May 2003 11:14 Go to previous message
Eclipse UserFriend
Hi,

after all the error was quite stupid:
I had the runtime-workbench start with the "-dev /bin" parameter, whereas
this should now read "-dev /", since there is no more bin directory...
Well...

Daniel: Thanks for mentioning the duplicates in my "runtime" section. I
removed them now...

Thanks for the help,
Philipp
Previous Topic:WordRule/Word Detector
Next Topic:no textarea for new folder
Goto Forum:
  


Current Time: Fri May 23 17:06:47 EDT 2025

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

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

Back to the top