Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Odd behaviour when using EuGENia
Odd behaviour when using EuGENia [message #21855] Thu, 09 July 2009 07:33 Go to next message
No real name is currently offline No real name
Messages: 92
Registered: July 2009
Member
Hi all,

Just a quick question if I may:

Has anyone ever found when using EuGENia that after modifying your
original emfatic model and then going through the phases of gmf code
generation, the resulting diagram editor behaves not as expected? I've
been making small changes to my emfatic file and have found that sometimes
the resulting editor doesn't let me add elements to the diagram.

Other common peculiarities are that if I close the new eclipse instance
(to play with the new editor) then reopen it, the diagram editor magically
works for a short time. Then it will break, e.g., if I resize a box (e.g.,
for a state chart), it won't change shape, but will cause a modification
to the diagram file (indicated by the '*' that prefixes the file name in
the tab that contains the diagram). Then upon reopening the editor I get:
"Could not open the editor: The feature 'name' is not a valid feature",
with the following error trace:

============ BEGIN >>>
java.lang.IllegalArgumentException: The feature 'name' is not a valid
feature
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEO bjectImpl.java:1062)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1016)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1004)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:999)
at
umlsa.diagram.parsers.AbstractParser.getValue(AbstractParser .java:150)
at
umlsa.diagram.parsers.AbstractParser.getValues(AbstractParse r.java:141)
at
umlsa.diagram.parsers.MessageFormatParser.getPrintString(Mes sageFormatParser.java:173)
at
umlsa.diagram.edit.parts.ClazzNameEditPart.getLabelText(Claz zNameEditPart.java:212)
at
umlsa.diagram.edit.parts.ClazzNameEditPart.refreshLabel(Claz zNameEditPart.java:415)
at
umlsa.diagram.edit.parts.ClazzNameEditPart.refreshVisuals(Cl azzNameEditPart.java:404)
at
umlsa.diagram.edit.parts.ClazzNameEditPart.setLabel(ClazzNam eEditPart.java:170)
at
umlsa.diagram.edit.parts.ClazzEditPart.addFixedChild(ClazzEd itPart.java:152)
at
umlsa.diagram.edit.parts.ClazzEditPart.addChildVisual(ClazzE ditPart.java:205)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
at
org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
at
org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
at
org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
at
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
at
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:870)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:863)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:116)
at
umlsa.diagram.part.Simple_umlDiagramEditor.initializeGraphic alViewer(Simple_umlDiagramEditor.java:312)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:807)
at
org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1555)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:328)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:266)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2820)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
at
org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
at
org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
at
org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
<<< END ============

I should point out that my emfatic file makes use of another file via the
"imports statement", and that I've modified the createContents() method of
one of the <CLASSNAME>EditPart.java files in the my.diagram.edit.parts
package.

Also, I'm not sure whether anyone knows where might be the likely place
for the error I have: GMF or Epsilon... I'm not sure.

PS. Note that the editor was working fine until this morning when I
decided to make some little changes to my original emfatic file, which
promptly led to funny behaviour in the editor, and I was just trying to
understand why.

Best,

