Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Custom PropertySheetPage based on selected EObject
Custom PropertySheetPage based on selected EObject [message #1015636] Fri, 01 March 2013 13:47 Go to next message
Joris Lückenga is currently offline Joris LückengaFriend
Messages: 7
Registered: March 2013
Junior Member
Hi,

i´m working on an XML-Editor and the generated and modified Plugin works quite well.

Now i have truble implementing a customized PropertyView:

I tried to extend a class from ExtendedPropertySheet - so i could override the selectionlistener and trigger a change of the PropertySheetPage when a certain EObject is selected.

But this seems to be a dead end, since i can´t access the viewer of PropertySheetPage class to change the content (i just achieved to change the color...). I wanted to store the default propertyView and change it when the EObject (with name X and value Y) is selected.

Those "special" EObjects contain a Hex-Value and every Bit should be a checkbox instead of the complete value

When other Objects are selected the view should change to the default property-View.

What would be the best way to achieve this? i would be very glad to get help Smile

Cheers,
Joris

[Updated on: Fri, 01 March 2013 14:25]

Report message to a moderator

Re: Custom PropertySheetPage based on selected EObject [message #1015919 is a reply to message #1015636] Mon, 04 March 2013 09:26 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26235
Registered: July 2009
Senior Member
Joris,

Comments below.

On 01/03/2013 2:50 PM, Joris Lückenga wrote:
>
> Hi,
>
> i´m working on an XML-Editor and the generated and modified Plugin
> works quite well.
>
> Now i have truble implementing a customized PropertyView:
>
> I tried to extend a class from ExtendedPropertySheet - so i could
> override the selectionlistener and trigger a change of the
> PropertySheetPage when a certain EObject is selected.
>
> But this seems to be a dead end, since i can´t access the viewer of
> PropertySheetPage class to change the content (i just achieved to
> change the color...). I wanted to store the default propertyView and
> change it when the EObject (with name X and Value Y) is selected.
>
> Those "special" EObjects contain a Hex-Value and every Bit should be a
> checkbox instead of the complete value
>
> When other Objects are selected the view should change to the default
> property-View.
>
> What would be the best way to achieve this? i would be very glad to
> get help :)
I don't think that's achievable. It would seem better to try to achieve
a special cell editor that comes up for a hex value data type.

http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_property_editor_in_a_generated_application
>
> Cheers,
> Joris
Previous Topic:Ecore Diagram Editor - how to have split diagram files
Next Topic:[CDO] Convert EObject to CDOObject *or* load ecore file as dynamic/native CDO object
Goto Forum:
  


Current Time: Fri Nov 28 03:24:19 GMT 2014

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

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