"Extending" the generated Property view [message #47163] |
Wed, 13 September 2006 12:53 |
Eclipse User |
|
|
|
Originally posted by: natorion.gmx.at
Hello,
I am working on a project for modelling processes. The nodes have the
following important attributes:
-associatedClass (EString)
-customProperties (EMap)
I have two questions:
-How can I extend/edit/overwrite/whatever the default GMF/EMF Property
view? I want to select the value for associatedClass from a dropdown list
(similar to EEnum).
-How can I add an additional tab in the Property view, which should be
able to edit the customProperties attribute?
If this questions do not belong to this newsgroup, please forgive me ;)
Thanks in advance,
Michael
|
|
|
|
Re: "Extending" the generated Property view [message #48501 is a reply to message #47489] |
Fri, 15 September 2006 06:25 |
Eclipse User |
|
|
|
Originally posted by: natorion.gmx.at
Thanks very much. I must be blind because I did not find this tutorial
alone.
Michael
On Wed, 13 Sep 2006 23:58:06 +0200, Anthony Hunter <anthonyh@ca.ibm.com>
wrote:
> Hi Michael
>
> Check out the tabbed properties view article
> http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html
>
> It tells you how to add tabs and sections (fields) to the tabbed
> properties
> view.
>
> Cheers...
> Anthony
>
> "Michael H." <natorion@gmx.at> wrote in message
> news:c3b77749e115def821f7029522f217c0$1@www.eclipse.org...
>> Hello,
>>
>> I am working on a project for modelling processes. The nodes have the
>> following important attributes:
>>
>> -associatedClass (EString)
>> -customProperties (EMap)
>>
>> I have two questions:
>>
>> -How can I extend/edit/overwrite/whatever the default GMF/EMF Property
>> view? I want to select the value for associatedClass from a dropdown
>> list
>> (similar to EEnum).
>> -How can I add an additional tab in the Property view, which should be
>> able to edit the customProperties attribute?
>>
>> If this questions do not belong to this newsgroup, please forgive me ;)
>>
>> Thanks in advance,
>> Michael
>>
>
>
|
|
|
Re: "Extending" the generated Property view [message #49438 is a reply to message #47489] |
Sun, 17 September 2006 13:43 |
Eclipse User |
|
|
|
Originally posted by: natorion.gmx.at
Finally, I found somewhere in this newsgroup the solution for my problem:
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg00890.html
I have set up a test model with only a Diagram class and a Node class. The
Node class contains two attributes:
-name (EString)
-info (EMap)
The code works fine for the name attribute, but the info attribute is not
saved. I am using a Hashtable for the Map interface implementation. The
model is notified and sets the new Map but the info attribute is not saved
in the XML file. I don't have a clue where the error might be.
Thanks in advance,
Michael
On Wed, 13 Sep 2006 23:58:06 +0200, Anthony Hunter <anthonyh@ca.ibm.com>
wrote:
> Hi Michael
>
> Check out the tabbed properties view article
> http://www.eclipse.org/articles/Article-Tabbed-Properties/ta bbed_properties_view.html
>
> It tells you how to add tabs and sections (fields) to the tabbed
> properties
> view.
>
> Cheers...
> Anthony
>
> "Michael H." <natorion@gmx.at> wrote in message
> news:c3b77749e115def821f7029522f217c0$1@www.eclipse.org...
>> Hello,
>>
>> I am working on a project for modelling processes. The nodes have the
>> following important attributes:
>>
>> -associatedClass (EString)
>> -customProperties (EMap)
>>
>> I have two questions:
>>
>> -How can I extend/edit/overwrite/whatever the default GMF/EMF Property
>> view? I want to select the value for associatedClass from a dropdown
>> list
>> (similar to EEnum).
>> -How can I add an additional tab in the Property view, which should be
>> able to edit the customProperties attribute?
>>
>> If this questions do not belong to this newsgroup, please forgive me ;)
>>
>> Thanks in advance,
>> Michael
>>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03686 seconds