Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] How to display all figures?

Dear Team,


Sorry put i have to ask again :) Is it possible to have different figues for a ecore class? The following diagrams should help to mention the problem.

My ecore diagramm looks like:



Now i want to create an editor that has a figure for "Element1" and "Element2".
I expect the following result:



But in reality i've got:



But the XML file in the background contains both elments.Although i've tried a lot of things it's not possible to display the element two.
I can only create the elements which are placed in the first place in the genmap definition.
Why?

I got following stack trace:

eclipse.buildId=I20070625-1500
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.sdk.ide -pdelaunch
Command-line arguments: -product org.eclipse.sdk.ide -data D:\EclipseWorkspaceEuropa/../runtime-EclipseApplication -dev file:D:/EclipseWorkspaceEuropa/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -pdelaunch -os win32 -ws win32 -arch x86

Error
Thu Jul 19 07:21:17 CEST 2007
execute

org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:519)
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)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack.execute(DiagramCommandStack.java:155)
at org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTool.java:388)
at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:400)
at org.eclipse.gmf.runtime.diagram.ui.tools.CreationTool.performCreation(CreationTool.java:133)
at org.eclipse.gef.tools.CreationTool.handleButtonUp(CreationTool.java:178)
at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1053)
at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:259)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:374)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:538)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:206)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Caused by: org.eclipse.jface.util.Assert$AssertionFailedException: null argument;failed to create a view
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:153)
at org.eclipse.gmf.runtime.diagram.ui.commands.CreateCommand.doExecuteWithResult(CreateCommand.java:99)
at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:246)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:137)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:406)
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:406)
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.doExecuteWithResult(CompositeCommand.java:406)
at org.eclipse.gmf.runtime.common.core.command.AbstractCommand.execute(AbstractCommand.java:134)
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511)
... 37 more


I hope you can help me. I tried to explain the problem with this easy example. In reality it's a problem of a complex editor.
I've validated all my components in each step.



i've attached the source. Please don't forget to remove ".txt" to get the zip file :).


(See attached file: model.zip.txt)

Thx
Thomas Gaus

GIF image

GIF image

GIF image

