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
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 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: Thu Dec 18 22:33:42 GMT 2014

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

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