@Inject public TextAttributeProvider(IHighlightingConfiguration highlightingConfig, IPreferenceStoreAccess preferenceStoreAccess, PreferenceStoreAccessor prefStoreAccessor) { this.highlightingConfig = highlightingConfig; this.preferencesAccessor = prefStoreAccessor; this.attributes = new HashMap<String, TextAttribute>(); preferenceStoreAccess.getPreferenceStore().addPropertyChangeListener(this); initialize(); }
@Override public void initialize(final IPreferenceStoreAccess preferenceStoreAccess) { access = preferenceStoreAccess; preferenceStoreAccess.getWritablePreferenceStore().setDefault(getPreferenceKey(), EDITOR_MARK_OCCURRENCES.getValue()); preferenceStoreAccess.getWritablePreferenceStore().setValue(getPreferenceKey(), EDITOR_MARK_OCCURRENCES.getValue()); }
@Override public void initialize(IPreferenceStoreAccess access) { IPreferenceStore store = access.getWritablePreferenceStore(); for (PreferenceKey prefKey : SadlPreferences.preferences()) { store.setDefault(prefKey.getId(), prefKey.getDefaultValue()); } }
@Inject public SadlProposalProvider(SadlGrammarAccess g, IPreferenceStoreAccess preferencesAccess) { this.g = g; this.preferencesAccess = preferencesAccess; initKeywordRules(); IPreferenceStore preferenceStore = preferencesAccess.getPreferenceStore(); bRemoveUnnecessaryPrefixes = preferenceStore.getBoolean("prefixesOnlyAsNeeded"); }
@Override public void initialize(IPreferenceStoreAccess preferenceStoreAccess) { IPreferenceStore store = preferenceStoreAccess.getWritablePreferenceStore(); intializeBuilderPreferences(store); }
@Override @Inject public void setPreferenceStoreAccess(IPreferenceStoreAccess preferenceStoreAccess) { this.preferenceStoreAccess = preferenceStoreAccess; }
public void initialize(IPreferenceStoreAccess access) { access.getWritablePreferenceStore().setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true); }
public void initialize(IPreferenceStoreAccess access) { for(IOutlineContribution contribution: contributions) contribution.initialize(access); }
public void initialize(IPreferenceStoreAccess access) { access.getWritablePreferenceStore().setDefault(IS_ACTIVE_KEY, true); access.getWritablePreferenceStore().setDefault(COLOR_KEY, getDefautColor()); }
protected IPreferenceStoreAccess getPreferenceStoreAccess() { return preferenceStoreAccess; }
public void initialize(IPreferenceStoreAccess preferenceStoreAccess) { preferenceStoreAccess.getWritablePreferenceStore().setDefault(getPreferenceKey(), getPreferenceDefaultValue()); }
@Inject public PreferenceStoreAccessor(@Named(Constants.LANGUAGE_NAME) String languageName, IPreferenceStoreAccess scopedAccessor) { this.scopedAccessor = scopedAccessor; PREFERENCE_TAG = tokenTypeTag(languageName) + SEPARATOR; }
public void setPreferenceStoreAccessor(IPreferenceStoreAccess preferenceStoreAccessor) { this.preferenceStoreAccessor = preferenceStoreAccessor; }
public IPreferenceStoreAccess getPreferenceStoreAccessor() { return preferenceStoreAccessor; }
@Inject public void setPreferenceStoreAccess(IPreferenceStoreAccess storeAccess) { this.storeAccess = storeAccess; storeAccess.getPreferenceStore().addPropertyChangeListener(this); }
public void initialize(IPreferenceStoreAccess access) { access.getWritablePreferenceStore().setDefault(SAVE_ALL_BEFORE_REFACTORING, false); access.getWritablePreferenceStore().setDefault(USE_INLINE_REFACTORING, true); }
protected IPreferenceStoreAccess getPreferenceStoreAccess() { return this.preferenceStoreAccess; }
public void setPreferenceStoreAccessor( IPreferenceStoreAccess preferenceStoreAccessor) { this.preferenceStoreAccessor = preferenceStoreAccessor; }