Block user operations

This commit is contained in:
bancika
2012-08-23 15:44:40 +00:00
parent 585351bb11
commit ff43225f11
@@ -57,7 +57,7 @@ public class Presenter implements IPlugInPort {
private static final Logger LOG = Logger.getLogger(Presenter.class); private static final Logger LOG = Logger.getLogger(Presenter.class);
public static final VersionNumber CURRENT_VERSION = new VersionNumber(3, public static final VersionNumber CURRENT_VERSION = new VersionNumber(3,
12, 0); 13, 0);
public static final String DEFAULTS_KEY_PREFIX = "default."; public static final String DEFAULTS_KEY_PREFIX = "default.";
public static final List<IDIYComponent<?>> EMPTY_SELECTION = Collections public static final List<IDIYComponent<?>> EMPTY_SELECTION = Collections
@@ -274,9 +274,11 @@ public class Presenter implements IPlugInPort {
isBackup); isBackup);
} catch (Exception ex) { } catch (Exception ex) {
LOG.error("Could not save file", ex); LOG.error("Could not save file", ex);
view.showMessage("Could not save file " + fileName if (!isBackup) {
+ ". Check the log for details.", "Error", view.showMessage("Could not save file " + fileName
IView.ERROR_MESSAGE); + ". Check the log for details.", "Error",
IView.ERROR_MESSAGE);
}
} }
} }