Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Abbort close operation on MPart(How to prevent close, when something goes wrong)
Abbort close operation on MPart [message #925984] Fri, 28 September 2012 07:39 Go to next message
Oliver Manz is currently offline Oliver Manz
Messages: 1
Registered: September 2012
Junior Member
This is probably a simple answer...or so I hope!

I have a closeable MPart with a @Persist-Method in the contributing class. When the user hits the x on the Part and confirms the part should be saved the persit-method is called. Now i want to prevent the part from closing if something goes wrong during the save-procedure (or - as an alternative - something in the @PreDestroy-method).

Thank you very much,
Oliver

Re: Abbort close operation on MPart [message #926016 is a reply to message #925984] Fri, 28 September 2012 08:22 Go to previous message
Christoph Keimel is currently offline Christoph Keimel
Messages: 353
Registered: December 2010
Location: Germany
Senior Member
Not a direct answer, but related to your case: http://www.eclipse.org/forums/index.php/t/383895/
Previous Topic:MMenuElement.setVisible not working?
Next Topic:Dynamic menu contributions
Goto Forum:
  


Current Time: Fri Sep 19 12:03:08 GMT 2014

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

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