Comment & whitespace tweaks.
This commit is contained in:
@@ -132,6 +132,7 @@ public class GetdownApp
|
|||||||
_frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
|
_frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
|
||||||
return _frame.getContentPane();
|
return _frame.getContentPane();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void showContainer () {
|
protected void showContainer () {
|
||||||
if (_frame != null) {
|
if (_frame != null) {
|
||||||
@@ -140,6 +141,7 @@ public class GetdownApp
|
|||||||
_frame.setVisible(true);
|
_frame.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void disposeContainer () {
|
protected void disposeContainer () {
|
||||||
if (_frame != null) {
|
if (_frame != null) {
|
||||||
@@ -147,6 +149,7 @@ public class GetdownApp
|
|||||||
_frame = null;
|
_frame = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void showDocument (String url) {
|
protected void showDocument (String url) {
|
||||||
String[] cmdarray;
|
String[] cmdarray;
|
||||||
@@ -170,14 +173,14 @@ public class GetdownApp
|
|||||||
log.warning("Failed to open browser.", "cmdarray", cmdarray, e);
|
log.warning("Failed to open browser.", "cmdarray", cmdarray, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void exit (int exitCode) {
|
protected void exit (int exitCode) {
|
||||||
|
// if we're running the app in the same JVM, don't call System.exit, but do
|
||||||
|
// make double sure that the download window is closed.
|
||||||
if (invokeDirect()) {
|
if (invokeDirect()) {
|
||||||
// Makes sure the "download" window really does go away (stays if nothing to download)
|
|
||||||
disposeContainer();
|
disposeContainer();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// Calling exit on an directly invoked app would exit the app now! We call only for non-direct!
|
|
||||||
System.exit(exitCode);
|
System.exit(exitCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user