Author: scabanovich
Date: 2012-01-24 19:05:18 -0500 (Tue, 24 Jan 2012)
New Revision: 38140
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/RichfacesExtensionsPlugin.java
Log:
JBIDE-10703
https://issues.jboss.org/browse/JBIDE-10703
RichfacesExtensionsPlugin: obsolete methods are removed.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/RichfacesExtensionsPlugin.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/RichfacesExtensionsPlugin.java 2012-01-24
23:58:38 UTC (rev 38139)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.text.ext.richfaces/src/org/jboss/tools/jsf/text/ext/richfaces/RichfacesExtensionsPlugin.java 2012-01-25
00:05:18 UTC (rev 38140)
@@ -10,14 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.text.ext.richfaces;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
import org.eclipse.ui.plugin.*;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.osgi.framework.BundleContext;
/**
* The main plugin class to be used in the desktop.
@@ -26,74 +19,21 @@
//The shared instance.
private static RichfacesExtensionsPlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
public static final String PLUGIN_ID =
"org.jboss.tools.jsf.text.ext.richfaces"; //$NON-NLS-1$
-
/**
* The constructor.
*/
public RichfacesExtensionsPlugin() {
plugin = this;
- try {
- resourceBundle=
ResourceBundle.getBundle("org.jboss.tools.jsf.text.ext.richfaces.RichfacesExtensionsPlugin");
//$NON-NLS-1$
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
}
/**
- * This method is called upon plug-in activation
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- /**
* Returns the shared instance.
*/
public static RichfacesExtensionsPlugin 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.jboss.tools.jsf.text.ext.richfaces",
path); //$NON-NLS-1$
- }
-
- /**
- * Returns the workspace instance.
- */
- public static IWorkspace getWorkspace() {
- return ResourcesPlugin.getWorkspace();
- }
-
- /**
- * Returns the string from the plugin's resource bundle,
- * or 'key' if not found.
- */
- public static String getResourceString(String key) {
- ResourceBundle bundle= RichfacesExtensionsPlugin.getDefault().getResourceBundle();
- try {
- return bundle.getString(key);
- } catch (MissingResourceException e) {
- return key;
- }
- }
-
- /**
- * Returns the plugin's resource bundle,
- */
- public ResourceBundle getResourceBundle() {
- return resourceBundle;
- }
-
}