summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkohnlein2008-10-22 04:17:19 (EDT)
committerjkohnlein2008-10-22 04:17:19 (EDT)
commit9406ca96c9a66d75660cc7330fa5002f0ba7186d (patch)
treedf75a048abca727bcc3c3c81865b180c0356e618
parenta801029e5f6fb9725a4600d9ea5b8c0bd2bef45b (diff)
downloadorg.eclipse.xpand-9406ca96c9a66d75660cc7330fa5002f0ba7186d.zip
org.eclipse.xpand-9406ca96c9a66d75660cc7330fa5002f0ba7186d.tar.gz
org.eclipse.xpand-9406ca96c9a66d75660cc7330fa5002f0ba7186d.tar.bz2
Make reference grammar use CheckEValidationAdapter
-rw-r--r--plugins/org.eclipse.xtend.typesystem.emf/META-INF/MANIFEST.MF5
-rw-r--r--plugins/org.eclipse.xtend.typesystem.emf/plugin.xml5
-rw-r--r--plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/XtendTypesytemEmfPlugin.java (renamed from plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/internal/emf/XtendTypesytemEmfPlugin.java)12
-rw-r--r--plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java2
4 files changed, 19 insertions, 5 deletions
diff --git a/plugins/org.eclipse.xtend.typesystem.emf/META-INF/MANIFEST.MF b/plugins/org.eclipse.xtend.typesystem.emf/META-INF/MANIFEST.MF
index 860fc5e..077e1e5 100644
--- a/plugins/org.eclipse.xtend.typesystem.emf/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.xtend.typesystem.emf/META-INF/MANIFEST.MF
@@ -10,9 +10,10 @@ Require-Bundle: org.eclipse.xtend,
org.apache.commons.logging,
org.eclipse.emf.mwe.core,
org.eclipse.emf.mwe.utils,
- org.eclipse.core.runtime;bundle-version="3.4.0";resolution:=optional
+ org.eclipse.core.runtime;bundle-version="3.4.0";resolution:=optional,
+ org.eclipse.ui;resolution:=optional
Export-Package: org.eclipse.xtend.typesystem.emf,
org.eclipse.xtend.typesystem.emf.check
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
-Bundle-Activator: org.eclipse.xtend.typesystem.internal.emf.XtendTypesytemEmfPlugin
+Bundle-Activator: org.eclipse.xtend.typesystem.emf.XtendTypesytemEmfPlugin
diff --git a/plugins/org.eclipse.xtend.typesystem.emf/plugin.xml b/plugins/org.eclipse.xtend.typesystem.emf/plugin.xml
index 156d44f..9e6d615 100644
--- a/plugins/org.eclipse.xtend.typesystem.emf/plugin.xml
+++ b/plugins/org.eclipse.xtend.typesystem.emf/plugin.xml
@@ -2,5 +2,10 @@
<?eclipse version="3.2"?>
<plugin>
<extension-point id="checks" name="Checks" schema="schema/checks.exsd"/>
+ <extension
+ point="org.eclipse.ui.startup">
+ <startup
+ class="org.eclipse.xtend.typesystem.emf.XtendTypesytemEmfPlugin"></startup>
+ </extension>
</plugin>
diff --git a/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/internal/emf/XtendTypesytemEmfPlugin.java b/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/XtendTypesytemEmfPlugin.java
index a43b62c..65c8708 100644
--- a/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/internal/emf/XtendTypesytemEmfPlugin.java
+++ b/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/XtendTypesytemEmfPlugin.java
@@ -1,10 +1,11 @@
-package org.eclipse.xtend.typesystem.internal.emf;
+package org.eclipse.xtend.typesystem.emf;
import org.eclipse.core.runtime.Plugin;
+import org.eclipse.ui.IStartup;
import org.eclipse.xtend.typesystem.emf.check.CheckRegistry;
import org.osgi.framework.BundleContext;
-public class XtendTypesytemEmfPlugin extends Plugin {
+public class XtendTypesytemEmfPlugin extends Plugin implements IStartup {
// the shared instance
private static XtendTypesytemEmfPlugin plugin;
@@ -45,5 +46,12 @@ public class XtendTypesytemEmfPlugin extends Plugin {
return plugin;
}
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.IStartup#earlyStartup()
+ */
+ public void earlyStartup() {
+ // do nothing but instantiate this
+ }
+
}
diff --git a/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java b/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java
index 5b7df95..9e0201b 100644
--- a/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java
+++ b/plugins/org.eclipse.xtend.typesystem.emf/src/org/eclipse/xtend/typesystem/emf/check/CheckRegistry.java
@@ -21,7 +21,7 @@ import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EValidator;
-import org.eclipse.xtend.typesystem.internal.emf.XtendTypesytemEmfPlugin;
+import org.eclipse.xtend.typesystem.emf.XtendTypesytemEmfPlugin;
/**
* Reads checks extensions, instantiates validators and registers them.