Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Editor is not an ITextEditor error
Editor is not an ITextEditor error [message #621604] Tue, 24 November 2009 15:55 Go to next message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
Hi,

I'm creating one ecore diagram in latest Ecore tools (Eclipse Modeling Galileo 3.5 + JDK 1.6), however when I right click anywhere on the diagram I get following error:

Message:

Editor is not an ITextEditor or editor inputs not equal mailto:org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditor@a32fb5

Exception stack trace:

An exception stack trace is not available.

Session data:

eclipse.buildId=M20090917-0800
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sr_CS
Framework arguments: -product org.eclipse.epp.package.modeling.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.modeling.product

I think that this happened when I have deleted one package in a diagram, but I'm not sure.

--
thx, Milan
Re: Editor is not an ITextEditor error [message #621605 is a reply to message #621604] Tue, 24 November 2009 16:06 Go to previous messageGo to next message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
I see now that I also get an Exception:

IRJS0007E Semantic refresh failed.

java.lang.NullPointerException
at org.eclipse.emf.ecoretools.diagram.edit.policies.EPackageCan onicalEditPolicy.refreshConnections(EPackageCanonicalEditPol icy.java:215)
at org.eclipse.emf.ecoretools.diagram.edit.policies.EPackageCan onicalEditPolicy.refreshSemantic(EPackageCanonicalEditPolicy .java:162)
at org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEdi tPolicy.refresh(CanonicalEditPolicy.java:979)
at org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalCon nectionEditPolicy.refreshOnActivate(CanonicalConnectionEditP olicy.java:108)
at org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEdi tPolicy.activate(CanonicalEditPolicy.java:646)
at org.eclipse.gef.editparts.AbstractEditPart.activateEditPolic ies(AbstractEditPart.java:165)
at org.eclipse.gef.editparts.AbstractEditPart.activate(Abstract EditPart.java:148)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate (AbstractGraphicalEditPart.java:193)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$0(GraphicalEditPart.java:1)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.activate(GraphicalEditPart.java:205)
at org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart .activate(DiagramEditPart.java:349)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:201)
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.emf.ecoretools.diagram.part.EcoreDiagramEditor.i nitializeGraphicalViewerContents(EcoreDiagramEditor.java:459 )
at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditor.c hangeActiveDiagram(EcoreDiagramEditor.java:516)
at org.eclipse.emf.ecoretools.diagram.part.NavigationManager$Ch angeActiveDiagramCommand.redo(NavigationManager.java:250)
at org.eclipse.emf.ecoretools.diagram.part.NavigationManager$Ch angeActiveDiagramCommand.execute(NavigationManager.java:243)
at org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy.doE xecuteWithResult(CommandProxy.java:50)
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand. execute(AbstractCommand.java:135)
at org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:511)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack .execute(DiagramCommandStack.java:206)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack .execute(DiagramCommandStack.java:169)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack .execute(DiagramCommandStack.java:156)
at org.eclipse.emf.ecoretools.diagram.part.NavigationManager.se t(NavigationManager.java:153)
at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditor.s etDiagram(EcoreDiagramEditor.java:492)
at org.eclipse.emf.ecoretools.diagram.edit.policies.OpenDiagram EditPolicy$OpenDiagramCommand.openEditor(OpenDiagramEditPoli cy.java:179)
at org.eclipse.emf.ecoretools.diagram.edit.policies.OpenDiagram EditPolicy$OpenDiagramCommand.okPressed(OpenDiagramEditPolic y.java:161)
at org.eclipse.emf.ecoretools.diagram.edit.policies.OpenDiagram EditPolicy$OpenDiagramCommand.doExecuteWithResult(OpenDiagra mEditPolicy.java:139)
at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTr ansactionalCommand.doExecute(AbstractTransactionalCommand.ja va:247)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr actEMFOperation.java:150)
at org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:511)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack .execute(DiagramCommandStack.java:206)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack .execute(DiagramCommandStack.java:169)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack .execute(DiagramCommandStack.java:156)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.performRequest(GraphicalEditPart.java:1119)
at org.eclipse.gef.tools.SelectEditPartTracker.performOpen(Sele ctEditPartTracker.java:187)
at org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClic k(SelectEditPartTracker.java:131)
at org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(Abstract Tool.java:955)
at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(Selecti onTool.java:501)
at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(Selecti onTool.java:501)
at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java: 208)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouse DoubleClicked(DomainEventDispatcher.java:285)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubl eClick(LightweightSystem.java:508)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:183)
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:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
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:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Re: Editor is not an ITextEditor error [message #621606 is a reply to message #621605] Tue, 24 November 2009 22:33 Go to previous messageGo to next message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
I removed the attlasian svn plugin, and I don't get the first error anymore. However, now, when I create new association in ecorediag, I get:

Unhandled event loop exception

java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:3865)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.graphics.GC.setFont(GC.java:4234)
at org.eclipse.draw2d.FigureUtilities.setFont(FigureUtilities.j ava:329)
at org.eclipse.draw2d.FigureUtilities.getFontMetrics(FigureUtil ities.java:58)
at org.eclipse.emf.ecoretools.diagram.edit.parts.EcoreEditPartF actory$TextCellEditorLocator.relocate(EcoreEditPartFactory.j ava:211)
at org.eclipse.gef.tools.DirectEditManager.placeCellEditor(Dire ctEditManager.java:314)
at org.eclipse.gef.tools.DirectEditManager.access$1(DirectEditM anager.java:313)
at org.eclipse.gef.tools.DirectEditManager$1.ancestorMoved(Dire ctEditManager.java:244)
at org.eclipse.draw2d.AncestorHelper.fireAncestorMoved(Ancestor Helper.java:98)
at org.eclipse.draw2d.AncestorHelper.figureMoved(AncestorHelper .java:87)
at org.eclipse.draw2d.Figure.fireFigureMoved(Figure.java:461)
at org.eclipse.draw2d.PolylineConnection.layout(PolylineConnect ion.java:181)
at org.eclipse.draw2d.Figure.validate(Figure.java:1739)
at org.eclipse.draw2d.Figure.validate(Figure.java:1741)
at org.eclipse.draw2d.Figure.validate(Figure.java:1741)
at org.eclipse.draw2d.Figure.validate(Figure.java:1741)
at org.eclipse.draw2d.Figure.validate(Figure.java:1741)
at org.eclipse.draw2d.FreeformViewport$FreeformViewportLayout.c alculatePreferredSize(FreeformViewport.java:28)
at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractL ayout.java:93)
at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(Abstr actHintLayout.java:85)
at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:735)
at org.eclipse.draw2d.ScrollPaneSolver.solve(ScrollPaneSolver.j ava:75)
at org.eclipse.draw2d.FigureCanvas.layoutViewport(FigureCanvas. java:315)
at org.eclipse.draw2d.FigureCanvas.access$4(FigureCanvas.java:3 13)
at org.eclipse.draw2d.FigureCanvas$3.notifyValidating(FigureCan vas.java:278)
at org.eclipse.draw2d.UpdateManager.fireValidating(UpdateManage r.java:123)
at org.eclipse.draw2d.DeferredUpdateManager.performValidation(D eferredUpdateManager.java:203)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer$ToggleUpdateManager.performValidation(DiagramGraphicalVi ewer.java:124)
at org.eclipse.draw2d.DeferredUpdateManager.paint(DeferredUpdat eManager.java:154)
at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem .java:199)
at org.eclipse.draw2d.LightweightSystem$2.handleEvent(Lightweig htSystem.java:107)
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.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:14 25)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4001 )
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:24 10)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3471)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
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:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Why I have got these errors? The ecore file is populated properly, as far as I can see.

