|
Re: Customized property widget [message #1132768 is a reply to message #1132749] |
Fri, 11 October 2013 11:28 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
Maybe http://wiki.eclipse.org/EMF/Recipes#Properties_Recipes helps. Note
you could do much to answer questions like this yourself. E.g., using
Alt-Shift-F1 (plugin spy) to determine that this a
org.eclipse.emf.edit.ui.celleditor.FeatureEditorDialog), you could set a
breakpoint in the constructor(s) to see what logic is used to create an
instance of this class, and therefore what you need to specialize and
where you need to put hooks to create your specialization.
On 11/10/2013 1:14 PM, Phil H wrote:
> Hi all,
>
> if you set an attribute reference with a multiplicity of many, you get the following property widget:
>
>
>
> Now, I'ld like to customize this window respectively provide my own property widget. What I need is to display the element tree (with checkboxes), so that a user can choose attributes by checking the checkbox. See the following example:
>
> Root
> -- Object A
> ----Object B
> -------Attribute D <-
> --Attribute C <-
> -- Object U
> ----Attribute F
>
> In this case, a user has selected attributes C and D. The advantage here is that the user can see the hierarchal structure in contrast to the list displayed in the generated one.
>
> Any ideas how to realise this? I reckon I could reuse the EMF Tree and attach checkboxes to it. But I still have no Idea how the property window is reliased in GMF and where are my hooks to start customizing.
>
> Cheers,
> Phil
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04534 seconds