Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2013-05-23 19:37:40 +0000
committerGerrit Code Review @ Eclipse.org2013-06-03 23:21:53 +0000
commitc15fd2b9fba73551a572a45ebf2fa09adbe6a0df (patch)
tree41c9adbb51f413d6fa4d82d43078eda417faff81 /plugins/org.eclipse.osee.framework.core.dsl.ui
parent74e5fc7e33ec4f8b30a69046e631f9e87aad8452 (diff)
downloadorg.eclipse.osee-c15fd2b9fba73551a572a45ebf2fa09adbe6a0df.tar.gz
org.eclipse.osee-c15fd2b9fba73551a572a45ebf2fa09adbe6a0df.tar.xz
org.eclipse.osee-c15fd2b9fba73551a572a45ebf2fa09adbe6a0df.zip
feature[ats_4LPYJ]: Create DslGrammar extension and manager
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF5
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui/src/org/eclipse/osee/framework/core/dsl/ui/OseeDslAccess.java32
2 files changed, 35 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF
index 281adfe768a..252d6d1f688 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui/META-INF/MANIFEST.MF
@@ -15,7 +15,8 @@ Require-Bundle: org.eclipse.osee.framework.core.dsl;visibility:=reexport,
org.antlr.runtime
Import-Package: org.apache.log4j,
org.eclipse.osee.framework.jdk.core.util
-Export-Package: org.eclipse.osee.framework.core.dsl.ui.contentassist.antlr,
- org.eclipse.osee.framework.core.dsl.ui.contentassist
+Export-Package: org.eclipse.osee.framework.core.dsl.ui,
+ org.eclipse.osee.framework.core.dsl.ui.contentassist,
+ org.eclipse.osee.framework.core.dsl.ui.contentassist.antlr
Bundle-Activator: org.eclipse.osee.framework.core.dsl.ui.internal.OseeDslActivator
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui/src/org/eclipse/osee/framework/core/dsl/ui/OseeDslAccess.java b/plugins/org.eclipse.osee.framework.core.dsl.ui/src/org/eclipse/osee/framework/core/dsl/ui/OseeDslAccess.java
new file mode 100644
index 00000000000..b91f168781d
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui/src/org/eclipse/osee/framework/core/dsl/ui/OseeDslAccess.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.core.dsl.ui;
+
+import org.eclipse.osee.framework.core.dsl.ui.internal.OseeDslActivator;
+import com.google.inject.Injector;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class OseeDslAccess {
+
+ private OseeDslAccess() {
+ // utility
+ }
+
+ public static String getGrammarId() {
+ return OseeDslActivator.ORG_ECLIPSE_OSEE_FRAMEWORK_CORE_DSL_OSEEDSL;
+ }
+
+ public static Injector getInjector() {
+ return OseeDslActivator.getInstance().getInjector(getGrammarId());
+ }
+}

Back to the top