Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » unable to create editor ID when doing diagram partitioning
unable to create editor ID when doing diagram partitioning [message #153925] Sat, 06 October 2007 19:24 Go to next message
Eclipse UserFriend
Originally posted by: zhihui_yang73.yahoo.com

Hi all,

I am currently trying Diagram Partitioning with Eclipse 3.3 and GMF 2.0.
All I want to do is to open a sub-editor when I double click a node in the
main editor. Under the “Open Diagram Behaviou” node of my
mainEditor.gmfgen model, I set the “Diagram Kind” as my sub-Editor’s model
ID, and “Editor ID” as my sub-Editor’s Editor ID found in the
subeditor.gmfgen model. (Here is the link for the GMF Diagram Partitioning
I followed for this experiment
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg06184.html.)
However, when I run it and double click the node, an empty editor was
opened, and I got exception as following:
!MESSAGE Unable to create editor ID
com.mot.cxd.ui.flow.screen.diagram.part.FlowDiagramEditorID:
org.eclipse.core.runtime.CoreException: ERROR
!STACK 1
org.eclipse.core.runtime.CoreException: ERROR
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1458)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:609)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:379)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:219)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2571)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2504)
at
org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPag e.java:2496)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2481)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2476)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2453)
at
com.mot.cxd.ui.flow.diagram.edit.policies.OpenDiagramEditPol icy$OpenDiagramCommand.doExecuteWithResult(OpenDiagramEditPo licy.java:103)
at
org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTr ansactionalCommand.doExecute(AbstractTransactionalCommand.ja va:246)
at
org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr actEMFOperation.java:135)
at
org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:509)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack .execute(DiagramCommandStack.java:205)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack .execute(DiagramCommandStack.java:168)
…..

Can anybody tell me what are the possible problems here?

Thanks a lot!
Yang
Re: unable to create editor ID when doing diagram partitioning [message #153941 is a reply to message #153925] Sun, 07 October 2007 04:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yang!

I have followed the same instruction and it worked for
me.Unfortunately I can't guess what your problem is but you
can analyze my code to search for differences.

You can access my repository at:
<https://forge.spline.inf.fu-berlin.de/svn/swte>

Checkout Editors/DiagramPartitioningPrototype and read the
README.

If you want no clutter check out Revision 461 which is
dubbed "V1". This is the state of the prototype where I
just applied the same instructions you followed as well.

In revision 559 ("V2") I have also applied a shared Editing
Domain but its still buggy.

Hope that helps!
Nicolai


--

I'm using an evaluation license of nemo since 34 days.
You should really try it!
http://www.malcom-mac.com/nemo
Re: unable to create editor ID when doing diagram partitioning [message #154183 is a reply to message #153941] Mon, 08 October 2007 15:30 Go to previous message
Eclipse UserFriend
Originally posted by: zhihui_yang73.yahoo.com

Hi Nicolai,

Thanks for the reply. After having problem to open your models, I realized
that my Eclipse might be messed up somehow. I then reinstalled the latest
Eclipse & GMF, and it works fine now.

Thanks,
Yang
Previous Topic:where is the file "propsheet.genmodel"?
Next Topic:How can I forbid overlapping fields ?
Goto Forum:
  


Current Time: Sun Jul 27 18:09:23 EDT 2025

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

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

Back to the top