Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Reusing EMF.Edit property sheet
Reusing EMF.Edit property sheet [message #1133593] Sat, 12 October 2013 00:09 Go to next message
Dénes Harmath is currently offline Dénes HarmathFriend
Messages: 157
Registered: July 2009
Senior Member
Hi all,

I want to integrate the property sheet generated by EMF.Edit in my Graphiti editor. However, neither the tutorial nor the example projects contain any example how to do this, and the method described in does not work any more due to API changes. If someone already has managed to solve this, could (s)he provide the working relevant source code and plugin.xml excerpts?

Thanks in advance!
Re: Reusing EMF.Edit property sheet [message #1134115 is a reply to message #1133593] Sat, 12 October 2013 08:36 Go to previous messageGo to next message
Vladimir D is currently offline Vladimir DFriend
Messages: 22
Registered: January 2013
Junior Member
Hi Dénes,

I've had a similar problem some time ago. I ended up using EEF (tutorial for Graphiti: which works well even now with new API changes. Only problem is that you cannot make a property widget for any containment with upper bound 1. This is a major problem form me and now I'm considering switching to hand written prop sheets or some sort of integration of these two.

Hope this helps.

Best regards,

Re: Reusing EMF.Edit property sheet [message #1135028 is a reply to message #1134115] Sat, 12 October 2013 23:26 Go to previous message
Dénes Harmath is currently offline Dénes HarmathFriend
Messages: 157
Registered: July 2009
Senior Member
Hi Vladimir,

thanks for your reply! I also tried EEF, but when I Initialize EEF models from my genmodel, the generation throws an exception, which is kind of a showstopper issue, that's why I want to go with the good old EMF.Edit-generated code.

at org.eclipse.emf.eef.codegen.core.initializer.ViewTransformer.eStructuralFeature2ViewElement(
at org.eclipse.emf.eef.codegen.core.initializer.ViewTransformer.genClass2Views(
at org.eclipse.emf.eef.codegen.core.initializer.ViewTransformer.genPackage2ViewsRepository(
at org.eclipse.emf.eef.codegen.core.initializer.PropertiesInitializer.initialize(
at org.eclipse.ui.internal.PluginAction.runWithEvent(
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
at org.eclipse.jface.action.ActionContributionItem.access$2(
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Display.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.notifyListeners(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(

[Updated on: Sat, 12 October 2013 23:26]

Report message to a moderator

Previous Topic:How to avoid linking of diagram to the model object to be part of the command stack
Next Topic:Add connection without palette
Goto Forum:

Current Time: Wed Aug 12 16:14:27 GMT 2020

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

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

Back to the top