Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to make plugin_a work with plugin_b
How to make plugin_a work with plugin_b [message #23893] Wed, 14 May 2003 22:34
Eclipse UserFriend
Hi,

My question in short is: Anyone knows what’s 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 couldn’t 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_plugin’s editor. I register in wizard.plugin’s plugin.xml to use
editor_plugin’s editor.

======== in wizard.plugin’s 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 what’s the problem?

Thanks in advance.
Elwin
Previous Topic:{jar position, source viewing} weirdness
Next Topic:Eclipse IDE Files in CVS
Goto Forum:
  


Current Time: Thu Apr 24 00:06:32 EDT 2025

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

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

Back to the top