Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Multi-page Editor Template in RCP?
Multi-page Editor Template in RCP? [message #436542] Mon, 12 September 2005 23:48 Go to next message
calvin is currently offline calvinFriend
Messages: 3
Registered: July 2009
Junior Member
I am trying to figure out how to create an editor for an RCP app.

After creating the basic hello RCP project I tried
plugin.xml->Extensions->Add...->Extension Wizards->Multi-page Editor

When I try running it, it first gives some error about missing plugins...
so I just included all in the run configuration. Then it runs but the
console prints a whole bunch of "Invalid Menu Extension (Path is invalid)"
messages and the Multi-page editor stuff doesn't seem to show.

Is this template supposed to work for RCP apps?

Where can I find out how to do editors in RCP apps specifically?

Thaks,
Cal
Re: Multi-page Editor Template in RCP? [message #436673 is a reply to message #436542] Wed, 14 September 2005 15:37 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Calvin wrote:
> I am trying to figure out how to create an editor for an RCP app.
>
> After creating the basic hello RCP project I tried
> plugin.xml->Extensions->Add...->Extension Wizards->Multi-page Editor
>
> When I try running it, it first gives some error about missing
> plugins... so I just included all in the run configuration. Then it runs
> but the console prints a whole bunch of "Invalid Menu Extension (Path is
> invalid)" messages and the Multi-page editor stuff doesn't seem to show.
>
> Is this template supposed to work for RCP apps?

It worked for me from within eclipse (I didn't go to the trouble of
exporting the RCP app)

1. I created the Hello RCP plugin.

2. I used the Multi-page Editor extension template wizard to add the
MultiPageEditorPart

3. I used the Hello World actionSet wizard to get an action

4. I use the hello world action to create a test.mpe IFile, create a
FileEditorInput, and call IWorkbenchPage#openEditor(input, "MPEP_ID");

5. I created a eclipse application launch config, picked my RCP
application, deselected all of the plugins, picked my RCP plugin, and
then clicked add required plugins.

Launching it created my app, showed my sample action menu, and choosing
the menu opened the Multi-page Editor with my test file ... there were
no errors.

Later,
PW


Previous Topic:new problem exporting with 3rd party jars
Next Topic:How do i programmaticaly inserts the command buttons on the menu ?
Goto Forum:
  


Current Time: Wed Dec 04 16:14:27 GMT 2024

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

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

Back to the top