Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problems with the GMFMap Model Editor
Problems with the GMFMap Model Editor [message #145183] Thu, 02 August 2007 18:51 Go to next message
Eclipse UserFriend
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 #145193 is a reply to message #145183] Fri, 03 August 2007 04:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: giuseppeloprete.gmail.com

why do you want to set the "Element" property? You don't need. You only
need to set target feature, diagram link and tool.
Re: Problems with the GMFMap Model Editor [message #145236 is a reply to message #145193] Fri, 03 August 2007 13:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi again!

I don't WANT to set that feature, that was jsut an example, I get this error
whatever I do, and so I tested it also with some (for me) "useless"
properties.

The problem occurs whenever I change a property, it's not related to a
specific property.

So again my question: any ideas out there?

I'd be happy to get an answer... and perhaps a solution or information what
I'm doing wrong.

Greetings,
Markus

"giuseppe" <giuseppeloprete@gmail.com> schrieb im Newsbeitrag
news:bb8df7e6b862be8e96bee3c6d253d594$1@www.eclipse.org...
> why do you want to set the "Element" property? You don't need. You only
> need to set target feature, diagram link and tool.
>
Re: Problems with the GMFMap Model Editor [message #145407 is a reply to message #145236] Mon, 06 August 2007 06:34 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Problems with the GMFMap Model Editor [message #145458 is a reply to message #145407] Mon, 06 August 2007 07:48 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:GMF-generated plugin doesn't start...
Next Topic:How to contribute a new toolbar on the GMF editor?
Goto Forum:
  


Current Time: Thu Jul 24 07:32:22 EDT 2025

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

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

Back to the top