From 161af59764d0e4df632ace57c6de9d02ae7d3e5d Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 27 Jan 2014 17:59:46 +0000 Subject: Make application name a constant git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@479 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index a243a717..e847fd0c 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java @@ -168,7 +168,6 @@ public class MainWindow { * Reload the localization */ public void reloadLocalization() { - getShell().setText(Messages.getString("main.title")); //$NON-NLS-1$ this.btn_config.setText(Messages.getString("main.configuration")); //$NON-NLS-1$ this.btn_config.setToolTipText(Messages.getString("main.configuration")); //$NON-NLS-1$ this.btn_open.setText(Messages.getString("common.open")); //$NON-NLS-1$ @@ -229,7 +228,8 @@ public class MainWindow { catch (SWTError e) { log.debug("Cannot get display", e); //$NON-NLS-1$ } - getShell().setText(Messages.getString("main.title")); //$NON-NLS-1$ + Display.setAppVersion(this.getClass().getPackage().getImplementationVersion()); + getShell().setText(Constants.APP_NAME); getShell().addShellListener(new ShellAdapter() { @Override -- cgit v1.2.3