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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03034 seconds