|
|
@@ -1,21 +1,19 @@
|
|
|
package org.yakindu.sct.ui.integration.stext.modules;
|
|
|
|
|
|
import org.eclipse.emf.ecore.EObject;
|
|
|
-import org.eclipse.ui.plugin.AbstractUIPlugin;
|
|
|
+import org.eclipse.xtext.service.AbstractGenericModule;
|
|
|
import org.eclipse.xtext.ui.editor.contentassist.antlr.IContentAssistParser;
|
|
|
-import org.yakindu.sct.model.stext.ui.STextUiModule;
|
|
|
import org.yakindu.sct.ui.integration.stext.parsers.EntryRuleAntlrSTextParser;
|
|
|
import org.yakindu.sct.ui.integration.stext.parsers.EntryRuleContentAssistParser;
|
|
|
|
|
|
import com.google.inject.Binder;
|
|
|
import com.google.inject.name.Names;
|
|
|
|
|
|
-public class EntryRuleUIModule extends STextUiModule {
|
|
|
+public class EntryRuleUIModule extends AbstractGenericModule {
|
|
|
|
|
|
private Class<? extends EObject> parserRule;
|
|
|
|
|
|
- public EntryRuleUIModule(AbstractUIPlugin plugin, Class<? extends EObject> parserRule) {
|
|
|
- super(plugin);
|
|
|
+ public EntryRuleUIModule(Class<? extends EObject> parserRule) {
|
|
|
this.parserRule = parserRule;
|
|
|
}
|
|
|
|
|
|
@@ -26,7 +24,6 @@ public class EntryRuleUIModule extends STextUiModule {
|
|
|
.toInstance(parserRule.getSimpleName());
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
public Class<? extends IContentAssistParser> bindIContentAssistParser() {
|
|
|
return EntryRuleContentAssistParser.class;
|
|
|
}
|