diff options
author | Roberto E. Escobar | 2013-05-23 19:37:40 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2013-06-03 23:21:53 +0000 |
commit | c15fd2b9fba73551a572a45ebf2fa09adbe6a0df (patch) | |
tree | 41c9adbb51f413d6fa4d82d43078eda417faff81 /plugins/org.eclipse.osee.framework.core.dsl.ui | |
parent | 74e5fc7e33ec4f8b30a69046e631f9e87aad8452 (diff) | |
download | org.eclipse.osee-c15fd2b9fba73551a572a45ebf2fa09adbe6a0df.tar.gz org.eclipse.osee-c15fd2b9fba73551a572a45ebf2fa09adbe6a0df.tar.xz org.eclipse.osee-c15fd2b9fba73551a572a45ebf2fa09adbe6a0df.zip |
feature[ats_4LPYJ]: Create DslGrammar extension and manager
Change-Id: I4f70332d6abc17d293c4d16b6bceeb0176e73e81
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.MF | 5 | ||||
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.dsl.ui/src/org/eclipse/osee/framework/core/dsl/ui/OseeDslAccess.java | 32 |
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()); + } +} |