Custom PropertySheetPage based on selected EObject [message #1015636] |
Fri, 01 March 2013 13:47 |
Joris Lückenga 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
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 |
Ed Merks Messages: 33107 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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02240 seconds