diff options
author | Boris Shingarov <bshingar> | 2002-01-02 18:58:36 +0000 |
---|---|---|
committer | Boris Shingarov <bshingar> | 2002-01-02 18:58:36 +0000 |
commit | bb1bd4ba21003c40cbce37f8f5fa1bad4b03f29e (patch) | |
tree | a9a40d2bb72840cd189310b7c9e1188afa97da27 /bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/graphics/Image.java | |
parent | 6bfb9c2979b81ce93af14b5fc2e4cdbd87a22d04 (diff) | |
download | eclipse.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.java | 12 |
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 + "}"; +} + } |