Author: scabanovich
Date: 2012-01-24 19:11:56 -0500 (Tue, 24 Jan 2012)
New Revision: 38142
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/FaceletsPlugin.java
Log:
JBIDE-10703
https://issues.jboss.org/browse/JBIDE-10703
FaceletsPlugin is modified to follow the common pattern.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/FaceletsPlugin.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/FaceletsPlugin.java 2012-01-25
00:10:32 UTC (rev 38141)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/FaceletsPlugin.java 2012-01-25
00:11:56 UTC (rev 38142)
@@ -11,8 +11,6 @@
package org.jboss.tools.jsf.vpe.facelets;
import org.eclipse.ui.plugin.*;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.osgi.framework.BundleContext;
/**
* The main plugin class to be used in the desktop.
@@ -30,35 +28,10 @@
}
/**
- * This method is called upon plug-in activation
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- /**
- * This method is called when the plug-in is stopped
- */
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- plugin = null;
- }
-
- /**
* Returns the shared instance.
*/
public static FaceletsPlugin 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.vpe.facelets",
path); //$NON-NLS-1$
- }
}