Strange PlugIn starting problem [message #37022] |
Sun, 18 May 2003 16:48  |
Eclipse User |
|
|
|
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 #37431 is a reply to message #37397] |
Mon, 19 May 2003 05:26   |
Eclipse User |
|
|
|
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 #40165 is a reply to message #37561] |
Tue, 20 May 2003 11:14  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06830 seconds