[477861] Remove dependency on org.eclipse.core.runtime.compatibility
diff --git a/tests/org.eclipse.wst.common.tests/commontests/org/eclipse/wst/common/tests/CommonTestsPlugin.java b/tests/org.eclipse.wst.common.tests/commontests/org/eclipse/wst/common/tests/CommonTestsPlugin.java
index 3daf6cf..e52465a 100644
--- a/tests/org.eclipse.wst.common.tests/commontests/org/eclipse/wst/common/tests/CommonTestsPlugin.java
+++ b/tests/org.eclipse.wst.common.tests/commontests/org/eclipse/wst/common/tests/CommonTestsPlugin.java
@@ -1,18 +1,21 @@
-/*
- * Created on Nov 3, 2003
+/*******************************************************************************
+ * Copyright (c) 2003, 2015 IBM Corporation 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
*
- * To change the template for this generated file go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
package org.eclipse.wst.common.tests;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IPluginDescriptor;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
-/**
- * @author jsholl
- */
public class CommonTestsPlugin extends Plugin {
public static String PLUGIN_ID = "org.eclipse.wst.common.tests";
public static CommonTestsPlugin instance = null;
@@ -27,4 +30,19 @@
dataModelVerifierExt = descriptor.getExtensionPoint("DataModelVerifier");
}
-}
+ // default constructor for use of start() and stop()
+ public CommonTestsPlugin()
+ {
+ }
+
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ instance = this;
+ Platform.getExtensionRegistry().getExtensionPoint(PLUGIN_ID, "DataModelVerifier");
+ }
+
+ public void stop(BundleContext context) throws Exception {
+ instance = null;
+ super.stop(context);
+ }
+}
\ No newline at end of file