diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:36:53 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-10-31 16:36:53 +0000 |
commit | 772a0233a567087ab5bd6c0663625cb36c0dbf53 (patch) | |
tree | f64958150ea1de569334c54d690e6b81e365ed62 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java | |
parent | 9aea1ad9947f03df8cf0652b3310366a5fd57179 (diff) | |
download | pdf-over-772a0233a567087ab5bd6c0663625cb36c0dbf53.tar.gz pdf-over-772a0233a567087ab5bd6c0663625cb36c0dbf53.tar.bz2 pdf-over-772a0233a567087ab5bd6c0663625cb36c0dbf53.zip |
Changed ErrorDialog to use SWT Messagebox for OS specific error messages
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12738 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java index c7536d17..b7b0aa1d 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java @@ -338,9 +338,8 @@ public class ConfigurationComposite extends StateComposite { log.error("Settings validation failed!", e); //$NON-NLS-1$ ErrorDialog dialog = new ErrorDialog( getShell(), - SWT.NONE, - Messages.getString("error.InvalidSettings"), //$NON-NLS-1$ - e, false); + e.getMessage(), //$NON-NLS-1$ + false); dialog.open(); return false; } @@ -355,8 +354,8 @@ public class ConfigurationComposite extends StateComposite { status = true; } catch (IOException e) { log.error("Failed to save configuration to file!", e); //$NON-NLS-1$ - ErrorDialog dialog = new ErrorDialog(getShell(), SWT.NONE, - Messages.getString("error.FailedToSaveSettings"), e, true); //$NON-NLS-1$ + ErrorDialog dialog = new ErrorDialog(getShell(), + Messages.getString("error.FailedToSaveSettings"), true); //$NON-NLS-1$ redo = dialog.open(); //return false; |