Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Implementing Editor in RCP
Implementing Editor in RCP [message #462201] Wed, 24 January 2007 14:13 Go to next message
Eclipse UserFriend
Originally posted by: surya.invivosoft.com

I have implemented an Editor as an Eclipse plugin and trying to convert the same to an RCP application.My editor class extends the org.eclipse.ui.part.MultiPageEditorPart class.
In my plugin.xml file i access this file using
<extension
point="org.eclipse.ui.editors">


My RCP app has a Perspective class with EditorArea set as visible.
I define the Perspective in the plugin.xml file using
<extension
point="org.eclipse.ui.perspectives">

How do I access my editor class in the RCP application?

Regards,
Re: Implementing Editor in RCP [message #462211 is a reply to message #462201] Wed, 24 January 2007 19:05 Go to previous messageGo to next message
Nathan is currently offline NathanFriend
Messages: 10
Registered: July 2009
Junior Member
The way I understand it, editors don't just 'appear' in the same way that views do. You need some thing to happen i.e a double click on an object, to cause an editor to be created. Once the editor is created it will appear in the editor area of your perspective.
There might be a way to have the editor open by default but I am not sure how to do that .
Re: Implementing Editor in RCP [message #462246 is a reply to message #462211] Thu, 25 January 2007 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: surya.invivosoft.com

True. I need to click on a new form creation wizard for the editor to open up.

I use the Java project creation in eclipse to create a new project and create my editor files within this project using the form creation wizard(i.e using File -> New -> Other -> MyWizard). I am dependent on the java project to run my wizard. How can i overcome/include this in RCP?

Alternatively, I am planning to use the Navigator view of eclipse in my RCP application. Is that possible? The requirement here is to have a file management system for my RCP application.

Regards,
Re: Implementing Editor in RCP [message #462248 is a reply to message #462246] Thu, 25 January 2007 05:25 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
There's no reason why you need Java to create a project for you, unless you have a Java project and need the compilation etc. that goes along with it.

You should obtain an IProject from the workbench, and then if it doesn't exist, invoke the create(null). That will set up an empty non-Java project for you.

Yes, you can use the navigator -- look for articles on the common navigator framework or similar on http://www.eclipse.org/articles/ -- or alternatively investigate EFS (I wrote an article on http://www.eclipsezone.org/ recently regarding EFS).

So it really depends what you want to do ... if you want to add extra information to files on an existing file system, the common navigator stuff is probably the way to go. If you have a different file system -- like these files are stored in the database -- then EFS is the right way to go.

Alex.
Previous Topic:Export Product with ANT
Next Topic:Reclaim memory shell.setMinimized(true)..?
Goto Forum:
  


Current Time: Sun Sep 08 04:31:06 GMT 2024

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

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

Back to the top