diff options
author | Omair Majid <[email protected]> | 2011-03-30 11:47:41 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2011-03-30 11:47:41 -0400 |
commit | e10781541da8ef982080b5b0c2ed3e8ced6f47d4 (patch) | |
tree | d5fabfafa62176b343749e5460d7a726be5ab58b /netx/net/sourceforge/jnlp/resources | |
parent | 8f8099cbfacfcd8066e4b4622fd208cec5e82792 (diff) |
Add a new LaunchHandler to show error messages when starting applications
This LaunchHandler is only used when not running in headless mode. This
launchHandler is also responsible for showing the splash screen.
2011-03-30 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/LaunchHandler.java
(launchInitialized, launchStarting): New methods.
* netx/net/sourceforge/jnlp/DefaultLaunchHandler.java
(launchInitialized, launchStarting): New methods. No-op
implementation.
(printMessage): Make it static.
* netx/net/sourceforge/jnlp/GuiLaunchHandler.java: New file.
(launchCompleted, launchError, launchStarting, launchInitialized),
(launchWarning, validationError): New methods.
* netx/net/sourceforge/jnlp/Launcher.java (launchApplication):
Invoke handler.launchInitialized and handler.launchStarting instead
of showing a splash screen directly.
* netx/net/sourceforge/jnlp/resources/Messages.properties: Add
ButShowDetails, ButHideDetails and Error.
* netx/net/sourceforge/jnlp/runtime/Boot.java (run): Do not exit on
error.
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java
(initialize): Set handler to GuiLaunchHandler if not running in
headless mode.
* netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java: New
file.
(exceptionToString, show): New methods.
Diffstat (limited to 'netx/net/sourceforge/jnlp/resources')
-rw-r--r-- | netx/net/sourceforge/jnlp/resources/Messages.properties | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/resources/Messages.properties b/netx/net/sourceforge/jnlp/resources/Messages.properties index 1f95723..64325fb 100644 --- a/netx/net/sourceforge/jnlp/resources/Messages.properties +++ b/netx/net/sourceforge/jnlp/resources/Messages.properties @@ -14,9 +14,13 @@ ButProceed=Proceed ButRun=Run
ButApply=Apply
ButDone=Done
+ButShowDetails=Show Details
+ButHideDetails=Hide Details
+
AFileOnTheMachine=a file on the machine
AlwaysAllowAction=Always allow this action
Usage=Usage:
+Error=Error
Continue=Do you want to continue?
Field=Field
|