[Pydev-cvs] org.python.pydev.debug/src/org/python/pydev/debug/core PydevDebugPlugin.java,1.4,1.5
Brought to you by:
fabioz
From: Aleksandar T. <at...@us...> - 2004-05-07 02:03:19
|
Update of /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13484/src/org/python/pydev/debug/core Modified Files: PydevDebugPlugin.java Log Message: Breakpoints, first cut Index: PydevDebugPlugin.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/core/PydevDebugPlugin.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PydevDebugPlugin.java 5 May 2004 02:02:01 -0000 1.4 --- PydevDebugPlugin.java 7 May 2004 02:03:10 -0000 1.5 *************** *** 7,10 **** --- 7,11 ---- import org.eclipse.core.resources.*; import org.eclipse.jface.dialogs.ErrorDialog; + import org.python.pydev.ui.ImageCache; /** * The main plugin for Python Debugger. *************** *** 15,22 **** //The shared instance. private static PydevDebugPlugin plugin; ! public PydevDebugPlugin(IPluginDescriptor descriptor) { super(descriptor); plugin = this; } --- 16,26 ---- //The shared instance. private static PydevDebugPlugin plugin; ! ! public ImageCache imageCache; ! public PydevDebugPlugin(IPluginDescriptor descriptor) { super(descriptor); plugin = this; + imageCache = new ImageCache(getDescriptor().getInstallURL()); } *************** *** 33,36 **** --- 37,44 ---- } + public static ImageCache getImageCache() { + return plugin.imageCache; + } + protected void initializeDefaultPluginPreferences() { PydevDebugPrefs.initializeDefaultPreferences(getPluginPreferences()); *************** *** 59,63 **** Shell shell = window == null ? null : window.getShell(); if (shell != null) { ! IStatus status= new Status(IStatus.ERROR, getPluginID(), 0, "Error logged from Pydev Debug: ", t); ErrorDialog.openError(shell, "Its an error", message, status); } --- 67,71 ---- Shell shell = window == null ? null : window.getShell(); if (shell != null) { ! IStatus status= makeStatus(IStatus.ERROR, "Error logged from Pydev Debug: ", t); ErrorDialog.openError(shell, "Its an error", message, status); } |