Author: scabanovich
Date: 2012-01-25 13:57:36 -0500 (Wed, 25 Jan 2012)
New Revision: 38187
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/CommonValidationPlugin.java
Log:
JBIDE-10703
https://issues.jboss.org/browse/JBIDE-10703
CommonValidationPlugin is modified to follow the common pattern.
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/CommonValidationPlugin.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/CommonValidationPlugin.java 2012-01-25
18:50:10 UTC (rev 38186)
+++
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/CommonValidationPlugin.java 2012-01-25
18:57:36 UTC (rev 38187)
@@ -16,8 +16,6 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.jboss.tools.common.log.BaseUIPlugin;
-import org.jboss.tools.common.log.IPluginLog;
-import org.osgi.framework.BundleContext;
/**
* @author Alexey Kazakov
@@ -25,47 +23,21 @@
public class CommonValidationPlugin extends BaseUIPlugin {
public static final String PLUGIN_ID = "org.jboss.tools.common.validation";
//$NON-NLS-1$
- protected static CommonValidationPlugin INSTANCE;
+ protected static CommonValidationPlugin plugin;
public CommonValidationPlugin() {
+ plugin = this;
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- INSTANCE = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- INSTANCE = null;
- super.stop(context);
- }
-
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static CommonValidationPlugin getDefault() {
- return INSTANCE;
+ return plugin;
}
- /**
- * @return IPluginLog object
- */
- public static IPluginLog getPluginLog() {
- return getDefault();
- }
-
public static boolean makeBuilderLast(IProject project, String builderId) throws
CoreException {
IProjectDescription d = project.getDescription();
ICommand[] bs = d.getBuildSpec();