Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/MylarBugsPlugin.java')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/MylarBugsPlugin.java111
1 files changed, 0 insertions, 111 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/MylarBugsPlugin.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/MylarBugsPlugin.java
deleted file mode 100644
index 8c9d81937..000000000
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/MylarBugsPlugin.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 - 2006 University Of British Columbia and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * University Of British Columbia - initial API and implementation
- *******************************************************************************/
-package org.eclipse.mylar.internal.bugs;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.mylar.internal.bugs.search.BugzillaReferencesProvider;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The main plugin class to be used in the desktop.
- *
- * @author Mik Kersten
- * @author Shawn Minto
- */
-public class MylarBugsPlugin extends AbstractUIPlugin {
-
- public static ImageDescriptor EDGE_REF_BUGZILLA = getImageDescriptor("icons/elcl16/edge-ref-bug.gif");
-
- // private BugzillaEditingMonitor bugzillaEditingMonitor;
-
- private static BugzillaSearchManager bridge = null;
-
- private static BugzillaReferencesProvider referencesProvider = new BugzillaReferencesProvider();
-
- private static MylarBugsPlugin plugin;
-
- private BugzillaReportCache cache;
-
- public MylarBugsPlugin() {
- plugin = this;
- }
-
- /**
- * This method is called upon plug-in activation
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- cache = new BugzillaReportCache();
- cache.readCacheFile();
-
- IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- if (window != null) {
- // create a new bridge and initialize it
- bridge = new BugzillaSearchManager();
- }
- final IWorkbench workbench = PlatformUI.getWorkbench();
- workbench.getDisplay().asyncExec(new Runnable() {
- public void run() {
- // bugzillaEditingMonitor = new BugzillaEditingMonitor();
- // MylarPlugin.getDefault().getSelectionMonitors().add(bugzillaEditingMonitor);
- }
- });
- }
-
- /**
- * This method is called when the plug-in is stopped
- */
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- plugin = null;
- // MylarPlugin.getDefault().getSelectionMonitors().remove(bugzillaEditingMonitor);
- }
-
- /**
- * Returns the shared instance.
- */
- public static MylarBugsPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns an image descriptor for the image file at the given plug-in
- * relative path.
- *
- * @param path
- * the path
- * @return the image descriptor
- */
- public static ImageDescriptor getImageDescriptor(String path) {
- return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.mylar.internal.bugs.bridge", path);
- }
-
- public static BugzillaSearchManager getBridge() {
- // make sure that the bridge initialized, if not, make a new one
- if (bridge == null) {
- bridge = new BugzillaSearchManager();
- }
- return bridge;
- }
-
- public static BugzillaReferencesProvider getReferenceProvider() {
- return referencesProvider;
-
- }
-
- public BugzillaReportCache getCache() {
- return cache;
- }
-}

Back to the top