[RCP] Show editor if a resource in a view is selected [message #436828] |
Tue, 25 May 2004 15:09 |
Eclipse User |
|
|
|
Originally posted by: franz.tucher-63.gmx.net
Hello,
I have some views, which shows data of a database.
Now I have to show a multi page editor. The editor should reflect the
selection
of the views. For that reason the editor should not connect with file
extensions.
An great introduction in the form editor can be found in the "Eclipse Forms
Programming Guide".
In this article the article will be show through the menu Window ==>
Customize Perspective... ==> Commands ==> Eclipse Form Examples .
So far so good.
I can add in my rcp application:
menu.add(ActionFactory.EDIT_ACTION_SETS.create(window)); .
Now the coammand is visible but disabled. In addition that's not the right
working.
I would like:
a)
the SimpleFormEditor (extends FormEditor ...) automatically shown if the
right resource in a view is selected.
b)
the editor should also be shown if eclipse starts and choosing this
perspective if the right resource
I found [IPageLayout].addView but not addEditor?
Every help is very appreciated, Thank you Franz
|
|
|
Re: [RCP] Show editor if a resource in a view is selected [message #436910 is a reply to message #436828] |
Wed, 26 May 2004 10:35 |
Eclipse User |
|
|
|
Originally posted by: r.prajit.zensar.com
Hi Franz!!!
Have you made corresponding entry in plugin.xml file.Here
maaping for the editor to open with right resource is specified .
regards,
prajit
Franz Tucher wrote:
> Hello,
> I have some views, which shows data of a database.
> Now I have to show a multi page editor. The editor should reflect the
> selection
> of the views. For that reason the editor should not connect with file
> extensions.
> An great introduction in the form editor can be found in the "Eclipse Forms
> Programming Guide".
> In this article the article will be show through the menu Window ==>
> Customize Perspective... ==> Commands ==> Eclipse Form Examples .
> So far so good.
> I can add in my rcp application:
> menu.add(ActionFactory.EDIT_ACTION_SETS.create(window)); .
> Now the coammand is visible but disabled. In addition that's not the right
> working.
> I would like:
> a)
> the SimpleFormEditor (extends FormEditor ...) automatically shown if the
> right resource in a view is selected.
> b)
> the editor should also be shown if eclipse starts and choosing this
> perspective if the right resource
> I found [IPageLayout].addView but not addEditor?
> Every help is very appreciated, Thank you Franz
|
|
|
Powered by
FUDForum. Page generated in 0.03293 seconds