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 #499973] 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 5 times in my Workspace log:

Message:

Editor is not an ITextEditor or editor inputs not equal 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.

I notice also that Delete from diagram on a class in a diagram, doesn't work anymore when I change the diagram Sad.

--
thx, Milan

[Updated on: Tue, 24 November 2009 16:02]

Report message to a moderator

Re: Editor is not an ITextEditor error [message #499979 is a reply to message #499973] 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.EPackageCanonicalEditPolicy.refreshConnections(EPackageCanonicalEditPolicy.java:215)
	at org.eclipse.emf.ecoretools.diagram.edit.policies.EPackageCanonicalEditPolicy.refreshSemantic(EPackageCanonicalEditPolicy.java:162)
	at org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy.refresh(CanonicalEditPolicy.java:979)
	at org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalConnectionEditPolicy.refreshOnActivate(CanonicalConnectionEditPolicy.java:108)
	at org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy.activate(CanonicalEditPolicy.java:646)
	at org.eclipse.gef.editparts.AbstractEditPart.activateEditPolicies(AbstractEditPart.java:165)
	at org.eclipse.gef.editparts.AbstractEditPart.activate(AbstractEditPart.java:148)
	at org.eclipse.gef.editparts.AbstractGraphicalEditPart.activate(AbstractGraphicalEditPart.java:193)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$0(GraphicalEditPart.java:1)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.activate(GraphicalEditPart.java:205)
	at org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart.activate(DiagramEditPart.java:349)
	at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:201)
	at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:101)
	at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:601)
	at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer.setContents(DiagramGraphicalViewer.java:378)
	at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:610)
	at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initializeGraphicalViewerContents(DiagramEditor.java:870)
	at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditor.initializeGraphicalViewerContents(EcoreDiagramEditor.java:459)
	at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditor.changeActiveDiagram(EcoreDiagramEditor.java:516)
	at org.eclipse.emf.ecoretools.diagram.part.NavigationManager$ChangeActiveDiagramCommand.redo(NavigationManager.java:250)
	at org.eclipse.emf.ecoretools.diagram.part.NavigationManager$ChangeActiveDiagramCommand.execute(NavigationManager.java:243)
	at org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy.doExecuteWithResult(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.set(NavigationManager.java:153)
	at org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditor.setDiagram(EcoreDiagramEditor.java:492)
	at org.eclipse.emf.ecoretools.diagram.edit.policies.OpenDiagramEditPolicy$OpenDiagramCommand.openEditor(OpenDiagramEditPolicy.java:179)
	at org.eclipse.emf.ecoretools.diagram.edit.policies.OpenDiagramEditPolicy$OpenDiagramCommand.okPressed(OpenDiagramEditPolicy.java:161)
	at org.eclipse.emf.ecoretools.diagram.edit.policies.OpenDiagramEditPolicy$OpenDiagramCommand.doExecuteWithResult(OpenDiagramEditPolicy.java:139)
	at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:247)
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.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.GraphicalEditPart.performRequest(GraphicalEditPart.java:1119)
	at org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:187)
	at org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:131)
	at org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:955)
	at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:501)
	at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:501)
	at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:208)
	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:285)
	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:508)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.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.java:3880)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	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(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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 #500092 is a reply to message #499979] 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.java:329)
	at org.eclipse.draw2d.FigureUtilities.getFontMetrics(FigureUtilities.java:58)
	at org.eclipse.emf.ecoretools.diagram.edit.parts.EcoreEditPartFactory$TextCellEditorLocator.relocate(EcoreEditPartFactory.java:211)
	at org.eclipse.gef.tools.DirectEditManager.placeCellEditor(DirectEditManager.java:314)
	at org.eclipse.gef.tools.DirectEditManager.access$1(DirectEditManager.java:313)
	at org.eclipse.gef.tools.DirectEditManager$1.ancestorMoved(DirectEditManager.java:244)
	at org.eclipse.draw2d.AncestorHelper.fireAncestorMoved(AncestorHelper.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(PolylineConnection.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.calculatePreferredSize(FreeformViewport.java:28)
	at org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:93)
	at org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:85)
	at org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:735)
	at org.eclipse.draw2d.ScrollPaneSolver.solve(ScrollPaneSolver.java:75)
	at org.eclipse.draw2d.FigureCanvas.layoutViewport(FigureCanvas.java:315)
	at org.eclipse.draw2d.FigureCanvas.access$4(FigureCanvas.java:313)
	at org.eclipse.draw2d.FigureCanvas$3.notifyValidating(FigureCanvas.java:278)
	at org.eclipse.draw2d.UpdateManager.fireValidating(UpdateManager.java:123)
	at org.eclipse.draw2d.DeferredUpdateManager.performValidation(DeferredUpdateManager.java:203)
	at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer$ToggleUpdateManager.performValidation(DiagramGraphicalViewer.java:124)
	at org.eclipse.draw2d.DeferredUpdateManager.paint(DeferredUpdateManager.java:154)
	at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem.java:199)
	at org.eclipse.draw2d.LightweightSystem$2.handleEvent(LightweightSystem.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:1425)
	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:2410)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	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(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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 do I get these errors? The ecore file is populated properly, as far as I can see.

--
Milan

[Updated on: Wed, 25 November 2009 16:46]

Report message to a moderator

Re: Editor is not an ITextEditor error [message #500335 is a reply to message #499973] 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 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$DropTargetListener.getObjectsBeingDropped(EcoreDiagramEditor.java:395)
	at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramDropTargetListener.updateTargetRequest(DiagramDropTargetListener.java:197)
	at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramDropTargetListener.isEnabled(DiagramDropTargetListener.java:213)
	at org.eclipse.jface.util.DelegatingDropAdapter.updateCurrentListener(DelegatingDropAdapter.java:365)
	at org.eclipse.jface.util.DelegatingDropAdapter.dragEnter(DelegatingDropAdapter.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:770)
	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(COMObject.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.java:3880)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	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(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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)

[Updated on: Wed, 25 November 2009 16:45]

Report message to a moderator

Previous Topic:how can i create an Instance of EList<Eobject>?
Next Topic:Editor is not an ITextEditor error
Goto Forum:
  


Current Time: Thu Jun 24 07:10:48 GMT 2021

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

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

Back to the top