Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » refreshing view after delete(refreshing view after delete)
refreshing view after delete [message #1850346] Fri, 25 February 2022 16:57 Go to next message
Olivier BISSON is currently offline Olivier BISSONFriend
Messages: 6
Registered: February 2022
Junior Member
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 21:28 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Your question is without context. What database is involved here? Which save button? In a generated editor, changes should be done with a command.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Custom icon for project in model explorer
Next Topic:CDO - different protocol versions
Goto Forum:
  


Current Time: Thu Apr 25 13:38:50 GMT 2024

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

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

Back to the top