Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2010-03-03 15:22:39 +0000
committerCarolyn MacLeod2010-03-03 15:22:39 +0000
commita311906862bc003880c85bf67681891eb4b9f733 (patch)
tree5cb450a08da6e4f640109993f798946d31d2470f /bundles/org.eclipse.swt/Eclipse SWT/win32/org
parent1a3ce08b542f5b0b44994c612ed28c6067e6d7a5 (diff)
downloadeclipse.platform.swt-a311906862bc003880c85bf67681891eb4b9f733.tar.gz
eclipse.platform.swt-a311906862bc003880c85bf67681891eb4b9f733.tar.xz
eclipse.platform.swt-a311906862bc003880c85bf67681891eb4b9f733.zip
adding getAppVersion() API
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
index d58406135d..ec2d17ba07 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java
@@ -110,6 +110,7 @@ public class Display extends Device {
public MSG msg = new MSG ();
static String APP_NAME = "SWT"; //$NON-NLS-1$
+ static String APP_VERSION = ""; //$NON-NLS-1$
/* Windows and Events */
Event [] eventQueue;
@@ -4387,6 +4388,19 @@ public static String getAppName () {
}
/**
+ * Returns the application version.
+ *
+ * @return the application version
+ *
+ * @see #setAppVersion(String)
+ *
+ * @since 3.6
+ */
+public static String getAppVersion () {
+ return APP_VERSION;
+}
+
+/**
* On platforms which support it, sets the application name
* to be the argument. On Motif, for example, this can be used
* to set the name used for resource lookup. Specifying
@@ -4398,6 +4412,16 @@ public static void setAppName (String name) {
APP_NAME = name;
}
+/**
+ * On platforms which support it, sets the application version
+ * to be the argument. Specifying <code>null</code> clears it.
+ *
+ * @param version the new app version or <code>null</code>
+ */
+public static void setAppVersion (String version) {
+ APP_VERSION = version;
+}
+
void setModalDialog (Dialog modalDailog) {
this.modalDialog = modalDailog;
Shell [] shells = getShells ();

Back to the top