How to link editor plugin to RCP [message #328856] |
Thu, 05 June 2008 00:03  |
Eclipse User |
|
|
|
Originally posted by: asf14.yahoo.com
Hi
During my development, I initially wrote an editor plugin that can be
used with Java Eclipse IDE, now I want to shift that plugin into its own
RCP (I don't want users to download the whole Java IDE platform). I am
currently trying to write an RCP that uses the IDE plugin and my own
editor plugin, my question is how do i register my editor plugin such
that the file extension on the outline can launch the correct editor etc
? does this occur in the WorkBenchAdvior or ApplicaitonWorkBenchAdivsor
or somewhere else (I've looked through the code in org.eclipse.ui.ide
and can't find a reference to this link between the workbench and editor
plugin etc) Do i need to declare an extension in the RCP applicaiton ??
Thanks, David
|
|
|
Re: How to link editor plugin to RCP [message #328860 is a reply to message #328856] |
Thu, 05 June 2008 00:26  |
Eclipse User |
|
|
|
Look at the plugin.xml of your editor. You must have extended the
org.eclipse.ui.editors extension point. You can associate your editor
with a file extension or with a content type in that extension point.
That should work fine in an RCP app as well. No changes required in your
code or plugin.xml. Make sure you have all the dependencies (like
resource plugin, if you are using workspace, ...) in your RCP app is
properly set
--
- Prakash
www.eclipse-tips.com
Dave wrote:
> Hi
>
> During my development, I initially wrote an editor plugin that can be
> used with Java Eclipse IDE, now I want to shift that plugin into its own
> RCP (I don't want users to download the whole Java IDE platform). I am
> currently trying to write an RCP that uses the IDE plugin and my own
> editor plugin, my question is how do i register my editor plugin such
> that the file extension on the outline can launch the correct editor etc
> ? does this occur in the WorkBenchAdvior or ApplicaitonWorkBenchAdivsor
> or somewhere else (I've looked through the code in org.eclipse.ui.ide
> and can't find a reference to this link between the workbench and editor
> plugin etc) Do i need to declare an extension in the RCP applicaiton ??
>
> Thanks, David
|
|
|
Powered by
FUDForum. Page generated in 0.07400 seconds