Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2002-05-14 22:58:38 +0000
committerSteve Northover2002-05-14 22:58:38 +0000
commit6fd629ad4013e400aaadc08cad57e1057b403f67 (patch)
treef0bbb8805d4efe98462b50d012172bc141de0a6e
parent2f3d1b899b6be4cc4f7efa07613dd31f7bb8c580 (diff)
downloadeclipse.platform.swt-6fd629ad4013e400aaadc08cad57e1057b403f67.tar.gz
eclipse.platform.swt-6fd629ad4013e400aaadc08cad57e1057b403f67.tar.xz
eclipse.platform.swt-6fd629ad4013e400aaadc08cad57e1057b403f67.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java19
1 files changed, 4 insertions, 15 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java
index 703e72ad28..08b4d6df27 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/CoolItem.java
@@ -439,6 +439,9 @@ public Point getMinimumSize () {
*
* @param size a point representing the minimum width and height of the cool item, in pixels
*
+ * @exception IllegalArgumentException <ul>
+ * <li>ERROR_NULL_ARGUMENT - if the text is null</li>
+ * </ul>
* @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>
@@ -448,6 +451,7 @@ public Point getMinimumSize () {
*/
public void setMinimumSize (Point size) {
checkWidget ();
+ if (size == null) error (SWT.ERROR_NULL_ARGUMENT);
setMinimumSize (size.x, size.y);
}
@@ -484,21 +488,6 @@ public void setMinimumSize (int width, int height) {
OS.SendMessage (hwnd, OS.RB_SETBANDINFO, index, rbBand);
}
-/**
- * @deprecated use getMinimumSize
- */
-public int getMinimumWidth () {
- return getMinimumSize().x;
-}
-
-/**
- * @deprecated use setMinimumSize
- */
-public void setMinimumWidth (int width) {
- checkWidget ();
- setMinimumSize (width, getMinimumSize().y);
-}
-
boolean getWrap() {
int index = parent.indexOf (this);
int hwnd = parent.handle;

Back to the top