Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Deleting objects
Deleting objects [message #616041] Tue, 01 April 2008 07:15
Manfred Hahn is currently offline Manfred HahnFriend
Messages: 64
Registered: July 2009
Member
Hi Martin,

when I delete an object in my gmf editor and later save the objects of the
model the following exception is thrown:
org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
de.edvchl.clic.workflow.impl.AktivitaetImpl@5043d6{#ff80808119050fff01190510ede20003}
The required feature 'prozess' of
'de.edvchl.clic.workflow.impl.AktivitaetImpl@5043d6{#ff80808119050fff01190510ede20003}'
must be set
at
org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:409)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:347)
at
de.edvchl.clic.workflow.diagram.part.WorkflowDocumentProvide r$2.doExecute(WorkflowDocumentProvider.java:439)
at
org.eclipse.emf.transaction.RecordingCommand.execute(Recordi ngCommand.java:130)
at
org.eclipse.emf.common.command.BasicCommandStack.execute(Bas icCommandStack.java:92)

The exception is ignored and the database delete is done later when I
close the application.
The exception diagnosis is right; the process is the container for the
activitaet, but I deleted the activitaet, so activitaet should not be
considered to be stored. At the moment of the delete there is no session
available to do a session.delete() on the object.
Do you have any idea how to handle this situation right?

gr. Manfred
Previous Topic:Source code for org.eclipse.emf.search.ocl.ui package
Next Topic:Deleting objects
Goto Forum:
  


Current Time: Thu Apr 25 13:44:37 GMT 2024

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

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

Back to the top