diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:34:30 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:34:30 +0000 |
commit | d65427e43c30e17cd0368115f7aaeb2d690e1b6e (patch) | |
tree | 6f5e0fed946a40f62160377b72f31157b8767ce1 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls | |
parent | 9a21827dbd04c11092cda5cc0cc139d2db8022b8 (diff) | |
download | mocca-d65427e43c30e17cd0368115f7aaeb2d690e1b6e.tar.gz mocca-d65427e43c30e17cd0368115f7aaeb2d690e1b6e.tar.bz2 mocca-d65427e43c30e17cd0368115f7aaeb2d690e1b6e.zip |
Move resource strings to Constants
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@389 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorMarker.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorMarker.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorMarker.java index 546b0088..9e2579a3 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorMarker.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorMarker.java @@ -28,6 +28,8 @@ import org.eclipse.swt.widgets.Label; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import at.asit.pdfover.gui.Constants; + /** * */ @@ -40,8 +42,6 @@ public class ErrorMarker extends Label { private static final Logger log = LoggerFactory .getLogger(ErrorMarker.class); - private static final String IMG_PATH = "/img/error.png"; //$NON-NLS-1$ - Image errorImg; /** @@ -54,7 +54,7 @@ public class ErrorMarker extends Label { String message) { super(parent, style); - InputStream stream = this.getClass().getResourceAsStream(IMG_PATH); + InputStream stream = this.getClass().getResourceAsStream(Constants.RES_IMG_ERROR); this.errorImg = new Image(getDisplay(), new ImageData(stream)); |