--
Milan
Re: Editor is not an ITextEditor error [message #621614 is a reply to message #621604] Wed, 25 November 2009 16:45 Go to previous message
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
When I want to drag-n-drop a class from from one package in .ecore file shown in Project Explorer to the Ecore diagram, I get this exception:

eclipse.buildId=M20090917-0800
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sr_CS
Framework arguments: -product org.eclipse.epp.package.modeling.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.modeling.product


Error
Wed Nov 25 17:42:44 CET 2009
Unhandled event loop exception

java.lang.NullPointerException
at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditor$D ropTargetListener.getObjectsBeingDropped(EcoreDiagramEditor. java:395)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramDropTargetLi stener.updateTargetRequest(DiagramDropTargetListener.java:19 7)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramDropTargetLi stener.isEnabled(DiagramDropTargetListener.java:213)
at org.eclipse.jface.util.DelegatingDropAdapter.updateCurrentLi stener(DelegatingDropAdapter.java:365)
at org.eclipse.jface.util.DelegatingDropAdapter.dragEnter(Deleg atingDropAdapter.java:128)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java :60)
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.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:7 70)
at org.eclipse.swt.dnd.DropTarget.DragEnter(DropTarget.java:297 )
at org.eclipse.swt.dnd.DropTarget$3.method3(DropTarget.java:243 )
at org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMOb ject.java:92)
at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java :172)
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:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
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:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Previous Topic:Editor is not an ITextEditor error
Next Topic:[EEF] Extend or customize EEF Widgets/Behaviour
Goto Forum:
  


Current Time: Thu Jun 17 06:37:27 GMT 2021

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

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

Back to the top