Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2005-04-14 14:44:04 +0000
committerDani Megert2005-04-14 14:44:04 +0000
commit25b3de45e01985479254b040c0aeb44a76df028b (patch)
tree42996b122e4a02fef61d61d26eb7c89b4b002576 /org.eclipse.ui.examples.javaeditor
parente786dad715d6849ef37e01e70adc33564c4abd4b (diff)
downloadeclipse.platform.text-25b3de45e01985479254b040c0aeb44a76df028b.tar.gz
eclipse.platform.text-25b3de45e01985479254b040c0aeb44a76df028b.tar.xz
eclipse.platform.text-25b3de45e01985479254b040c0aeb44a76df028b.zip
Removed old compatibility code
Diffstat (limited to 'org.eclipse.ui.examples.javaeditor')
-rw-r--r--org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/JavaEditorExamplePlugin.java23
-rw-r--r--org.eclipse.ui.examples.javaeditor/plugin.xml2
2 files changed, 6 insertions, 19 deletions
diff --git a/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/JavaEditorExamplePlugin.java b/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/JavaEditorExamplePlugin.java
index 1411a9f49b2..ea21e69839c 100644
--- a/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/JavaEditorExamplePlugin.java
+++ b/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/JavaEditorExamplePlugin.java
@@ -10,9 +10,6 @@
*******************************************************************************/
package org.eclipse.ui.examples.javaeditor;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPluginDescriptor;
-
import org.eclipse.jface.text.rules.RuleBasedScanner;
import org.eclipse.ui.examples.javaeditor.java.JavaCodeScanner;
@@ -21,7 +18,7 @@ import org.eclipse.ui.examples.javaeditor.util.JavaColorProvider;
import org.eclipse.ui.plugin.AbstractUIPlugin;
/**
- * The example java editor plugin class.
+ * The example java editor plug-in class.
*
* @since 3.0
*/
@@ -36,31 +33,21 @@ public class JavaEditorExamplePlugin extends AbstractUIPlugin {
private JavaDocScanner fDocScanner;
/**
- * Creates a new plugin instance.
- *
- * @param descriptor
+ * Creates a new plug-in instance.
*/
- public JavaEditorExamplePlugin(IPluginDescriptor descriptor) {
- super(descriptor);
+ public JavaEditorExamplePlugin() {
fgInstance= this;
}
/**
- * Returns the default plugin instance.
+ * Returns the default plug-in instance.
*
- * @return the default plugin instance
+ * @return the default plug-in instance
*/
public static JavaEditorExamplePlugin getDefault() {
return fgInstance;
}
- /*
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#shutdown()
- */
- public void shutdown() throws CoreException {
- super.shutdown();
- }
-
/**
* Return a scanner for creating Java partitions.
*
diff --git a/org.eclipse.ui.examples.javaeditor/plugin.xml b/org.eclipse.ui.examples.javaeditor/plugin.xml
index 435daa04b7f..4e649855e8c 100644
--- a/org.eclipse.ui.examples.javaeditor/plugin.xml
+++ b/org.eclipse.ui.examples.javaeditor/plugin.xml
@@ -16,7 +16,7 @@
</library>
</runtime>
<requires>
- <import plugin="org.eclipse.core.runtime.compatibility"/>
+ <import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.jface.text"/>
<import plugin="org.eclipse.ui.workbench.texteditor"/>

Back to the top