Edd
Re: Odd behaviour when using EuGENia [message #21902 is a reply to message #21855] Thu, 09 July 2009 08:32 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Edd,

I haven't encountered similar behaviour with EuGENia, but I have to
admit that I haven't ever used it with non-standalone metamodels...
Could you perhaps send me the code (via email if it is sensitive in any
way) so that I can have a look?

Cheers,
Dimitris

Edward Turner wrote:
> Hi all,
>
> Just a quick question if I may:
>
> Has anyone ever found when using EuGENia that after modifying your
> original emfatic model and then going through the phases of gmf code
> generation, the resulting diagram editor behaves not as expected? I've
> been making small changes to my emfatic file and have found that
> sometimes the resulting editor doesn't let me add elements to the diagram.
>
> Other common peculiarities are that if I close the new eclipse instance
> (to play with the new editor) then reopen it, the diagram editor
> magically works for a short time. Then it will break, e.g., if I resize
> a box (e.g., for a state chart), it won't change shape, but will cause a
> modification to the diagram file (indicated by the '*' that prefixes the
> file name in the tab that contains the diagram). Then upon reopening the
> editor I get: "Could not open the editor: The feature 'name' is not a
> valid feature", with the following error trace:
>
> ============ BEGIN >>>
> java.lang.IllegalArgumentException: The feature 'name' is not a valid
> feature
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEO bjectImpl.java:1062)
>
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1016)
>
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1004)
>
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:999)
> at
> umlsa.diagram.parsers.AbstractParser.getValue(AbstractParser .java:150)
> at
> umlsa.diagram.parsers.AbstractParser.getValues(AbstractParse r.java:141)
> at
> umlsa.diagram.parsers.MessageFormatParser.getPrintString(Mes sageFormatParser.java:173)
>
> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.getLabelText(Claz zNameEditPart.java:212)
>
> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.refreshLabel(Claz zNameEditPart.java:415)
>
> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.refreshVisuals(Cl azzNameEditPart.java:404)
>
> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.setLabel(ClazzNam eEditPart.java:170)
>
> at
> umlsa.diagram.edit.parts.ClazzEditPart.addFixedChild(ClazzEd itPart.java:152)
>
> at
> umlsa.diagram.edit.parts.ClazzEditPart.addChildVisual(ClazzE ditPart.java:205)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>
> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>
> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>
> at
> org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>
> at
> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>
> at
> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:870)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:863)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:116)
>
> at
> umlsa.diagram.part.Simple_umlDiagramEditor.initializeGraphic alViewer(Simple_umlDiagramEditor.java:312)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:807)
>
> at
> org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1555)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:328)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:266)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2820)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
> at
> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
>
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
>
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
>
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
>
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
>
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
> at
> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> <<< END ============
>
> I should point out that my emfatic file makes use of another file via
> the "imports statement", and that I've modified the createContents()
> method of one of the <CLASSNAME>EditPart.java files in the
> my.diagram.edit.parts package.
>
> Also, I'm not sure whether anyone knows where might be the likely place
> for the error I have: GMF or Epsilon... I'm not sure.
>
> PS. Note that the editor was working fine until this morning when I
> decided to make some little changes to my original emfatic file, which
> promptly led to funny behaviour in the editor, and I was just trying to
> understand why.
>
> Best,
>
> Edd
>
Re: Odd behaviour when using EuGENia [message #21947 is a reply to message #21902] Fri, 10 July 2009 20:00 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 92
Registered: July 2009
Member
Ahhh, while constructing a minimal version of the model for you Dimitris I
found that the problems disappeared! So, the problem wasn't with Epsilon
or anything: the problem seems to have been due to an extra project I had
in my workspace (which I'd been using for testing), which shared the same
namespace uri as the emfatic model I had... I don't think Eclipse liked
this...

Anyway, all seems to be ok now!

Cheers as usual,

Edd

Dimitris Kolovos wrote:

> Hi Edd,

> I haven't encountered similar behaviour with EuGENia, but I have to
> admit that I haven't ever used it with non-standalone metamodels...
> Could you perhaps send me the code (via email if it is sensitive in any
> way) so that I can have a look?

> Cheers,
> Dimitris

> Edward Turner wrote:
>> Hi all,
>>
>> Just a quick question if I may:
>>
>> Has anyone ever found when using EuGENia that after modifying your
>> original emfatic model and then going through the phases of gmf code
>> generation, the resulting diagram editor behaves not as expected? I've
>> been making small changes to my emfatic file and have found that
>> sometimes the resulting editor doesn't let me add elements to the diagram.
>>
>> Other common peculiarities are that if I close the new eclipse instance
>> (to play with the new editor) then reopen it, the diagram editor
>> magically works for a short time. Then it will break, e.g., if I resize
>> a box (e.g., for a state chart), it won't change shape, but will cause a
>> modification to the diagram file (indicated by the '*' that prefixes the
>> file name in the tab that contains the diagram). Then upon reopening the
>> editor I get: "Could not open the editor: The feature 'name' is not a
>> valid feature", with the following error trace:
>>
>> ============ BEGIN >>>
>> java.lang.IllegalArgumentException: The feature 'name' is not a valid
>> feature
>> at
>>
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEO bjectImpl.java:1062)
>>
>> at
>>
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1016)
>>
>> at
>>
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1004)
>>
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:999)
>> at
>> umlsa.diagram.parsers.AbstractParser.getValue(AbstractParser .java:150)
>> at
>> umlsa.diagram.parsers.AbstractParser.getValues(AbstractParse r.java:141)
>> at
>>
umlsa.diagram.parsers.MessageFormatParser.getPrintString(Mes sageFormatParser.java:173)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzNameEditPart.getLabelText(Claz zNameEditPart.java:212)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzNameEditPart.refreshLabel(Claz zNameEditPart.java:415)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzNameEditPart.refreshVisuals(Cl azzNameEditPart.java:404)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzNameEditPart.setLabel(ClazzNam eEditPart.java:170)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzEditPart.addFixedChild(ClazzEd itPart.java:152)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzEditPart.addChildVisual(ClazzE ditPart.java:205)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>>
>> at
>>
org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>>
>> at
>>
org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>>
>> at
>>
org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>>
>> at
>>
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>>
>> at
>>
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:870)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:863)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:116)
>>
>> at
>>
umlsa.diagram.part.Simple_umlDiagramEditor.initializeGraphic alViewer(Simple_umlDiagramEditor.java:312)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:807)
>>
>> at
>>
org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1555)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:328)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>>
>> at
>>
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>
>> at
>>
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
>>
>> at
>>
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:266)
>> at
>>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2820)
>>
>> at
>>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
>> at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
>> at
>>
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
>>
>> at
>>
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
>>
>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
>> at
>>
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
>>
>> at
>>
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
>>
>> at
>>
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
>>
>> at
>>
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
>> at
>>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
>>
>> at
>>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
>>
>> at
>>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
>> at
>> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
>> at
>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
>> at
>>
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>>
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>>
>> at
>>
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>>
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>>
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>> <<< END ============
>>
>> I should point out that my emfatic file makes use of another file via
>> the "imports statement", and that I've modified the createContents()
>> method of one of the <CLASSNAME>EditPart.java files in the
>> my.diagram.edit.parts package.
>>
>> Also, I'm not sure whether anyone knows where might be the likely place
>> for the error I have: GMF or Epsilon... I'm not sure.
>>
>> PS. Note that the editor was working fine until this morning when I
>> decided to make some little changes to my original emfatic file, which
>> promptly led to funny behaviour in the editor, and I was just trying to
>> understand why.
>>
>> Best,
>>
>> Edd
>>
Re: Odd behaviour when using EuGENia [message #22036 is a reply to message #21947] Sat, 11 July 2009 17:08 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Edd,

Glad it wasn't anything more serious and thanks for the update!

Cheers,
Dimitris

Edward Turner wrote:
> Ahhh, while constructing a minimal version of the model for you Dimitris
> I found that the problems disappeared! So, the problem wasn't with
> Epsilon or anything: the problem seems to have been due to an extra
> project I had in my workspace (which I'd been using for testing), which
> shared the same namespace uri as the emfatic model I had... I don't
> think Eclipse liked this...
>
> Anyway, all seems to be ok now!
>
> Cheers as usual,
>
> Edd
>
> Dimitris Kolovos wrote:
>
>> Hi Edd,
>
>> I haven't encountered similar behaviour with EuGENia, but I have to
>> admit that I haven't ever used it with non-standalone metamodels...
>> Could you perhaps send me the code (via email if it is sensitive in
>> any way) so that I can have a look?
>
>> Cheers,
>> Dimitris
>
>> Edward Turner wrote:
>>> Hi all,
>>>
>>> Just a quick question if I may:
>>>
>>> Has anyone ever found when using EuGENia that after modifying your
>>> original emfatic model and then going through the phases of gmf code
>>> generation, the resulting diagram editor behaves not as expected?
>>> I've been making small changes to my emfatic file and have found that
>>> sometimes the resulting editor doesn't let me add elements to the
>>> diagram.
>>>
>>> Other common peculiarities are that if I close the new eclipse
>>> instance (to play with the new editor) then reopen it, the diagram
>>> editor magically works for a short time. Then it will break, e.g., if
>>> I resize a box (e.g., for a state chart), it won't change shape, but
>>> will cause a modification to the diagram file (indicated by the '*'
>>> that prefixes the file name in the tab that contains the diagram).
>>> Then upon reopening the editor I get: "Could not open the editor: The
>>> feature 'name' is not a valid feature", with the following error trace:
>>>
>>> ============ BEGIN >>>
>>> java.lang.IllegalArgumentException: The feature 'name' is not a valid
>>> feature
>>> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEO bjectImpl.java:1062)
>
>>>
>>> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1016)
>
>>>
>>> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1004)
>
>>>
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:999)
>>>
>>> at
>>> umlsa.diagram.parsers.AbstractParser.getValue(AbstractParser .java:150)
>>> at
>>> umlsa.diagram.parsers.AbstractParser.getValues(AbstractParse r.java:141)
>>> at
> umlsa.diagram.parsers.MessageFormatParser.getPrintString(Mes sageFormatParser.java:173)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.getLabelText(Claz zNameEditPart.java:212)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.refreshLabel(Claz zNameEditPart.java:415)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.refreshVisuals(Cl azzNameEditPart.java:404)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.setLabel(ClazzNam eEditPart.java:170)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzEditPart.addFixedChild(ClazzEd itPart.java:152)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzEditPart.addChildVisual(ClazzE ditPart.java:205)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>
>>>
>>> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>
>>>
>>> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>
>>>
>>> at
> org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>
>>>
>>> at
> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>
>>>
>>> at
> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:870)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:863)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:116)
>
>>>
>>> at
> umlsa.diagram.part.Simple_umlDiagramEditor.initializeGraphic alViewer(Simple_umlDiagramEditor.java:312)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:807)
>
>>>
>>> at
> org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1555)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:328)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>
>>>
>>> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
>>>
>>> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
>
>>>
>>> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:266)
>>>
>>> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2820)
>
>>>
>>> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
>
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
>>>
>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
>>> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
>
>>>
>>> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
>
>>>
>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
>>> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
>
>>>
>>> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
>
>>>
>>> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
>
>>>
>>> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
>
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
>>> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
>
>>>
>>> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
>
>>>
>>> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
>
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
>>> at
>>> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
>>> at
>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
>>> at
>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
>>> at
>>> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
>>> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
>>>
>>> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
>>>
>>> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
>>>
>>> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
>>>
>>> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
>>>
>>> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
>>>
>>> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>>> <<< END ============
>>>
>>> I should point out that my emfatic file makes use of another file via
>>> the "imports statement", and that I've modified the createContents()
>>> method of one of the <CLASSNAME>EditPart.java files in the
>>> my.diagram.edit.parts package.
>>>
>>> Also, I'm not sure whether anyone knows where might be the likely
>>> place for the error I have: GMF or Epsilon... I'm not sure.
>>>
>>> PS. Note that the editor was working fine until this morning when I
>>> decided to make some little changes to my original emfatic file,
>>> which promptly led to funny behaviour in the editor, and I was just
>>> trying to understand why.
>>>
>>> Best,
>>>
>>> Edd
>>>
>
Re: Odd behaviour when using EuGENia [message #570428 is a reply to message #21855] Thu, 09 July 2009 08:32 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Edd,

I haven't encountered similar behaviour with EuGENia, but I have to
admit that I haven't ever used it with non-standalone metamodels...
Could you perhaps send me the code (via email if it is sensitive in any
way) so that I can have a look?

Cheers,
Dimitris

Edward Turner wrote:
> Hi all,
>
> Just a quick question if I may:
>
> Has anyone ever found when using EuGENia that after modifying your
> original emfatic model and then going through the phases of gmf code
> generation, the resulting diagram editor behaves not as expected? I've
> been making small changes to my emfatic file and have found that
> sometimes the resulting editor doesn't let me add elements to the diagram.
>
> Other common peculiarities are that if I close the new eclipse instance
> (to play with the new editor) then reopen it, the diagram editor
> magically works for a short time. Then it will break, e.g., if I resize
> a box (e.g., for a state chart), it won't change shape, but will cause a
> modification to the diagram file (indicated by the '*' that prefixes the
> file name in the tab that contains the diagram). Then upon reopening the
> editor I get: "Could not open the editor: The feature 'name' is not a
> valid feature", with the following error trace:
>
> ============ BEGIN >>>
> java.lang.IllegalArgumentException: The feature 'name' is not a valid
> feature
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEO bjectImpl.java:1062)
>
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1016)
>
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1004)
>
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:999)
> at
> umlsa.diagram.parsers.AbstractParser.getValue(AbstractParser .java:150)
> at
> umlsa.diagram.parsers.AbstractParser.getValues(AbstractParse r.java:141)
> at
> umlsa.diagram.parsers.MessageFormatParser.getPrintString(Mes sageFormatParser.java:173)
>
> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.getLabelText(Claz zNameEditPart.java:212)
>
> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.refreshLabel(Claz zNameEditPart.java:415)
>
> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.refreshVisuals(Cl azzNameEditPart.java:404)
>
> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.setLabel(ClazzNam eEditPart.java:170)
>
> at
> umlsa.diagram.edit.parts.ClazzEditPart.addFixedChild(ClazzEd itPart.java:152)
>
> at
> umlsa.diagram.edit.parts.ClazzEditPart.addChildVisual(ClazzE ditPart.java:205)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>
> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>
> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>
> at
> org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>
> at
> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>
> at
> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:870)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:863)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:116)
>
> at
> umlsa.diagram.part.Simple_umlDiagramEditor.initializeGraphic alViewer(Simple_umlDiagramEditor.java:312)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:807)
>
> at
> org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1555)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:328)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:266)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2820)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
> at
> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
>
> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
>
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
>
> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
>
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
>
> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
>
> at
> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
> at
> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> <<< END ============
>
> I should point out that my emfatic file makes use of another file via
> the "imports statement", and that I've modified the createContents()
> method of one of the <CLASSNAME>EditPart.java files in the
> my.diagram.edit.parts package.
>
> Also, I'm not sure whether anyone knows where might be the likely place
> for the error I have: GMF or Epsilon... I'm not sure.
>
> PS. Note that the editor was working fine until this morning when I
> decided to make some little changes to my original emfatic file, which
> promptly led to funny behaviour in the editor, and I was just trying to
> understand why.
>
> Best,
>
> Edd
>
Re: Odd behaviour when using EuGENia [message #570444 is a reply to message #21902] Fri, 10 July 2009 20:00 Go to previous message
No real name is currently offline No real name
Messages: 92
Registered: July 2009
Member
Ahhh, while constructing a minimal version of the model for you Dimitris I
found that the problems disappeared! So, the problem wasn't with Epsilon
or anything: the problem seems to have been due to an extra project I had
in my workspace (which I'd been using for testing), which shared the same
namespace uri as the emfatic model I had... I don't think Eclipse liked
this...

Anyway, all seems to be ok now!

Cheers as usual,

Edd

Dimitris Kolovos wrote:

> Hi Edd,

> I haven't encountered similar behaviour with EuGENia, but I have to
> admit that I haven't ever used it with non-standalone metamodels...
> Could you perhaps send me the code (via email if it is sensitive in any
> way) so that I can have a look?

> Cheers,
> Dimitris

> Edward Turner wrote:
>> Hi all,
>>
>> Just a quick question if I may:
>>
>> Has anyone ever found when using EuGENia that after modifying your
>> original emfatic model and then going through the phases of gmf code
>> generation, the resulting diagram editor behaves not as expected? I've
>> been making small changes to my emfatic file and have found that
>> sometimes the resulting editor doesn't let me add elements to the diagram.
>>
>> Other common peculiarities are that if I close the new eclipse instance
>> (to play with the new editor) then reopen it, the diagram editor
>> magically works for a short time. Then it will break, e.g., if I resize
>> a box (e.g., for a state chart), it won't change shape, but will cause a
>> modification to the diagram file (indicated by the '*' that prefixes the
>> file name in the tab that contains the diagram). Then upon reopening the
>> editor I get: "Could not open the editor: The feature 'name' is not a
>> valid feature", with the following error trace:
>>
>> ============ BEGIN >>>
>> java.lang.IllegalArgumentException: The feature 'name' is not a valid
>> feature
>> at
>>
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEO bjectImpl.java:1062)
>>
>> at
>>
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1016)
>>
>> at
>>
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1004)
>>
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:999)
>> at
>> umlsa.diagram.parsers.AbstractParser.getValue(AbstractParser .java:150)
>> at
>> umlsa.diagram.parsers.AbstractParser.getValues(AbstractParse r.java:141)
>> at
>>
umlsa.diagram.parsers.MessageFormatParser.getPrintString(Mes sageFormatParser.java:173)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzNameEditPart.getLabelText(Claz zNameEditPart.java:212)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzNameEditPart.refreshLabel(Claz zNameEditPart.java:415)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzNameEditPart.refreshVisuals(Cl azzNameEditPart.java:404)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzNameEditPart.setLabel(ClazzNam eEditPart.java:170)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzEditPart.addFixedChild(ClazzEd itPart.java:152)
>>
>> at
>>
umlsa.diagram.edit.parts.ClazzEditPart.addChildVisual(ClazzE ditPart.java:205)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>>
>> at
>>
org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>>
>> at
>>
org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>>
>> at
>>
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>>
>> at
>>
org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>>
>> at
>>
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>>
>> at
>>
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:870)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:863)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:116)
>>
>> at
>>
umlsa.diagram.part.Simple_umlDiagramEditor.initializeGraphic alViewer(Simple_umlDiagramEditor.java:312)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:807)
>>
>> at
>>
org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1555)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:328)
>>
>> at
>>
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>>
>> at
>>
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>
>> at
>>
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
>>
>> at
>>
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:266)
>> at
>>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2820)
>>
>> at
>>
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
>> at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
>> at
>>
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
>>
>> at
>>
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
>>
>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
>> at
>>
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
>>
>> at
>>
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
>>
>> at
>>
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
>>
>> at
>>
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
>> at
>>
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
>>
>> at
>>
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
>>
>> at
>>
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
>>
>> at
>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
>> at
>> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
>> at
>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
>> at
>>
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>>
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>>
>> at
>>
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>>
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>>
>> at
>>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>>
>> at
>>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>> <<< END ============
>>
>> I should point out that my emfatic file makes use of another file via
>> the "imports statement", and that I've modified the createContents()
>> method of one of the <CLASSNAME>EditPart.java files in the
>> my.diagram.edit.parts package.
>>
>> Also, I'm not sure whether anyone knows where might be the likely place
>> for the error I have: GMF or Epsilon... I'm not sure.
>>
>> PS. Note that the editor was working fine until this morning when I
>> decided to make some little changes to my original emfatic file, which
>> promptly led to funny behaviour in the editor, and I was just trying to
>> understand why.
>>
>> Best,
>>
>> Edd
>>
Re: Odd behaviour when using EuGENia [message #570470 is a reply to message #21947] Sat, 11 July 2009 17:08 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Edd,

Glad it wasn't anything more serious and thanks for the update!

Cheers,
Dimitris

Edward Turner wrote:
> Ahhh, while constructing a minimal version of the model for you Dimitris
> I found that the problems disappeared! So, the problem wasn't with
> Epsilon or anything: the problem seems to have been due to an extra
> project I had in my workspace (which I'd been using for testing), which
> shared the same namespace uri as the emfatic model I had... I don't
> think Eclipse liked this...
>
> Anyway, all seems to be ok now!
>
> Cheers as usual,
>
> Edd
>
> Dimitris Kolovos wrote:
>
>> Hi Edd,
>
>> I haven't encountered similar behaviour with EuGENia, but I have to
>> admit that I haven't ever used it with non-standalone metamodels...
>> Could you perhaps send me the code (via email if it is sensitive in
>> any way) so that I can have a look?
>
>> Cheers,
>> Dimitris
>
>> Edward Turner wrote:
>>> Hi all,
>>>
>>> Just a quick question if I may:
>>>
>>> Has anyone ever found when using EuGENia that after modifying your
>>> original emfatic model and then going through the phases of gmf code
>>> generation, the resulting diagram editor behaves not as expected?
>>> I've been making small changes to my emfatic file and have found that
>>> sometimes the resulting editor doesn't let me add elements to the
>>> diagram.
>>>
>>> Other common peculiarities are that if I close the new eclipse
>>> instance (to play with the new editor) then reopen it, the diagram
>>> editor magically works for a short time. Then it will break, e.g., if
>>> I resize a box (e.g., for a state chart), it won't change shape, but
>>> will cause a modification to the diagram file (indicated by the '*'
>>> that prefixes the file name in the tab that contains the diagram).
>>> Then upon reopening the editor I get: "Could not open the editor: The
>>> feature 'name' is not a valid feature", with the following error trace:
>>>
>>> ============ BEGIN >>>
>>> java.lang.IllegalArgumentException: The feature 'name' is not a valid
>>> feature
>>> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenGet(BasicEO bjectImpl.java:1062)
>
>>>
>>> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1016)
>
>>>
>>> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:1004)
>
>>>
>>> at
>>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:999)
>>>
>>> at
>>> umlsa.diagram.parsers.AbstractParser.getValue(AbstractParser .java:150)
>>> at
>>> umlsa.diagram.parsers.AbstractParser.getValues(AbstractParse r.java:141)
>>> at
> umlsa.diagram.parsers.MessageFormatParser.getPrintString(Mes sageFormatParser.java:173)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.getLabelText(Claz zNameEditPart.java:212)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.refreshLabel(Claz zNameEditPart.java:415)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.refreshVisuals(Cl azzNameEditPart.java:404)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzNameEditPart.setLabel(ClazzNam eEditPart.java:170)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzEditPart.addFixedChild(ClazzEd itPart.java:152)
>
>>>
>>> at
> umlsa.diagram.edit.parts.ClazzEditPart.addChildVisual(ClazzE ditPart.java:205)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>
>>>
>>> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1295)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:571)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:839)
>
>>>
>>> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:289)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:829)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:219)
>
>>>
>>> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>
>>>
>>> at
> org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>
>>>
>>> at
> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>
>>>
>>> at
> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:870)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:863)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:116)
>
>>>
>>> at
> umlsa.diagram.part.Simple_umlDiagramEditor.initializeGraphic alViewer(Simple_umlDiagramEditor.java:312)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:807)
>
>>>
>>> at
> org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1555)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:328)
>
>>>
>>> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>
>>>
>>> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
>>>
>>> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
>
>>>
>>> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:266)
>>>
>>> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2820)
>
>>>
>>> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
>
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
>>> at
>>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
>>>
>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
>>> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
>>> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
>
>>>
>>> at
> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
>
>>>
>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
>>> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
>
>>>
>>> at
> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
>
>>>
>>> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
>
>>>
>>> at
> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
>
>>>
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
>>> at
> org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
>
>>>
>>> at
> org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
>
>>>
>>> at
> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
>
>>>
>>> at
>>> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
>>> at
>>> org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
>>> at
>>> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
>>> at
>>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>>> at
>>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
>>> at
>>> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
>>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
>>> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
>>>
>>> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
>>>
>>> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
>>>
>>> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
>>>
>>> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
>>>
>>> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
>>>
>>> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>>> <<< END ============
>>>
>>> I should point out that my emfatic file makes use of another file via
>>> the "imports statement", and that I've modified the createContents()
>>> method of one of the <CLASSNAME>EditPart.java files in the
>>> my.diagram.edit.parts package.
>>>
>>> Also, I'm not sure whether anyone knows where might be the likely
>>> place for the error I have: GMF or Epsilon... I'm not sure.
>>>
>>> PS. Note that the editor was working fine until this morning when I
>>> decided to make some little changes to my original emfatic file,
>>> which promptly led to funny behaviour in the editor, and I was just
>>> trying to understand why.
>>>
>>> Best,
>>>
>>> Edd
>>>
>
Previous Topic:EuGENia link attributes
Next Topic:Euginia: Synchronize GMF Gen Model produce an Error
Goto Forum:
  


Current Time: Sat Aug 30 22:29:13 EDT 2014

Powered by FUDForum. Page generated in 0.02776 seconds