Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to add a new Section in the EMF Category of tab Advanced in the Properties View
How to add a new Section in the EMF Category of tab Advanced in the Properties View [message #148656] Fri, 31 August 2007 07:26 Go to next message
Eclipse UserFriend
Originally posted by: bmoros.um.es

Hello everybody,

I have read the articles "Take control of properties" and "The Eclipse
Tabbed Properties View" but I am still have some doubts regarding the
addition of a new section in the default Properties View.

I want to add a new property "value" together with the EMF properties of the
class Attribute. Attribute class has a EReference to the Value class where
the attribute value is encapsulated. This relationships is not graphically
shown except for a label: "attributeName: value". So, I need to obtain from
the diagram user the value of the attribute.

To add a new section in the Properties View for the Attribute, I guess I
need the contributorID (where the advanced tab of the Properties view is
defined) to properly specify the PropertySection extension. Is this right?
if so, where is the contributorID defined?

On the other hand, should the extension point be specified in the XXX.editor
project or the XXX.diagram project?

Thanks in advance,

Best regards,
Bego
Re: How to add a new Section in the EMF Category of tab Advanced in the Propert [message #148680 is a reply to message #148656] Fri, 31 August 2007 08:31 Go to previous message
Eclipse UserFriend
Begoña,

For GMF 1.0.3, the following past post will help you.
You should add the extensions in XXX.diagram.

http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg07763.html

For GMF 2.0, the following article is a good start point.

http://wiki.eclipse.org/GMF_GenModel_Hints#GenPropertySheet


Koji


Begoña Moros wrote:

> Hello everybody,

> I have read the articles "Take control of properties" and "The Eclipse
> Tabbed Properties View" but I am still have some doubts regarding the
> addition of a new section in the default Properties View.

> I want to add a new property "value" together with the EMF properties of the
> class Attribute. Attribute class has a EReference to the Value class where
> the attribute value is encapsulated. This relationships is not graphically
> shown except for a label: "attributeName: value". So, I need to obtain from
> the diagram user the value of the attribute.

> To add a new section in the Properties View for the Attribute, I guess I
> need the contributorID (where the advanced tab of the Properties view is
> defined) to properly specify the PropertySection extension. Is this right?
> if so, where is the contributorID defined?

> On the other hand, should the extension point be specified in the XXX.editor
> project or the XXX.diagram project?

> Thanks in advance,

> Best regards,
> Begoña
Previous Topic:IHow can I create a Properties tab (as Topcased UML) in my GMF editor?
Next Topic:GRAPH/TOOL/MAP definition screen - what do I have to check?
Goto Forum:
  


Current Time: Sun Jun 08 04:24:53 EDT 2025

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

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

Back to the top