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.integration/src
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.integration/src')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslGrammar.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslGrammar.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslGrammar.java
new file mode 100644
index 00000000000..8d04edbb94b
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslGrammar.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * 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.integration.internal;
+
+import org.eclipse.osee.framework.core.dsl.ui.OseeDslAccess;
+import org.eclipse.osee.framework.ui.skynet.DslGrammar;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class OseeDslGrammar implements DslGrammar {
+
+ @Override
+ public String getExtension() {
+ return "osee";
+ }
+
+ @Override
+ public String getGrammarId() {
+ return OseeDslAccess.getGrammarId();
+ }
+
+ @Override
+ public <T> T getObject(Class<? extends T> clazz) {
+ return OseeDslAccess.getInjector().getProvider(clazz).get();
+ }
+
+}

Back to the top