Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2015-02-09 21:11:23 +0000
committerDani Megert2015-02-09 21:11:23 +0000
commit8e05771a8bf36c4e10f492357661fe3a9b252a34 (patch)
treea451a11071d0d66c100b9be917e555ce3e44a04a /org.eclipse.ui.editors.tests
parent506188fe6e519bbbbd8cfd44a2c04f232b3bb5a9 (diff)
downloadeclipse.platform.text-8e05771a8bf36c4e10f492357661fe3a9b252a34.tar.gz
eclipse.platform.text-8e05771a8bf36c4e10f492357661fe3a9b252a34.tar.xz
eclipse.platform.text-8e05771a8bf36c4e10f492357661fe3a9b252a34.zip
Remove unnecessary activator bundleI20150210-0800
Diffstat (limited to 'org.eclipse.ui.editors.tests')
-rw-r--r--org.eclipse.ui.editors.tests/META-INF/MANIFEST.MF1
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorTestPlugin.java45
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java12
3 files changed, 9 insertions, 49 deletions
diff --git a/org.eclipse.ui.editors.tests/META-INF/MANIFEST.MF b/org.eclipse.ui.editors.tests/META-INF/MANIFEST.MF
index 7696fa406ff..b23950de93e 100644
--- a/org.eclipse.ui.editors.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.ui.editors.tests/META-INF/MANIFEST.MF
@@ -3,7 +3,6 @@ Bundle-ManifestVersion: 2
Bundle-Name: %Plugin.name
Bundle-SymbolicName: org.eclipse.ui.editors.tests;singleton:=true
Bundle-Version: 3.8.300.qualifier
-Bundle-Activator: org.eclipse.ui.editors.tests.EditorTestPlugin
Bundle-Vendor: %Plugin.providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.ui.editors.tests
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorTestPlugin.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorTestPlugin.java
deleted file mode 100644
index fc602e869ae..00000000000
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EditorTestPlugin.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2014, 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
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.ui.editors.tests;
-
-import org.osgi.framework.BundleContext;
-
-import org.eclipse.core.runtime.Plugin;
-
-public class EditorTestPlugin extends Plugin {
-
- /* (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
- */
- public static String PLUGIN_ID= "org.eclipse.ui.editors.tests";
-
- // The shared instance
- private static EditorTestPlugin fgPlugin;
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static EditorTestPlugin getDefault() {
- return fgPlugin;
- }
-
- public void start(BundleContext context) throws Exception {
- super.start(context);
- fgPlugin= this;
- }
-
- public EditorTestPlugin() {
- super();
- }
-
-}
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java
index c5172f57289..cd79c0e6601 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/MarkerAnnotationOrderTest.java
@@ -53,7 +53,7 @@ public class MarkerAnnotationOrderTest extends TestCase {
protected void setUp() throws Exception {
//add the marker updater extension point
IExtensionRegistry registry= Platform.getExtensionRegistry();
- pointContributor= ContributorFactorySimple.createContributor(Long.toString(EditorTestPlugin.getDefault().getBundle().getBundleId()));
+ pointContributor= ContributorFactorySimple.createContributor(this);
try {
BufferedInputStream bis= new BufferedInputStream(getClass().getResourceAsStream("plugin.xml"));
@@ -66,7 +66,7 @@ public class MarkerAnnotationOrderTest extends TestCase {
registry.addContribution(bis, pointContributor, true, null, null, masterToken);
} catch (Exception ex) {
fail("update marker setup failed to execute");
- EditorTestPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, EditorTestPlugin.PLUGIN_ID, ex.getMessage()));
+ log(ex);
}
}
@@ -99,7 +99,7 @@ public class MarkerAnnotationOrderTest extends TestCase {
t1.updateMarker(d, null, position);
} catch (CoreException e) {
fail("update marker failed to execute");
- EditorTestPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, EditorTestPlugin.PLUGIN_ID, e.getMessage()));
+ log(e);
}
assertEquals("Wrong number of messages", 2, list.size());
@@ -131,4 +131,10 @@ public class MarkerAnnotationOrderTest extends TestCase {
}
+ private static void log(Exception ex) {
+ String PLUGIN_ID= "org.eclipse.jface.text"; //$NON-NLS-1$
+ ILog log= Platform.getLog(Platform.getBundle(PLUGIN_ID));
+ log.log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, ex.getMessage(), ex));
+ }
+
}

Back to the top