Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.ide.dev/developer/src-old/bugzilla/AbstractFavoritesAction.java')
-rw-r--r--org.eclipse.mylyn.ide.dev/developer/src-old/bugzilla/AbstractFavoritesAction.java53
1 files changed, 0 insertions, 53 deletions
diff --git a/org.eclipse.mylyn.ide.dev/developer/src-old/bugzilla/AbstractFavoritesAction.java b/org.eclipse.mylyn.ide.dev/developer/src-old/bugzilla/AbstractFavoritesAction.java
deleted file mode 100644
index 891189bf..00000000
--- a/org.eclipse.mylyn.ide.dev/developer/src-old/bugzilla/AbstractFavoritesAction.java
+++ /dev/null
@@ -1,53 +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.mylyn.internal.bugzilla.ui.actions;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.mylyn.internal.bugzilla.core.BugzillaPlugin;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * Class that contains shared functions for the favorites actions
- */
-public class AbstractFavoritesAction extends Action {
-
- /**
- * Set the actions icon
- *
- * @param filename
- * The icons file
- */
- protected void setIcon(String filename) {
- URL url = null;
- try {
- // try to change the default icon
- url = new URL(BugzillaPlugin.getDefault().getBundle().getEntry("/"), filename);
- setImageDescriptor(ImageDescriptor.createFromURL(url));
- } catch (MalformedURLException e) {
- // Simply don't change the default icon
- }
- }
-
- /**
- * Convienience method for getting the current shell
- *
- * @return The current shell
- */
- protected Shell getShell() {
- return PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- }
-
-}

Back to the top