[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Good practice using resource plug-in

Hi Francis,

Look in the Help -> Platform Plugin Developers Guide -> Programmer's Guide -> Editors

I did have a look at this section in the Eclipse Help but I still cannot find out what my problem is.


So let me explain in more detail:
I have implemented a graphical editor using GMF, this plugin is used withing the Eclipse IDE. What I know want is to establish an RCP that builds up on that plugin. I know that I can generate an RCP App with GMF but as the editor was customized a lot I prefer having the code for the editor only once. And the graphical editor will be used as plugin for an IDE and as RCP App.


With the example of the genereted RCP of GMF I'm now trying to establish my own.

Up to now I have:
* A menu item New -> XYZ Diagram, which creates a new diagram and shows the editor as expected
* A menu item Open..., which opens an existing diagram in the file system


Problems with the Navigator:
* Double clicking on any file doesn't have any effect (I expect the project file to be opened in a Text editor for example)
* Enabling the linking between the navigator and the open editors doesn't have any effect either


So what am I missing? It seems that my editor is integrated as it shoud as I can create/open a file and the editor is shown.

Or maybe another question (sorry I'm new to RCP) how can I add that "open on double click action" to a simple view that extends ViewPart?

Thx
Marsha