public void configureBracketMatchingAction(Binder binder) { binder.bind(IActionContributor.class).annotatedWith(Names.named("foldingActionGroup")).to( //$NON-NLS-1$ org.eclipse.xtext.ui.editor.folding.FoldingActionContributor.class); binder.bind(IActionContributor.class).annotatedWith(Names.named("bracketMatcherAction")).to( //$NON-NLS-1$ org.eclipse.xtext.ui.editor.bracketmatching.GoToMatchingBracketAction.class); binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("bracketMatcherPrefernceInitializer")) //$NON-NLS-1$ .to(org.eclipse.xtext.ui.editor.bracketmatching.BracketMatchingPreferencesInitializer.class); binder.bind(IActionContributor.class).annotatedWith(Names.named("selectionActionGroup")).to( //$NON-NLS-1$ org.eclipse.xtext.ui.editor.selection.AstSelectionActionContributor.class); }
@Override public void configureBracketMatchingAction(final Binder binder) { // actually we want to override the first binding only... binder.bind(IActionContributor.class).annotatedWith(Names.named("foldingActionGroup")).to( //$NON-NLS-1$ GamaFoldingActionContributor.class); binder.bind(IActionContributor.class).annotatedWith(Names.named("bracketMatcherAction")).to( //$NON-NLS-1$ org.eclipse.xtext.ui.editor.bracketmatching.GoToMatchingBracketAction.class); binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("bracketMatcherPrefernceInitializer")) //$NON-NLS-1$ .to(org.eclipse.xtext.ui.editor.bracketmatching.BracketMatchingPreferencesInitializer.class); binder.bind(IActionContributor.class).annotatedWith(Names.named("selectionActionGroup")).to( //$NON-NLS-1$ org.eclipse.xtext.ui.editor.selection.AstSelectionActionContributor.class); }
@Override public void configureMarkOccurrencesAction(final Binder binder) { binder.bind(IActionContributor.class).annotatedWith(Names.named("markOccurrences")) .to(GamlMarkOccurrenceActionContributor.class); binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("GamlMarkOccurrenceActionContributor")) //$NON-NLS-1$ .to(GamlMarkOccurrenceActionContributor.class); }
@Override public void configure(final Binder binder) { super.configure(binder); binder.requestStaticInjection(AntlrConsoleFactory.class); binder.requestStaticInjection(AntlrHighlightingConfiguration.class); binder.bind(GrammarResource.class).to(DefaultGrammarResource.class); binder.bind(ToolOptionsProvider.class).to(DefaultToolOptionsProvider.class); binder.bind(Antlr4FoldingPreferenceStoreInitializer.class); binder.bind(BuildPreferenceStoreInitializer.class); binder.bind(IFoldingStructureProvider.class).to(Antlr4FoldingStructureProvider.class); binder.bind(IFoldingRegionProvider.class).to(Antlr4FoldingRegionProvider.class); binder.bind(String.class) .annotatedWith(Names.named(AbstractMultiLineCommentProvider.START_TAG)) .toInstance("/\\*\\*"); binder.bind(IActionContributor.class).annotatedWith(Names.named("Show Whitespace")) .to(ShowWhitespaceCharactersActionContributor.class); binder.bind(TodoListProcessor.class); binder.bind(RefreshProjectProcessor.class); binder.bind(IPath.class).annotatedWith(Names.named("stateLocation")).toInstance(stateLocation); ConsoleImpl.getLogger().addAppender(new DefaultConsole()); }
public void configureMarkOccurrencesAction(Binder binder) { binder.bind(IActionContributor.class).annotatedWith(Names.named("markOccurrences")) .to(MarkOccurrenceActionContributor.class); }