diff options
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracCorePlugin.java')
-rw-r--r-- | org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracCorePlugin.java | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracCorePlugin.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracCorePlugin.java index db3315cab..9f67399e9 100644 --- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracCorePlugin.java +++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracCorePlugin.java @@ -71,7 +71,7 @@ public class TracCorePlugin extends Plugin { * Returns the path to the file caching repository attributes. */ protected IPath getRepostioryAttributeCachePath() { - IPath stateLocation = Platform.getStateLocation(TracCorePlugin.getDefault().getBundle()); + IPath stateLocation = Platform.getStateLocation(getBundle()); IPath cacheFile = stateLocation.append("repositoryConfigurations"); return cacheFile; } @@ -99,28 +99,4 @@ public class TracCorePlugin extends Plugin { } } - /** - * Convenience method for logging statuses to the plug-in log - * - * @param status - * the status to log - */ - public static void log(IStatus status) { - getDefault().getLog().log(status); - } - - /** - * Convenience method for logging exceptions to the plug-in log - * - * @param e - * the exception to log - */ - public static void log(Throwable e) { - String message = e.getMessage(); - if (e.getMessage() == null) { - message = e.getClass().toString(); - } - log(new Status(Status.ERROR, TracCorePlugin.PLUGIN_ID, 0, message, e)); - } - } |