Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Neon - FromEditor pages are disposed 2x
Neon - FromEditor pages are disposed 2x [message #1765426] Fri, 09 June 2017 10:51 Go to next message
Matej Gagyi is currently offline Matej GagyiFriend
Messages: 5
Registered: June 2017
Junior Member
FormEditor.dispose() calls MultiPageEditor.dispose(), where all nestedEditors (pages) are disposed. FormEditor.dispose() then disposes each page again.

It causes problems with components, which are not made to be disposed twice. Like the DetialsPart. I had to return true from each page's isEditor() method to silence the exception. Do I miss something, or is this a bug in Form toolkit?
Re: Neon - FromEditor pages are disposed 2x [message #1766007 is a reply to message #1765426] Wed, 14 June 2017 18:14 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 694
Registered: January 2012
Senior Member

I'd suggest that components should be made to be robust to multiple calls to dispose(). Which components are having problems?

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:internal API use vs. code clone
Next Topic:FXCanvas immediate feedback during drag and drop
Goto Forum:
  


Current Time: Mon Dec 18 07:22:02 GMT 2017

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

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