|
Re: Multi-page Editor Template in RCP? [message #436673 is a reply to message #436542] |
Wed, 14 September 2005 15:37 |
|
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
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
Powered by
FUDForum. Page generated in 0.05125 seconds