Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Linking EEF Property Sheet with GMF Editor
[EEF] Linking EEF Property Sheet with GMF Editor [message #894335] Sun, 08 July 2012 11:57
Suhrid Karthik is currently offline Suhrid KarthikFriend
Messages: 5
Registered: June 2012
Junior Member

I was able to successfully link EEF with the EMF Tree View editor by following the instructions available at :

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
	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.


[Updated on: Sun, 08 July 2012 18:09]

Report message to a moderator

Previous Topic:[EEF] Derived Attributes and Enumerators
Next Topic:Problem with images instead shapes
Goto Forum:

Current Time: Wed Apr 25 16:49:20 GMT 2018

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

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