summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2006-03-13 17:21:19 +0000
committerFelipe Heidrich <fheidric>2006-03-13 17:21:19 +0000
commit16238098f61f651ce5f68d8befa84829aecf0a2d (patch)
treedc35c5ef33d8693279720a2fca56e2c88a8d8008 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java
parent947131a65d39cd67f3722c39f1686961489573a4 (diff)
downloadeclipse.platform.swt-16238098f61f651ce5f68d8befa84829aecf0a2d.tar.gz
eclipse.platform.swt-16238098f61f651ce5f68d8befa84829aecf0a2d.tar.xz
eclipse.platform.swt-16238098f61f651ce5f68d8befa84829aecf0a2d.zip
Bug 131159 - ExpandItem needs getHeaderHeight()
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java
index 3cbc725058..1e9bb5aa70 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandItem.java
@@ -280,7 +280,18 @@ public boolean getExpanded () {
return expanded;
}
-int getHeaderHeight () {
+/**
+ * Returns the height of the receiver's header
+ *
+ * @return the height of the header
+ *
+ * @exception SWTException <ul>
+ * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
+ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
+ * </ul>
+ */
+public int getHeaderHeight () {
+ checkWidget ();
return Math.max (ExpandBar.HEADER_HEIGHT, imageHeight);
}