Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Getting save event(How to get save event)
Getting save event [message #1796666] Wed, 17 October 2018 07:17 Go to next message
Sharmila D is currently offline Sharmila DFriend
Messages: 81
Registered: June 2018
Member
Hii

Can anyone help me how to get save event

In my problem whenever user clicks on save or save all i need to create and delete an element under rootobject .

How to capture save event.The event needs to be called at the time of saving only not at the time of project creation and deletion.

Im using the below event
public void resourceChanged(IResourceChangeEvent event) {


//int postChangeNum = IResourceChangeEvent.POST_CHANGE;
if( event.getType () == IResourceChangeEvent.POST_CHANGE )

But This event is calling at the time of project creation and at the time of deletion also. I need only at save
Re: Getting save event [message #1796682 is a reply to message #1796666] Wed, 17 October 2018 14:19 Go to previous message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member
Hi,

I don't seem to see the link between Sirius and your problem. IResourceChangeEvent is related to workspace resources.
What kind of object are you creating or deleting?
What are you saving?

Regards,



Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius

[Updated on: Wed, 17 October 2018 14:29]

Report message to a moderator

Previous Topic:[ELK] Labels of edges are not correctly placed and overlapped in Sirius
Next Topic:[Sirius-ELK] Wrong layout result with show/hide ports operation
Goto Forum:
  


Current Time: Wed Jan 20 18:38:30 GMT 2021

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

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

Back to the top