[Schmitzm-commits] r1197 - trunk/src/schmitzm/swing
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Nov 2 15:57:22 CET 2010
Author: alfonx
Date: 2010-11-02 15:57:21 +0100 (Tue, 02 Nov 2010)
New Revision: 1197
Modified:
trunk/src/schmitzm/swing/SwingUtil.java
Log:
Editing NODTA label in AS standalone works again
Modified: trunk/src/schmitzm/swing/SwingUtil.java
===================================================================
--- trunk/src/schmitzm/swing/SwingUtil.java 2010-11-02 13:24:17 UTC (rev 1196)
+++ trunk/src/schmitzm/swing/SwingUtil.java 2010-11-02 14:57:21 UTC (rev 1197)
@@ -1491,21 +1491,22 @@
if (app instanceof FileAppender) {
FileAppender fa = (FileAppender) app;
final File logFile = new File(fa.getFile());
- JMenuItem jMenuItem = new JMenuItem(new AbstractAction(R(
- "Menu.Logging.OpenFile",
- logFile.getAbsolutePath())) {
+ JMenuItem jMenuItem = new JMenuItem(
+ new AbstractAction(R("Menu.Logging.OpenFile",
+ logFile.getAbsolutePath())) {
- @Override
- public void actionPerformed(ActionEvent e) {
- try {
- Desktop.getDesktop().browse(
- DataUtilities.fileToURL(logFile)
- .toURI());
- } catch (Exception e1) {
- ExceptionDialog.show(e1);
- }
- }
- });
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ try {
+ Desktop.getDesktop().browse(
+ DataUtilities
+ .fileToURL(logFile)
+ .toURI());
+ } catch (Exception e1) {
+ ExceptionDialog.show(e1);
+ }
+ }
+ });
logMenu.add(jMenuItem);
}
}
@@ -1534,4 +1535,5 @@
return logMenu;
}
+
}
More information about the Schmitzm-commits
mailing list