org.eclipse.xtext.ui.editor.actions.IActionContributor Java Examples
The following examples show how to use
org.eclipse.xtext.ui.editor.actions.IActionContributor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
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); }
Example #2
Source File: GamlUiModule.java From gama with GNU General Public License v3.0 | 5 votes |
@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); }
Example #3
Source File: GamlUiModule.java From gama with GNU General Public License v3.0 | 5 votes |
@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); }
Example #4
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureMarkOccurrencesAction(Binder binder) { binder.bind(IActionContributor.class).annotatedWith(Names.named("markOccurrences")) .to(MarkOccurrenceActionContributor.class); }
Example #5
Source File: XtendUiModule.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
public void configureOverrideIndicatorSupport(Binder binder) { binder.bind(IXtextEditorCallback.class).annotatedWith(Names.named("OverrideIndicatorModelListener")). // $NON-NLS-1$ to(OverrideIndicatorModelListener.class); binder.bind(IActionContributor.class).annotatedWith(Names.named("OverrideIndicatorRulerAction")).to( // $NON-NLS-1$ OverrideIndicatorRulerAction.class); }
Example #6
Source File: XtendUiModule.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
public void configureIShowWhitespaceCharactersActionContributor(Binder binder) { binder.bind(IActionContributor.class).annotatedWith(Names.named("Show Whitespace")).to(ShowWhitespaceCharactersActionContributor.class); }
Example #7
Source File: AbstractSARLUiModule.java From sarl with Apache License 2.0 | 4 votes |
public void configureOverrideIndicatorRulerAction(Binder binder) { binder.bind(IActionContributor.class).annotatedWith(Names.named("OverrideIndicatorRulerAction")).to(OverrideIndicatorRulerAction.class); }