Skip to main content



      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 07:57
Eclipse UserFriend
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

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


Current Time: Thu Jul 10 01:32:45 EDT 2025

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

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

Back to the top