org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer Java Examples
The following examples show how to use
org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.
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: ExtensionPointExtraLanguagePreferenceInitializer.java From sarl with Apache License 2.0 | 5 votes |
@Override public void initialize(IPreferenceStoreAccess access) { if (this.initializers == null) { this.initializers = new ArrayList<>(); final IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint( SARLUiConfig.NAMESPACE, SARLUiConfig.EXTENSION_POINT_EXTRA_LANGUAGE_GENERATORS); if (extensionPoint != null) { Object obj; for (final IConfigurationElement element : extensionPoint.getConfigurationElements()) { try { obj = element.createExecutableExtension(EXTENSION_POINT_PREFERENCE_INITIALIZER_ATTRIBUTE); if (obj instanceof IPreferenceStoreInitializer) { this.initializers.add((IPreferenceStoreInitializer) obj); } } catch (CoreException exception) { LangActivator.getInstance().getLog().log(new Status( IStatus.WARNING, LangActivator.getInstance().getBundle().getSymbolicName(), exception.getLocalizedMessage(), exception)); } } } } for (final IPreferenceStoreInitializer initializer : this.initializers) { initializer.initialize(access); } }
Example #2
Source File: PreferenceStoreAccessTest.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Before public void setUp() throws Exception { preferenceStoreAccess = Guice.createInjector(new AbstractGenericModule() { @SuppressWarnings("unused") public void configureModule(Binder binder) { binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance(LANGUAGE_ID); binder.bind(IPreferenceStoreInitializer.class).toInstance(PreferenceStoreAccessTest.this); } }).getInstance(IPreferenceStoreAccess.class); }
Example #3
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 #4
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 #5
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 #6
Source File: AbstractPureXbaseUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureBuilderPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("builderPreferenceInitializer")) .to(BuilderPreferenceAccess.Initializer.class); }
Example #7
Source File: XtendUiModule.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
@Override public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("RefactoringPreferences")).to(XtendRefactoringPreferences.Initializer.class); }
Example #8
Source File: AbstractXtendUiModule.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }
Example #9
Source File: AbstractXtendUiModule.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
public void configureBuilderPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("builderPreferenceInitializer")) .to(BuilderPreferenceAccess.Initializer.class); }
Example #10
Source File: AbstractGamlUiModule.java From gama with GNU General Public License v3.0 | 4 votes |
public void configureBuilderPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("builderPreferenceInitializer")) .to(BuilderPreferenceAccess.Initializer.class); }
Example #11
Source File: AbstractGamlUiModule.java From gama with GNU General Public License v3.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }
Example #12
Source File: GamlUiModule.java From gama with GNU General Public License v3.0 | 4 votes |
@Override public void configureIOutlineContribution$Composite(final Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(IOutlineContribution.All.class) .to(IOutlineContribution.Composite.class); }
Example #13
Source File: AbstractSARLUiModule.java From sarl with Apache License 2.0 | 4 votes |
public void configureBuilderPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("builderPreferenceInitializer")) .to(BuilderPreferenceAccess.Initializer.class); }
Example #14
Source File: AbstractSARLUiModule.java From sarl with Apache License 2.0 | 4 votes |
public void configureSmartCaretPreferenceInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("smartCaretPreferenceInitializer")).to(SARLPreferenceStoreInitializer.class); }
Example #15
Source File: AbstractSARLUiModule.java From sarl with Apache License 2.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("RefactoringPreferences")).to(SARLPreferenceStoreInitializer.class); }
Example #16
Source File: AbstractSARLUiModule.java From sarl with Apache License 2.0 | 4 votes |
public void configureSarlBuilderPreferences(Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("SarlBuilderPreferences")).to(SARLBuilderPreferenceAccess.Initializer.class); }
Example #17
Source File: AbstractHelloWorldUiModule.java From dsl-devkit with Eclipse Public License 1.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }
Example #18
Source File: AbstractPureXbaseUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }
Example #19
Source File: AbstractRuleEngineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }
Example #20
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
/** * @since 2.8 */ public void configureIssueCodesPreferenceInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("issueCodesPreferenceInitializer")) //$NON-NLS-1$ .to(ConfigurableIssueCodesPreferenceStoreInitializer.class); }
Example #21
Source File: AbstractStatemachineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureBuilderPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("builderPreferenceInitializer")) .to(BuilderPreferenceAccess.Initializer.class); }
Example #22
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
/** * @since 2.7 */ public void configureIQuickOutlineContribution$Composite(Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(IQuickOutlineContribution.All.class) .to(IQuickOutlineContribution.Composite.class); }
Example #23
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
/** * @since 2.4 */ public void configureSmartCaretPreferenceInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(Names.named("smartCaretPreferenceInitializer")) //$NON-NLS-1$ .to(SmartCaretPreferenceInitializer.class); }
Example #24
Source File: DefaultUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureIOutlineContribution$Composite(Binder binder) { binder.bind(IPreferenceStoreInitializer.class).annotatedWith(IOutlineContribution.All.class) .to(IOutlineContribution.Composite.class); }
Example #25
Source File: AbstractDomainmodelUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }
Example #26
Source File: AbstractBuilderTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }
Example #27
Source File: AbstractBuilderTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureBuilderPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("builderPreferenceInitializer")) .to(BuilderPreferenceAccess.Initializer.class); }
Example #28
Source File: AbstractStatemachineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }
Example #29
Source File: AbstractRuleEngineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureBuilderPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("builderPreferenceInitializer")) .to(BuilderPreferenceAccess.Initializer.class); }
Example #30
Source File: AbstractArithmeticsUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public void configureIPreferenceStoreInitializer(Binder binder) { binder.bind(IPreferenceStoreInitializer.class) .annotatedWith(Names.named("RefactoringPreferences")) .to(RefactoringPreferences.Initializer.class); }