diff options
author | Alexander Kurtakov | 2012-04-26 22:33:19 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2012-04-26 22:33:19 +0000 |
commit | 90c6fd7f0e3afaccdb0ca1612446a59955b435e8 (patch) | |
tree | 3a61c15441ce38f48e810fb74789ff3c86c93d77 /rpm | |
parent | b178c605f58fe9d56abfcfa2d6c98b95df079dbd (diff) | |
download | org.eclipse.linuxtools-90c6fd7f0e3afaccdb0ca1612446a59955b435e8.tar.gz org.eclipse.linuxtools-90c6fd7f0e3afaccdb0ca1612446a59955b435e8.tar.xz org.eclipse.linuxtools-90c6fd7f0e3afaccdb0ca1612446a59955b435e8.zip |
No need for an activator.
It is not doing anything and not used at all.
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/org.eclipse.linuxtools.rpm.ui/META-INF/MANIFEST.MF | 1 | ||||
-rw-r--r-- | rpm/org.eclipse.linuxtools.rpm.ui/src/org/eclipse/linuxtools/internal/rpm/ui/RPMUIPlugin.java | 105 |
2 files changed, 0 insertions, 106 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.ui/META-INF/MANIFEST.MF b/rpm/org.eclipse.linuxtools.rpm.ui/META-INF/MANIFEST.MF index 03e69add31..1107982b8f 100644 --- a/rpm/org.eclipse.linuxtools.rpm.ui/META-INF/MANIFEST.MF +++ b/rpm/org.eclipse.linuxtools.rpm.ui/META-INF/MANIFEST.MF @@ -3,7 +3,6 @@ Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name.0 Bundle-SymbolicName: org.eclipse.linuxtools.rpm.ui;singleton:=true Bundle-Version: 0.4.3.qualifier -Bundle-Activator: org.eclipse.linuxtools.internal.rpm.ui.RPMUIPlugin Bundle-Vendor: %Bundle-Vendor.0 Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: J2SE-1.5 diff --git a/rpm/org.eclipse.linuxtools.rpm.ui/src/org/eclipse/linuxtools/internal/rpm/ui/RPMUIPlugin.java b/rpm/org.eclipse.linuxtools.rpm.ui/src/org/eclipse/linuxtools/internal/rpm/ui/RPMUIPlugin.java deleted file mode 100644 index d305511fd4..0000000000 --- a/rpm/org.eclipse.linuxtools.rpm.ui/src/org/eclipse/linuxtools/internal/rpm/ui/RPMUIPlugin.java +++ /dev/null @@ -1,105 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005-2009 Red Hat, Inc. - * 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: - * Red Hat - initial API and implementation - *******************************************************************************/ -package org.eclipse.linuxtools.internal.rpm.ui; - -import java.util.MissingResourceException; -import java.util.ResourceBundle; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The main plugin class to be used in the desktop. - */ -public class RPMUIPlugin extends AbstractUIPlugin { - //The shared instance. - private static RPMUIPlugin plugin; - //Resource bundle. - private ResourceBundle resourceBundle; - - /** - * The constructor. - */ - public RPMUIPlugin() { - super(); - plugin = this; - } - - /** - * This method is called upon plug-in activation - */ - @Override - public void start(BundleContext context) throws Exception { - super.start(context); - } - - /** - * This method is called when the plug-in is stopped - */ - @Override - public void stop(BundleContext context) throws Exception { - super.stop(context); - plugin = null; - resourceBundle = null; - } - - /** - * Returns the shared instance. - * - * @return The instance of this singleton. - */ - public static RPMUIPlugin getDefault() { - return plugin; - } - - /** - * Returns the string from the plugin's resource bundle, - * or 'key' if not found. - * @param key The key to look for. - * @return The string found or the key if nothing was found. - */ - public static String getResourceString(String key) { - ResourceBundle bundle = RPMUIPlugin.getDefault().getResourceBundle(); - try { - return (bundle != null) ? bundle.getString(key) : key; - } catch (MissingResourceException e) { - return key; - } - } - - /** - * Returns the plugin's resource bundle. - * - * @return The resource container. - */ - public ResourceBundle getResourceBundle() { - try { - if (resourceBundle == null) - resourceBundle = ResourceBundle.getBundle("rpmui.RpmuiPluginResources"); //$NON-NLS-1$ - } catch (MissingResourceException x) { - resourceBundle = null; - } - return resourceBundle; - } - - /** - * 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("rpmui", path); //$NON-NLS-1$ - } - -} |