Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'FROMCVS/org.eclipse.test.performance.data/src/org/eclipse/test/performance/data/DataPlugin.java')
-rwxr-xr-xFROMCVS/org.eclipse.test.performance.data/src/org/eclipse/test/performance/data/DataPlugin.java73
1 files changed, 0 insertions, 73 deletions
diff --git a/FROMCVS/org.eclipse.test.performance.data/src/org/eclipse/test/performance/data/DataPlugin.java b/FROMCVS/org.eclipse.test.performance.data/src/org/eclipse/test/performance/data/DataPlugin.java
deleted file mode 100755
index 45c8ca3fb..000000000
--- a/FROMCVS/org.eclipse.test.performance.data/src/org/eclipse/test/performance/data/DataPlugin.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package org.eclipse.test.performance.data;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-import java.util.*;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class DataPlugin extends Plugin {
- //The shared instance.
- private static DataPlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
-
- /**
- * The constructor.
- */
- public DataPlugin() {
- super();
- plugin = this;
- }
-
- /**
- * 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;
- resourceBundle = null;
- }
-
- /**
- * Returns the shared instance.
- */
- public static DataPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns the string from the plugin's resource bundle,
- * or 'key' if not found.
- */
- public static String getResourceString(String key) {
- ResourceBundle bundle = DataPlugin.getDefault().getResourceBundle();
- try {
- return (bundle != null) ? bundle.getString(key) : key;
- } catch (MissingResourceException e) {
- return key;
- }
- }
-
- /**
- * Returns the plugin's resource bundle,
- */
- public ResourceBundle getResourceBundle() {
- try {
- if (resourceBundle == null)
- resourceBundle = ResourceBundle.getBundle("org.eclipse.test.performance.data.DataPluginResources");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- return resourceBundle;
- }
-
-}

Back to the top