change default EMF property editor in GMF [message #1402864] |
Thu, 17 July 2014 19:39  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04416 seconds