Skip to main content



      Home
Home » Modeling » EMF » refreshing view after delete(refreshing view after delete)
refreshing view after delete [message #1850346] Fri, 25 February 2022 11:57 Go to next message
Eclipse UserFriend
Hello guys,

I have created a function that removes an object from a list because i need a warning and a validation for cancellation.
Object is removed from the list.

However the context seem to be not notified and the "save" button does not appear. The modifications are therefore not pushed into the database.

object cu-> #[
   actionChange("Delete", cu, [
         objectToDelete |
	Factory.eINSTANCE.delete(objectToDelete , objectToDelete.parentRef)	
])
]

and the method :
	public void delete(Object objectToDelete, ObjectToDeleteParent objectToDelete.parentRef) { 
.....
//launcher
		ObjectToDeleteParent.getObjects().remove(objectToDelete);

}



How notify or update the context to get the save button ?

Any idea ?
Sincerely
Re: refreshing view after delete [message #1850351 is a reply to message #1850346] Fri, 25 February 2022 16:28 Go to previous message
Eclipse UserFriend
Your question is without context. What database is involved here? Which save button? In a generated editor, changes should be done with a command.
Previous Topic:Custom icon for project in model explorer
Next Topic:CDO - different protocol versions
Goto Forum:
  


Current Time: Wed Apr 30 12:16:57 EDT 2025

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

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

Back to the top