[Pydev-cvs] org.python.pydev.refactoring/src/org/python/pydev/refactoring PepticLog.java, 1.3, 1.4
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-09-27 20:01:34
|
Update of /cvsroot/pydev/org.python.pydev.refactoring/src/org/python/pydev/refactoring In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21605/src/org/python/pydev/refactoring Modified Files: PepticLog.java PepticPlugin.java Log Message: Synching to latest changes: Pydev <ul> <li><strong>Editor</strong>: Cursor settings no longer overridden</li> <li><strong>Code-completion</strong>: If __all__ is defined with runtime elements (and not only in a single assign statement), it's ignored for code-completion purposes</li> <li><strong>Debugger</strong>: Pythonpath the same in debug and regular modes (sys.path[0] is the same directory as the file run)</li> <li><strong>Debugger</strong>: Persist choices done in the debugger when files from the debugger are not found</li> <li><strong>Interpreter config</strong>: "email" automatically added to the "forced builtins"</li> <li><strong>Parser</strong>: Correctly recognizing absolute import with 3 or more levels</li> <li><strong>Syntax check</strong>: Option to do only on active editor</li> </ul> Also: tabs changed for spaces Index: PepticPlugin.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.refactoring/src/org/python/pydev/refactoring/PepticPlugin.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PepticPlugin.java 20 Oct 2007 19:31:01 -0000 1.2 --- PepticPlugin.java 27 Sep 2008 20:00:50 -0000 1.3 *************** *** 16,59 **** public class PepticPlugin extends AbstractUIPlugin { ! // The plug-in ID ! public static final String PLUGIN_ID = "org.python.pydev.refactoring"; ! // The shared instance ! private static PepticPlugin plugin = null; ! /** ! * The constructor ! */ ! public PepticPlugin() { ! plugin = this; ! } ! /* ! * (non-Javadoc) ! * ! * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) ! */ ! public void start(BundleContext context) throws Exception { ! super.start(context); ! } ! /* ! * (non-Javadoc) ! * ! * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) ! */ ! public void stop(BundleContext context) throws Exception { ! plugin = null; ! super.stop(context); ! } ! /** ! * Returns the shared instance ! * ! * @return the shared instance ! */ ! public static PepticPlugin getDefault() { ! return plugin; ! } } --- 16,59 ---- public class PepticPlugin extends AbstractUIPlugin { ! // The plug-in ID ! public static final String PLUGIN_ID = "org.python.pydev.refactoring"; ! // The shared instance ! private static PepticPlugin plugin = null; ! /** ! * The constructor ! */ ! public PepticPlugin() { ! plugin = this; ! } ! /* ! * (non-Javadoc) ! * ! * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) ! */ ! public void start(BundleContext context) throws Exception { ! super.start(context); ! } ! /* ! * (non-Javadoc) ! * ! * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) ! */ ! public void stop(BundleContext context) throws Exception { ! plugin = null; ! super.stop(context); ! } ! /** ! * Returns the shared instance ! * ! * @return the shared instance ! */ ! public static PepticPlugin getDefault() { ! return plugin; ! } } Index: PepticLog.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.refactoring/src/org/python/pydev/refactoring/PepticLog.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PepticLog.java 20 Oct 2007 19:31:01 -0000 1.3 --- PepticLog.java 27 Sep 2008 20:00:50 -0000 1.4 *************** *** 12,37 **** public class PepticLog { ! public static void log(int severity, int code, String message, Throwable exception) { ! log(createStatus(severity, code, message, exception)); ! } ! public static IStatus createStatus(int severity, int code, String message, Throwable exception) { ! return new Status(severity, PepticPlugin.PLUGIN_ID, code, message, exception); ! } ! public static void log(IStatus status) { ! PepticPlugin.getDefault().getLog().log(status); ! } ! public static void logInfo(String message) { ! log(IStatus.INFO, IStatus.OK, message, null); ! } ! public static void logError(Throwable exception) { ! logError("Unexpected Exception", exception); ! } ! public static void logError(String message, Throwable exception) { ! log(IStatus.ERROR, IStatus.OK, message, exception); ! } } --- 12,37 ---- public class PepticLog { ! public static void log(int severity, int code, String message, Throwable exception) { ! log(createStatus(severity, code, message, exception)); ! } ! public static IStatus createStatus(int severity, int code, String message, Throwable exception) { ! return new Status(severity, PepticPlugin.PLUGIN_ID, code, message, exception); ! } ! public static void log(IStatus status) { ! PepticPlugin.getDefault().getLog().log(status); ! } ! public static void logInfo(String message) { ! log(IStatus.INFO, IStatus.OK, message, null); ! } ! public static void logError(Throwable exception) { ! logError("Unexpected Exception", exception); ! } ! public static void logError(String message, Throwable exception) { ! log(IStatus.ERROR, IStatus.OK, message, exception); ! } } |