Mercurial > projects > dwt-addons
diff dwtx/jface/resource/FileImageDescriptor.d @ 72:5df4896124c7
JFace and its examples do compile
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 17:56:17 +0200 |
parents | 4878bef4a38e |
children | 6787ae179808 |
line wrap: on
line diff
--- a/dwtx/jface/resource/FileImageDescriptor.d Thu May 22 04:03:58 2008 +0200 +++ b/dwtx/jface/resource/FileImageDescriptor.d Thu May 22 17:56:17 2008 +0200 @@ -167,7 +167,7 @@ * object which is suitable only for debugging. */ public override String toString() { - return Format("FileImageDescriptor(location={}, name={})", location, name );//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ + return Format("FileImageDescriptor(name={})", name );//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$ } /* @@ -212,13 +212,13 @@ */ private String getFilePath() { - if (location is null) - return (new Path(name)).toOSString(); - - URL resource = location.getResource(name); - - if (resource is null) - return null; +// if (location is null) +// return (new Path(name)).toOSString(); +// +// URL resource = location.getResource(name); +// +// if (resource is null) +// return null; // try { // if (JFaceActivator.getBundleContext() is null) {// Stand-alone case //