How to make plugin_a work with plugin_b [message #23893] |
Wed, 14 May 2003 22:34 |
Eclipse User |
|
|
|
Hi,
My question in short is: Anyone knows whats the different that I run two
plug-in in the workspace compare with install those two plug-ins into
Eclipse.
My situation is the first case works for me. But in the second case I got
an error that tells me I couldnt use plugin_a editor feature from
plugin_b.
Detail problem:
Environment: Java1.4.1, Eclipse 2.1. Windows 2000
I create two plug-ins: wizard_plugin and editor_plugin for my project.
The wizard_plugin depends on editor_plugin. The editor_ plugin
implement the editor feature. Wizard_plugin is a plug-in to implement a
wizard to generate a file call foo.grx, and foo.grx need to edit by
editor_plugins editor. I register in wizard.plugins plugin.xml to use
editor_plugins editor.
======== in wizard.plugins plugin.xml =========
<requires>
..
<import plugin="editor_plugin"/>
</requires>
.
<extension
point="org.eclipse.ui.editors">
<editor
name="MyEditor "
icon="icons/my.gif"
extensions="grx"
contributorClass="editor.multipageeditor.MultiPageContributor "
class="editor.multipageeditor.XMLEditor"
id="editor.multipageeditor.XMLEditor">
</editor>
</extension>
========
The problem I am facing now is, if I run those plug-ins in the development
environment (workspace). It works fine. But if I install the editor plugin
binary into eclipse first then run the wizard plugin from the development
environment. While I try to open foo.grx, I get an error:
=======
Unable to instantiate editor: editor.multipageeditor.XMLEditor
Org.eclipse.core.runtime.CoreException:Plug-in wizard_plugin ws unable to
load class editor.multipageeditor.XMLEditor
========
But I can go to Window->preferences->Workbench->File Assoications to
manually associate the foo.grx to the editor. It works fine also. (It
means editor_plugin work fines alone)
Anyone know whats the problem?
Thanks in advance.
Elwin
|
|
|
Powered by
FUDForum. Page generated in 0.02876 seconds