Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Chaging the current object in a property sheet
Chaging the current object in a property sheet [message #414816] Thu, 22 November 2007 15:57 Go to next message
Jose Hernandez is currently offline Jose HernandezFriend
Messages: 46
Registered: July 2009
Member
Hi,

I have an editor with two pages and I would like the property sheet to
change the object it is showing depending on the page that is being
displayed.

I figure all I need to do is to point the property sheet to the given object
when the page is made active but I cannot find any way at the moment of
making the property sheet point to the given EObject.

Could someone please point me in the right direction?

Regards
Jose
Re: Chaging the current object in a property sheet [message #414819 is a reply to message #414816] Thu, 22 November 2007 16:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Jose,

The default generated editor does exactly this so it's probably good to
have a close look at how it works.


Jose Hernandez wrote:
> Hi,
>
> I have an editor with two pages and I would like the property sheet to
> change the object it is showing depending on the page that is being
> displayed.
>
> I figure all I need to do is to point the property sheet to the given object
> when the page is made active but I cannot find any way at the moment of
> making the property sheet point to the given EObject.
>
> Could someone please point me in the right direction?
>
> Regards
> Jose
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Chaging the current object in a property sheet [message #414961 is a reply to message #414819] Mon, 26 November 2007 15:42 Go to previous messageGo to next message
Jose Hernandez is currently offline Jose HernandezFriend
Messages: 46
Registered: July 2009
Member
Hi Ed,



There seems to be some disconnect between the UI forms and EMF editor
hierarchy but I have managed to get the UI forms working with EMF by adding
my form page directly as a page in the editor. I am not sure whether this is
the correct way of doing things though.



Would you be able to tell me whether a viewer pane still needs to be used
when adding forms to the editor or adding the form directly as a page is Ok?



Thanks

Jos
Re: Chaging the current object in a property sheet [message #414966 is a reply to message #414961] Mon, 26 November 2007 16:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050305030705030909010201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Jose,

Viewer panes are just a convenience. In the end, you can change the
generated editor in whatever way works best for you. The EcoreEditor,
for example, doesn't use ViewerPanes.


Jose Hernandez wrote:
> Hi Ed,
>
>
>
> There seems to be some disconnect between the UI forms and EMF editor
> hierarchy but I have managed to get the UI forms working with EMF by adding
> my form page directly as a page in the editor. I am not sure whether this is
> the correct way of doing things though.
>
>
>
> Would you be able to tell me whether a viewer pane still needs to be used
> when adding forms to the editor or adding the form directly as a page is Ok?
>
>
>
> Thanks
>
> Jos


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[editor] Tree with Columns
Next Topic:EMF queries using SubStringValue can't handle empty Strings
Goto Forum:
  


Current Time: Wed Sep 25 22:31:54 GMT 2024

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

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

Back to the top