diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2012-11-07 11:16:01 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2012-11-07 11:16:14 +0100 |
commit | 2510d4deffa1634593600076e7d5446d2982c9bb (patch) | |
tree | 7f8eac79d8f6394f162c2ae72349b131bc838807 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java | |
parent | f37e3df93655738dbe5e3ea77b764640f1bffbf6 (diff) | |
download | pdf-over-2510d4deffa1634593600076e7d5446d2982c9bb.tar.gz pdf-over-2510d4deffa1634593600076e7d5446d2982c9bb.tar.bz2 pdf-over-2510d4deffa1634593600076e7d5446d2982c9bb.zip |
+ implemented localization configuration and on the fly resource
reloading
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java index 17252457..90ecc0d7 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java @@ -291,7 +291,8 @@ public class DataSourceSelectComposite extends StateComposite { FontData[] fD2 = this.lbl_drag2.getFont().getFontData(); fD2[0].setHeight(Constants.TEXT_SIZE_NORMAL); this.lbl_drag2.setFont(new Font(Display.getCurrent(), fD2[0])); - this.lbl_drag2.setText(Messages.getString("dataSourceSelection.DropLabel2")); //$NON-NLS-1$ + this.lbl_drag2.setText(Messages + .getString("dataSourceSelection.DropLabel2")); //$NON-NLS-1$ this.lbl_drag2.setAlignment(SWT.CENTER); this.btn_open = new Button(this.drop_area, SWT.NATIVE | SWT.RESIZE); @@ -385,4 +386,14 @@ public class DataSourceSelectComposite extends StateComposite { this.layout(true, true); this.drop_area.layout(true, true); } + + /* (non-Javadoc) + * @see at.asit.pdfover.gui.composites.StateComposite#reloadResources() + */ + @Override + public void reloadResources() { + this.lbl_drag.setText(Messages.getString("dataSourceSelection.DropLabel")); //$NON-NLS-1$ + this.btn_open.setText(Messages.getString("dataSourceSelection.browse")); //$NON-NLS-1$ + this.lbl_drag2.setText(Messages.getString("dataSourceSelection.DropLabel2")); //$NON-NLS-1$ + } } |