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.integration/src/org/eclipse/osee | |
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.integration/src/org/eclipse/osee')
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslGrammar.java | 36 |
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(); + } + +} |