PK|Dó6¨ß}ÂZtest.gmfmapÝU]kÛ0}/ô?õ¹Qâ²2ŒìÒMºöªÚ7¶@ÆÒêîßï*V"»sè }(ӓ¥{ι_Ì®^”œ=Ck…ÑYÎdº0¥ÐUFnο’«üô„Uj«x“nxÓ`hö¢Dz`%È:=™áA1mSf¤v®I)íºnnT57mEn¾qvŒë.v°d±X"ööGQƒâçB[Çu#j_Έ
……†½Ì%U}½ö5Ù#ßb¡ˆº†­ÐÂa£$÷"L›lÞë±ÂhDžV Ý
p÷«…>àOÝÂ6#¬CuÓÂ¥÷Æ8úM‚Ç/	Ý«˜NC¹®…,#»É”ׂW-W6#”®ÊþBò=Œ•Faú
8T£Àd£€äO ÃVmÙ,äºõñ¡èH'… ¦>ÛéÞqCm:-Îüð‡’èƒÔýn #a3éºÅaâÈýȑ–›Z5\‚s@WþÁ·a5¡¡;\ßqÅA7q=4ø0;$ÿ›’Og‡å;ìü£‚ì®k®Ÿ¹ôÂ!‹¿Å$a“(,'iaƒ¦VÄy‘v¬¾Ws
<Fc¯ŒŽÿøôPKMAó6\«ä¥‹test.gmftool­’ËjÃ0E÷üƒÐ>–íR(ÆN}Qh¡´)dkœ‰#ÐÃHÓ:ùûŽl'µiº«Ú̙s‡‘òÕA+öÎKk
žD1g`*»•¦.øÇúaqÃWËù,¯õ­Uٚ®7¨¥Gwd-³soJ½ó£CJã3*|ØdB´mY]GÖÕbóò4åü”k¯:,ã„Øç÷jº\Hã±4LZ‡¡&íP)ÙxèTžk¦¾ƒ4iV¾’¼) B/d%*(8‚Ç×¾ÒsD†â(ÜË
Áã­<:ûÙðjä;‰~«.Én”aÌ åct0Þ+Ðɤ°_9Ù`÷];0-ëIñïééßéç´\taýªÅ°ëð“Ä¥¯D…oPKv:ó6ɏûK,¯
test.ecore­RMkÃ0½úŒwnÜd—’6Z(lPú»WIÍb;ØÎÒýûə;ØelºYï==	ˋjÈ;X'.išÌ)-ÌI꺤ÇÃzö@—‹é¤a,ä«-o¼rQ2ÿfeȚNŠi—c±¤gïۜ±¾ï£êÄؚ½¾lèâƐþ~@dóyŠ°ç½8ƒâ3©çZÀH}p2"ƒhdë`PU•Œ­ŒÍ‚=8E´;î6ñ“­…J^b¾ž$ÎGÐhî?ZԈŠWÝU*¥ì×¼1±[àí½í„ï,oÖÀñ…è;¨ÀBØÅMkÐ>¥¤k[°¦Ó§’ÎÒ8f8
wŒ}ù$ÂhÏ¥<œØv­ÿÕDö&
v»Àpsl|tˆúPK&Aó6O‹.’½
test.genmodelœ]KÃ0†ïþ‡¯mæ@²Î‹mAeŒ	ÞÆô´棜dþ{“´ÝV¼¯ìU“ó¾ïyNB¦G%“= Fçä6“47¥ÐuNÞ6ÅÍ=y˜]¦5heJÙ#è—ð“•ÈNƉ7^ÿù<m3_ÌÉÖ¹&£ôp8¤FÕ©Áš¾¿<‘NÜ DÀ¥h,D!¨ŠNÆã	]Ù »GùÝÛ³’$;ƒ_9¡¬£y—ë+¹«…~Zä$T;Ó+Sžr7„j:À ñNM}ô¯¥p̍j¤`šÃ3ìñ]8`nš/õÖdisR1iÌ‚gZy·¨[îYàh§tPˆR+Æ?Y
6i*qìAKacه„š½(ÖMîpþŽCfgnÇmÛ\Ó£MŸKf­¥¸jéR‚º%ô/–µ1®ïÑZ
`n‡qÓ:ùj´‡ä[!KÝCsôJ˜‡ÝÁ]@Nâ*[®¡oãüè‰A»3ôÿ1LÎGÏ'×^-½¸Ûðüè÷çw¿PKªbò6׋Ðo°%
test.gmfgraph½T]KÃ0}ü%ï[Ö"¥ÝêDPü_cz×Ò´4©›ÿÞÛµÙÚ¹égŸš›sν÷Ü$ád™)ïJ#s8"h‘ÇR'yyž
.Èd|z&Ù<)y‘—\¿sã-3¬ii§'~¨¦M€›I­-J‹Å0ϒa^&ôõþ¶3}Üâlc£‘Ø»'‘BÆR˵€ÕÕÓãƒP²0°A@-tNoj˜\]Á\ji±bâižAD,KƵl8—IU‚iRxí>2x¥Z‚b0¢”…ÍË5ÐA¯dþl%âàHàÂV\5á
{02°òÖ¾>敎!~Í&Êuû%G
Ø΃™D*U\‚î²væ¹ão H֑ÀßV¾±°´-†ÐM‡´Ûb·qÆô|ò¼ÆãˆP:míŽè´cj½ìêÑ©k˜KÒãÀÉ°˜;îdØ“aǛŒÿ«É„´•kV:·¯Xs \ÌÕѽMô[.ÛÉe}®ªÝ•¸öôÛän0Úފú¹›se6[ÎÐÏuëûÚ°½e±½e±¿-ËÿZVH·^zŒ}PK|Dó6¨ß}ÂZ test.gmfmapPKMAó6\«ä¥‹ ëtest.gmftoolPKv:ó6ɏûK,¯
 -test.ecorePK&Aó6O‹.’½
 test.genmodelPKªbò6׋Ðo°%
 >test.gmfgraphPK!

Back to the top