Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/outline
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18059/src/org/python/pydev/outline
Modified Files:
PyOutlinePage.java
Log Message:
3.0 port
Index: PyOutlinePage.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/outline/PyOutlinePage.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PyOutlinePage.java 7 May 2004 02:07:20 -0000 1.8
--- PyOutlinePage.java 2 Jul 2004 02:50:39 -0000 1.9
***************
*** 7,11 ****
--- 7,14 ----
import java.net.MalformedURLException;
+ import java.net.URL;
+ import org.eclipse.core.runtime.Path;
+ import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
***************
*** 24,27 ****
--- 27,31 ----
import org.eclipse.ui.texteditor.IDocumentProvider;
import org.eclipse.ui.views.contentoutline.ContentOutlinePage;
+ import org.osgi.framework.Bundle;
import org.python.pydev.editor.PyEdit;
import org.python.pydev.editor.model.AbstractNode;
***************
*** 60,64 ****
super();
this.editorView = editorView;
! imageCache = new ImageCache(PydevPlugin.getDefault().getDescriptor().getInstallURL());
}
--- 64,70 ----
super();
this.editorView = editorView;
! Bundle bundle = PydevPlugin.getDefault().getBundle();
! URL bundleURL = Platform.find( bundle, new Path("/"));
! imageCache = new ImageCache(PydevPlugin.getDefault().getBundle().getEntry("/"));
}
|