Hello,
I was able to successfully link EEF with the EMF Tree View editor by following the instructions available at : http://wiki.eclipse.org/EEF_tutorial_:_First_generation
Now, I am trying to link EEF with my GMF Editor. However, I'm not able to get it to work. This is what I've done so far :
1) Declare the extension points as generated by EEF into the GMF Diagram project's plugin.xml
2) Modify the GMF generated XXX.diagram.part.XXXDiagramEditor class as below. I added the else block for the IPropertySheetPage.class.
/**
* @generated NOT
*/
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
if (type == IShowInTargetList.class) {
return new IShowInTargetList() {
public String[] getShowInTargetIds() {
return new String[] { ProjectExplorer.VIEW_ID };
}
};
} else if (type == IPropertySheetPage.class) {
return new TabbedPropertySheetPage(this);
}
return super.getAdapter(type);
}
3) I've defined the same contributor id from plugin.xml in the getContributorId() method in the above class.
When I click on any node in the GMF diagram, I get a "Properties are not available" message. I dont see any errors or exceptions either.
Any help will be appreciated.
Regards,
Suhrid.
[Updated on: Sun, 08 July 2012 14:09] by Moderator