Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugen Neufeld2015-04-15 09:58:57 -0400
committerLakshmi Shanmugam2015-09-22 05:21:45 -0400
commita52ce1661d394623c8e4d867796656d09a0c40c6 (patch)
tree7f43d75bb2dd77b82dff5e21f5a95818948941bb /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa
parentc7cf9a1e7e4caa7996cb2fcb9f127b236f16695c (diff)
downloadeclipse.platform.swt-a52ce1661d394623c8e4d867796656d09a0c40c6.tar.gz
eclipse.platform.swt-a52ce1661d394623c8e4d867796656d09a0c40c6.tar.xz
eclipse.platform.swt-a52ce1661d394623c8e4d867796656d09a0c40c6.zip
Bug 461486 - Disable the move of a shell
Added NO_MOVE flag to the SWT class, that can disable the move of a Shell. Usage example: Shell shell = new Shell(parent, SWT.SHELL_TRIM|SWT.NO_MOVE); Contribution contains implementations for gtk, Win32 and Cocoa. Change-Id: Ia5cc50009b81cf08e631a695673f6a31779b6222 Signed-off-by: Alexandra Buzila <abuzila@eclipsesource.com> Signed-off-by: Eugen Neufeld <eneufeld@eclipsesource.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSWindow.java6
2 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
index f193fb42ae..b49e3f442b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
@@ -4439,6 +4439,10 @@
<arg swt_gen="true"></arg>
<retval swt_gen="true"></retval>
</method>
+ <method selector="setMovable:" swt_gen="true">
+ <arg swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </method>
<method selector="setOpaque:" swt_gen="true">
<arg swt_gen="true"></arg>
<retval swt_gen="true"></retval>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSWindow.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSWindow.java
index e6f4183aca..75cfc67fc3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSWindow.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSWindow.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -316,6 +316,10 @@ public void setMinSize(NSSize size) {
OS.objc_msgSend(this.id, OS.sel_setMinSize_, size);
}
+public void setMovable(boolean flag) {
+ OS.objc_msgSend(this.id, OS.sel_setMovable_, flag);
+}
+
public void setOpaque(boolean isOpaque) {
OS.objc_msgSend(this.id, OS.sel_setOpaque_, isOpaque);
}

Back to the top