summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2006-02-28 23:30:09 +0000
committerSteve Northover <steve>2006-02-28 23:30:09 +0000
commitb742c229a4e9d67ab0b2f2cfea037ec5324b11d2 (patch)
tree44186197e9628e333512b380de7063c544c4a583 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
parent9a938e7c0ee004be1af0d3f4d48489427e1ed2b7 (diff)
downloadeclipse.platform.swt-b742c229a4e9d67ab0b2f2cfea037ec5324b11d2.tar.gz
eclipse.platform.swt-b742c229a4e9d67ab0b2f2cfea037ec5324b11d2.tar.xz
eclipse.platform.swt-b742c229a4e9d67ab0b2f2cfea037ec5324b11d2.zip
don't allow subclasses
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
index 29e6cb5488..af90869e01 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
@@ -111,6 +111,10 @@ int callWindowProc (int hwnd, int msg, int wParam, int lParam) {
return OS.DefWindowProc (hwnd, msg, wParam, lParam);
}
+protected void checkSubclass () {
+ if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS);
+}
+
static int checkStyle (int style) {
style &= ~SWT.H_SCROLL;
return style | SWT.NO_BACKGROUND;