Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » change default EMF property editor in GMF
change default EMF property editor in GMF [message #1402864] Thu, 17 July 2014 19:39 Go to next message
Eclipse UserFriend
Hi
Can I remove the default property table of the Properties View that allow to edit the data of elements of a GMF diagram ??
I read about EMF forms but i dont know if i can integrate it.
That i want to do is remove the property table of the core tab, i want to use a classic feaorm with a layout, textars, inspired in the EMF forms. The appearance tab of the Properties View is form not a properties table.
Please help.
Re: change default EMF property editor in GMF [message #1402879 is a reply to message #1402864] Fri, 18 July 2014 03:27 Go to previous message
Eclipse UserFriend
Hi Yulier,

What you need to do is

1. Create a class that inherits from org.eclipse.ui.views.properties.tabbed.AdvancedPropertySection and then override the method createControls like that

/**
* @see org.eclipse.ui.views.properties.tabbed.ISection#createControls(org.eclipse.swt.widgets.Composite,
* org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
*/
@Override
public void createControls(Composite parent,
final TabbedPropertySheetPage atabbedPropertySheetPage) {

super.createControls(parent,atabbedPropertySheetPage);
//The dapter fatcory is an instance of ComposedAdapterFatcory that contains your XXXXItemproviderAdapterFactory
page.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));
}

2. In the plugin.xml, add a propertySection (extension) that refers to this class.


Kind Regards,

Hussein
Previous Topic:Reusable EMF instances (library)
Next Topic:[EMFStore] REST feature branch
Goto Forum:
  


Current Time: Fri Jul 25 09:11:12 EDT 2025

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

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

Back to the top