Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » PropertyView customizing
PropertyView customizing [message #657077] Tue, 01 March 2011 14:40 Go to next message
Michael is currently offline MichaelFriend
Messages: 3
Registered: November 2010
Junior Member
Hi!

I have two questions/problems with the properties view:

1. The FeatureEditorDialog and the combo boxes for editing properties with multiple selection values collect these values in the whole workspace, but I have a project based application and want only show objects (as values) from a specific project in the dialog and the combo boxes. Is this possible?

2. Referenced objects should also be shown in the properties view. I select a element and get whose features (with ItemPropertyDescriptors) in the property view. Now I search for a simple possibility to add referenced objects of the selected element in the properties view too.

The structure should look like this:

Property | Value
object.feature1 | value1
object.feature2 | value2
+object.referencedobject1
-object.referencedobject1.feature1 | value1
-object.referencedobject1.feature2 | value2
+object.referencedobject2
-object.referencedobject2.feature1 | value1
-object.referencedobject2.feature2 | value2

Best regards,

Michael

[Updated on: Tue, 01 March 2011 14:40]

Report message to a moderator

Re: PropertyView customizing [message #657090 is a reply to message #657077] Tue, 01 March 2011 15:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Michael,

Comments below.

Michael wrote:
> Hi!
>
> I have two questions/problems with the properties view:
>
> 1. The FeatureEditorDialog and the combo boxes for editing properties
> with multiple selection values collect these values in the whole
> workspace, but I have a project based application and want only show
> objects (as values) from a specific project in the dialog and the
> combo boxes. Is this possible?
You can specialize the property descriptor's getChoiceOfValues method.
Have a look at ETypedElementItemProvider.addETypePropertyDescriptor.
>
> 2. Referenced objects should also be shown in the properties view. I
> select a element and get whose features (with ItemPropertyDescriptors)
> in the property view. Now I search for a simple possibility to add
> referenced objects of the selected element in the properties view too.
Have a look at
GenBaseItemProvider.GenItemPropertyDescriptor.createProperty ValueWrapper.
This is how the GenModel (Generator editor) supports this for references
to the Ecore model (e.g., GenPackage's ecorePackage reference).
>
> The structure should look like this:
>
> Property | Value
> object.feature1 | value1
> object.feature2 | value2
> +object.referencedobject1
> -object.referencedobject1.feature1 | value1
> -object.referencedobject1.feature2 | value2
> +object.referencedobject2
> -object.referencedobject2.feature1 | value1
> -object.referencedobject2.feature2 | value2


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Creating href
Next Topic:Package Registry at Development Time
Goto Forum:
  


Current Time: Fri Apr 19 23:46:45 GMT 2024

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

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

Back to the top