[stringtemplate-interest] [ST4 Beta-2] Closing the STViz Inspect Window exits the application
ub at abego-software.de
Wed Jan 26 12:33:18 PST 2011
Making the DefaultCloseOperation for the STViewFrame a parameter of STViz is fine with me.
However I think it is not necessary.
DISPOSE_ON_CLOSE is at least as "safe" as EXIT_ON_CLOSE, in typical Swing applications even "safer". The documentation for DISPOSE_ON_CLOSE states:
> When the last displayable window within the Java virtual machine (VM) is disposed of, the VM may terminate. See <a href="../../java/awt/doc-files/AWTThreadIssues.html"> AWT Threading Issues</a> for more information.
So one would not inadvertantly leave the jvm running just by using the DISPOSE_ON_CLOSE option. On the opposite using the EXIT_ON_CLOSE may inadvertantly quit the jvm, even if there exist other displayable windows. This may lead to data loss.
But as I said initially, a parameter is fine with me.
On 26.01.2011, at 19:21, Collin Fagan wrote:
> I would ask that this be a parameter. Exit on close is the safest default. Otherwise one may inadvertantly leave a jvm running.
>> On Jan 26, 2011 10:19 AM, "Udo Borkowski" <ub at abego-software.de> wrote:
>> I invoke the DebugST.inspect method from a menu item of my (Swing) application when I need to debug templates. When I am done debugging I would like to close the STViz window and continue working with the application. However closing the STViz Inspect window exits the application.
>> In STViz the following statement
>> should be replace by
>> stringtemplate-interest mailing list
>> stringtemplate-interest at antlr.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the stringtemplate-interest