woproject/projects/wolips/plugins/org.objectstyle.wolips.jdt/java/org/objectstyle/wolips/jdt PluginImages.java,1.2,1.3
[email protected] Sun, 26 Feb 2006 00:44:01 -0800 (PST)
| Newsgroups | gmane.comp.web.webobjects.woproject.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.jdt/java/org/objectstyle/wolips/jdt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26661/java/org/objectstyle/wolips/jdt
Modified Files:
PluginImages.java
Log Message:
Replaced deprecated code.
Index: PluginImages.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.jdt/java/org/objectstyle/wolips/jdt/PluginImages.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- PluginImages.java 11 Dec 2004 10:26:39 -0000 1.2
+++ PluginImages.java 26 Feb 2006 08:43:37 -0000 1.3
@@ -2,7 +2,7 @@
*
* The ObjectStyle Group Software License, Version 1.0
*
- * Copyright (c) 2002 The ObjectStyle Group
+ * Copyright (c) 2002 - 2006 The ObjectStyle Group
* and individual authors of the software. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -58,6 +58,7 @@
import java.net.URL;
+import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
@@ -111,7 +112,7 @@
* @return
*/
private static ImageDescriptor createImageDescriptor(String path) {
- URL url = JdtPlugin.getDefault().find(new Path(path));
+ URL url = FileLocator.find(JdtPlugin.getDefault().getBundle(), new Path(path), null);
if (url != null)
return ImageDescriptor.createFromURL(url);
return ImageDescriptor.getMissingImageDescriptor();
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642