Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandra Buzila2015-08-17 12:03:13 +0000
committerSravan Kumar Lakkimsetti2015-09-22 10:01:30 +0000
commit14c42fa651f58062c3fa5f5a0facc201e359da1a (patch)
treefeec282646c8fd49cd9e01109de638577d72910a /examples
parenta52ce1661d394623c8e4d867796656d09a0c40c6 (diff)
downloadeclipse.platform.swt-14c42fa651f58062c3fa5f5a0facc201e359da1a.tar.gz
eclipse.platform.swt-14c42fa651f58062c3fa5f5a0facc201e359da1a.tar.xz
eclipse.platform.swt-14c42fa651f58062c3fa5f5a0facc201e359da1a.zip
Bug 461486 - Updated ShellTab of the ControlExample with the NO_MOVE
style hint, that disables the move of a shell. Change-Id: Id2f172fd1c8fbf1300435e949a80c5994da966fa Signed-off-by: Alexandra Buzila <abuzila@eclipsesource.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ShellTab.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ShellTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ShellTab.java
index 419201b1bd..bccee6a1fa 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ShellTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ShellTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2014 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
@@ -28,7 +28,7 @@ import org.eclipse.swt.widgets.Widget;
class ShellTab extends Tab {
/* Style widgets added to the "Style" groups, and "Other" group */
Button noParentButton, parentButton;
- Button noTrimButton, closeButton, titleButton, minButton, maxButton, borderButton, resizeButton, onTopButton, toolButton, sheetButton, shellTrimButton, dialogTrimButton;
+ Button noTrimButton, closeButton, titleButton, minButton, maxButton, borderButton, resizeButton, onTopButton, toolButton, sheetButton, shellTrimButton, dialogTrimButton, noMoveButton;
Button createButton, closeAllButton;
Button modelessButton, primaryModalButton, applicationModalButton, systemModalButton;
Button imageButton;
@@ -78,6 +78,7 @@ class ShellTab extends Tab {
/* Compute the shell style */
int style = SWT.NONE;
if (noTrimButton.getSelection()) style |= SWT.NO_TRIM;
+ if (noMoveButton.getSelection()) style |= SWT.NO_MOVE;
if (closeButton.getSelection()) style |= SWT.CLOSE;
if (titleButton.getSelection()) style |= SWT.TITLE;
if (minButton.getSelection()) style |= SWT.MIN;
@@ -185,6 +186,8 @@ class ShellTab extends Tab {
/* Create the decoration style buttons */
noTrimButton = new Button (styleGroup, SWT.CHECK);
noTrimButton.setText ("SWT.NO_TRIM");
+ noMoveButton = new Button (styleGroup, SWT.CHECK);
+ noMoveButton.setText ("SWT.NO_MOVE");
closeButton = new Button (styleGroup, SWT.CHECK);
closeButton.setText ("SWT.CLOSE");
titleButton = new Button (styleGroup, SWT.CHECK);
@@ -258,6 +261,7 @@ class ShellTab extends Tab {
}
};
noTrimButton.addSelectionListener (decorationButtonListener);
+ noMoveButton.addSelectionListener(decorationButtonListener);
closeButton.addSelectionListener (decorationButtonListener);
titleButton.addSelectionListener (decorationButtonListener);
minButton.addSelectionListener (decorationButtonListener);

Back to the top