Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » [TENEO] Reference Based Links
[TENEO] Reference Based Links [message #671356] Tue, 17 May 2011 15:41 Go to next message
Joao S is currently offline Joao S
Messages: 51
Registered: January 2011
Hello Everyone,

I have some Reference Based Links im my GMF Diagram Editor.

When I create a new Diagram, I´m able to create and delete these links normally. However, When I open a saved Diagram I´m no longer able to delete these links.

Doing some debugs in the DeleteCommand class I found out that eObject.eResource() returns null.

Does anyone has any clue about why it cant find the resource?

I´m using Teneo to persit the diagrams in a database.

Re: [TENEO] Reference Based Links [message #671653 is a reply to message #671356] Wed, 18 May 2011 15:16 Go to previous message
Joao S is currently offline Joao S
Messages: 51
Registered: January 2011
Hello again,

Here´s some more information about this issue.

My reference based links are 1:1 relations.

I´m getting exceptions like:

"not-null property references a null or transient value" (maybe this is a hibernate specific issue).

Trying to move the links around also throws an exception:

Caused by: java.lang.NullPointerException
	at org.eclipse.gmf.runtime.diagram.ui.internal.commands.SetConnectionBendpointsCommand.doExecuteWithResult(
	at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(
	... 37 more

Any idea?

Previous Topic:Open Editor from DB
Next Topic:(no subject)
Goto Forum:

Current Time: Wed Oct 22 06:44:50 GMT 2014

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

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