[Pydev-cvs] org.python.pydev.core/src/org/python/pydev/core/bundle BundleUtils.java, 1.1, 1.2
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-04-12 18:38:32
|
Update of /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/bundle In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28007/src/org/python/pydev/core/bundle Modified Files: BundleUtils.java Log Message: Not using deprecated methods anymore. Index: BundleUtils.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/bundle/BundleUtils.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BundleUtils.java 14 Mar 2006 19:33:34 -0000 1.1 --- BundleUtils.java 12 Apr 2008 18:38:11 -0000 1.2 *************** *** 4,9 **** import java.net.URL; import org.eclipse.core.runtime.IPath; - import org.eclipse.core.runtime.Platform; import org.osgi.framework.Bundle; --- 4,9 ---- import java.net.URL; + import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IPath; import org.osgi.framework.Bundle; *************** *** 12,18 **** public static File getRelative(IPath relative, Bundle bundle) { try { ! URL bundleURL = Platform.find(bundle, relative); URL fileURL; ! fileURL = Platform.asLocalURL(bundleURL); File f = new File(fileURL.getPath()); --- 12,18 ---- public static File getRelative(IPath relative, Bundle bundle) { try { ! URL bundleURL = FileLocator.find(bundle, relative, null); URL fileURL; ! fileURL = FileLocator.toFileURL(bundleURL); File f = new File(fileURL.getPath()); |