Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » "Extending" the generated Property view
"Extending" the generated Property view [message #47163] Wed, 13 September 2006 12:53 Go to next message
Eclipse UserFriend
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 #47489 is a reply to message #47163] Wed, 13 September 2006 21:58 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
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 #48501 is a reply to message #47489] Fri, 15 September 2006 06:25 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>>
>
>
Re: "Extending" the generated Property view [message #53054 is a reply to message #47163] Thu, 21 September 2006 14:28 Go to previous message
Artem Tikhomirov is currently offline Artem TikhomirovFriend
Messages: 222
Registered: July 2009
Senior Member
I've put some details about how to deal with property sheet in M2 here
http://wiki.eclipse.org/index.php/GMF_GenModel_Hints#Tuning_ property_sheet

Artem

"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
>
Previous Topic:Missing methods in a generated Class
Next Topic:modify properties view
Goto Forum:
  


Current Time: Sat Oct 19 20:19:55 GMT 2024

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

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

Back to the top