Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [RCP] Show editor if a resource in a view is selected
[RCP] Show editor if a resource in a view is selected [message #436828] Tue, 25 May 2004 15:09 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:implementing CVS file comparison
Next Topic:Drawing lines on an editor
Goto Forum:
  


Current Time: Wed Apr 24 21:10:52 GMT 2024

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

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

Back to the top