Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding Custom properties.
Adding Custom properties. [message #45736] Tue, 12 September 2006 04:30 Go to next message
Eclipse UserFriend
Originally posted by: sayed.shoed.tavant.com

Hi,

I have been going through the following links to get the property sheets

http://dev.eclipse.org/newslists/news.eclipse.technology.gmf /msg03326.html
http://dev.eclipse.org/newslists/news.eclipse.technology.gmf /msg03328.html

I want to remove the "Appearance" and "Rulers & Grids" properties from
the property sheet. Also I want the "Advanced" property to have only
the EMF data and not the View data.
Follwing the previous mails i overrode the getContributorID() method
but was not successful in adding the "Advanced" property tab.
Could anyone help.

Thank You
Sayed Aamir Shoeb
Re: Adding Custom properties. [message #46830 is a reply to message #45736] Tue, 12 September 2006 23:09 Go to previous message
Eclipse UserFriend
Hi Sayed,

GMF Runtime activates the tabbed properties view by providing an adapter for
IPropertySheetPage

Add
public Object getAdapter(Class type) {
if (type == IPropertySheetPage.class) {
return null;
}
return super.getAdapter(type);
}
to your generated XXXXDiagramEditor to turn off the tabbed properties view.

Then you can bring over the original properties view contribution as you see
in the EMF editor.

Cheers...
Anthony

"sayed" <sayed.shoed@tavant.com> wrote in message
news:ee5r3j$clt$1@utils.eclipse.org...
> Hi,
>
> I have been going through the following links to get the property sheets
>
> http://dev.eclipse.org/newslists/news.eclipse.technology.gmf /msg03326.html
> http://dev.eclipse.org/newslists/news.eclipse.technology.gmf /msg03328.html
>
> I want to remove the "Appearance" and "Rulers & Grids" properties from
> the property sheet. Also I want the "Advanced" property to have only
> the EMF data and not the View data.
> Follwing the previous mails i overrode the getContributorID() method
> but was not successful in adding the "Advanced" property tab.
> Could anyone help.
>
> Thank You
> Sayed Aamir Shoeb
Previous Topic:Dynamic model loading in GMF
Next Topic:Adding text between VXML tags using GMF
Goto Forum:
  


Current Time: Tue Jul 22 12:56:59 EDT 2025

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

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

Back to the top