summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java
diff options
context:
space:
mode:
authorBoris Shingarov <bshingar>2002-01-02 18:58:36 +0000
committerBoris Shingarov <bshingar>2002-01-02 18:58:36 +0000
commitbb1bd4ba21003c40cbce37f8f5fa1bad4b03f29e (patch)
treea9a40d2bb72840cd189310b7c9e1188afa97da27 /bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java
parent6bfb9c2979b81ce93af14b5fc2e4cdbd87a22d04 (diff)
downloadeclipse.platform.swt-bb1bd4ba21003c40cbce37f8f5fa1bad4b03f29e.tar.gz
eclipse.platform.swt-bb1bd4ba21003c40cbce37f8f5fa1bad4b03f29e.tar.xz
eclipse.platform.swt-bb1bd4ba21003c40cbce37f8f5fa1bad4b03f29e.zip
toString()
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java
index c8d5f3fdd7..f733122bf4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java
@@ -635,4 +635,16 @@ void init(Device display, ImageData image) {
public boolean isDisposed() {
return pixmap == 0;
}
+
+/**
+ * Returns a string containing a concise, human-readable
+ * description of the receiver.
+ *
+ * @return a string representation of the receiver
+ */
+public String toString () {
+ if (isDisposed()) return "Image {*DISPOSED*}";
+ return "Image {" + pixmap + "}";
+}
+
}