Problems with the GMFMap Model Editor [message #145183] |
Thu, 02 August 2007 18:51  |
Eclipse User |
|
|
|
Hi!
I'm not sure if this is the right place for my problem... if not... please
just tell me where to post it
I just started digging into the GMF and encountered a problem with the
GMFMap Model Editor:
When I try to add a new Link Mapping i can still save the file, after
setting the "Element" property in the Domain meta information i get a
message "Problems encountered...". The same problem occurs when i set the
"Children Feature" of a new node or the "Diagram Link" and "Tool" properties
of a new Link Mapping in the Visual representation properties. I get this
problem whatever I do and the file isn't saved anymore...
The error details are (always the same):
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getURIFragment( XMLHelperImpl.java:718)
at
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getHREF(XMLHelp erImpl.java:813)
at
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getHREF(XMLHelp erImpl.java:802)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveHref(XMLSaveI mpl.java:2198)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveHRefSingle(XM LSaveImpl.java:2258)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1478)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:1105)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:986)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedSing le(XMLSaveImpl.java:2277)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1458)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2590)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.writeTopObject(XM LSaveImpl.java:653)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:581)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:253)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1253)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.saveOnlyIfC hangedWithMemoryBuffer(ResourceImpl.java:1083)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:956)
at
org.eclipse.gmf.mappings.presentation.GMFMapEditor$16.execut e(GMFMapEditor.java:1440)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)
If anybody can help me... please do so ;-)
Greetings,
Markus
btw: Sry for my bad English I'm from Germany ;-)
|
|
|
|
|
|
Re: Problems with the GMFMap Model Editor [message #145458 is a reply to message #145407] |
Mon, 06 August 2007 07:48  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Alex,
In other words, if with EMF 2.3 he invokes Validate on the root EPackage
when he opens the .ecore model, does it complain about problems?
Alex Shatalin wrote:
> Hello news.eclipse.org,
>
> just guessing: do you have non-empty strings specified for: Name, NS
> Prefix, NS URI properties of the domain model?
>
> -----------------
> Alex Shatalin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04020 seconds