Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » MPart close by tab gotcha(application model still contains MPart)
MPart close by tab gotcha [message #1758901] Tue, 04 April 2017 11:44 Go to next message
Jay Norwood is currently offline Jay NorwoodFriend
Messages: 155
Registered: July 2009
Senior Member
I found if you close an MPart using the x in its partstack tab, that the MPart still exists in the application model.

My solution was to add a parService.hidePart in the closed class. Perhaps there is another solution?

@Inject
MPart myPart;
@Inject
EPartService partService;

@PreDestroy
public void dispose() {
partService.hidePart(myPart, true);
}


Re: MPart close by tab gotcha [message #1758903 is a reply to message #1758901] Tue, 04 April 2017 11:58 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 480
Registered: December 2010
Location: Germany
Senior Member
AFAIK you can add the Tag "removeOnHide" to the part so that it will be removed from the application model when closed.
Re: MPart close by tab gotcha [message #1759075 is a reply to message #1758903] Wed, 05 April 2017 22:12 Go to previous message
Jay Norwood is currently offline Jay NorwoodFriend
Messages: 155
Registered: July 2009
Senior Member
ok, thanks, I'll give that a try.
Previous Topic:EventBus cannot be resolved to a type
Next Topic:Install New Software
Goto Forum:
  


Current Time: Sat Jun 23 22:09:29 GMT 2018

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

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

Back to the top