Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to hard close a wizard without getting a "widget is disposed" exception
How to hard close a wizard without getting a "widget is disposed" exception [message #109623] Mon, 11 August 2003 10:40
Eclipse UserFriend
Originally posted by: xtophe.hotmail.com

Hi everyone,
 
I've fully read the article about creating Wizards in Eclipse but still
I can't figure out how to solve my problem. I hope someone will
have a hint that can help me getting rid of my issue.
 
Here's the deal :
I'm contributing to the extension points for wizards that create new
resources. I want some code to be executed right when the user
clicks on "Next" after selecting the item I'm contributing to the
"File - New" dialog box from Eclipse.
I used to have the code being executed in a custom Wizard class
that implements INewFileWizard, and then I would hard close the
dialog box in which it is contained through a getContainer().close()
call. But now I get a "Widget is disposed" exception that doesn't let
me do so anymore (I changed API versions).
 
So here's my questions :
1/ What is the proper way to hard close a wizard that corresponds to
an extension point in the "File - New" dialog box, without having an
user clicking on either "Finish" or "Cancel".
2/ Is there a better way to launch some code that would be associated
with a "File - New" custom item contribution? In other words, how can
I execute code when a user selects an item in the "File - New" dialog box
without having to implement a "dummy" wizard that only has for purpose
to execute this code (and therefore needs to be manually closed)?
 
Thanks in advance,
Best regards,
Chris.
Previous Topic:proposal for a new search
Next Topic:How to disable an action in an action set
Goto Forum:
  


Current Time: Sun Jun 01 15:44:21 EDT 2025

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

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

Back to the top