Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to link editor plugin to RCP
How to link editor plugin to RCP [message #328856] Thu, 05 June 2008 04:03 Go to next message
Eclipse UserFriend
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 04:26 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
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
Previous Topic:Eclipse source code help: which class is responsible for the view action?
Next Topic:Can i tile editors programmatically?
Goto Forum:
  


Current Time: Thu Nov 07 06:01:57 GMT 2024

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

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

Back to the top