Java 类org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreAccess 实例源码

项目:bts    文件:TextAttributeProvider.java   
@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();
}
项目:gama    文件:GamlMarkOccurrenceActionContributor.java   
@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());
}
项目:sadlos2    文件:SadlPreferencesInitializer.java   
@Override
public void initialize(IPreferenceStoreAccess access) {
    IPreferenceStore store = access.getWritablePreferenceStore();
    for (PreferenceKey prefKey : SadlPreferences.preferences()) {
        store.setDefault(prefKey.getId(), prefKey.getDefaultValue());
    }
}
项目:sadlos2    文件:SadlProposalProvider.java   
@Inject
   public SadlProposalProvider(SadlGrammarAccess g, IPreferenceStoreAccess preferencesAccess) {
    this.g = g;
    this.preferencesAccess = preferencesAccess;

    initKeywordRules();
    IPreferenceStore preferenceStore = preferencesAccess.getPreferenceStore();

    bRemoveUnnecessaryPrefixes = preferenceStore.getBoolean("prefixesOnlyAsNeeded");
}
项目:n4js    文件:N4JSBuilderPreferenceAccess.java   
@Override
public void initialize(IPreferenceStoreAccess preferenceStoreAccess) {
    IPreferenceStore store = preferenceStoreAccess.getWritablePreferenceStore();
    intializeBuilderPreferences(store);
}
项目:n4js    文件:N4JSBuilderPreferenceAccess.java   
@Override
@Inject
public void setPreferenceStoreAccess(IPreferenceStoreAccess preferenceStoreAccess) {
    this.preferenceStoreAccess = preferenceStoreAccess;
}
项目:bts    文件:SmartCaretPreferenceInitializer.java   
public void initialize(IPreferenceStoreAccess access) {
    access.getWritablePreferenceStore().setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
}
项目:bts    文件:IOutlineContribution.java   
public void initialize(IPreferenceStoreAccess access) {
    for(IOutlineContribution contribution: contributions)
        contribution.initialize(access);
}
项目:bts    文件:BracketMatchingPreferencesInitializer.java   
public void initialize(IPreferenceStoreAccess access) {
    access.getWritablePreferenceStore().setDefault(IS_ACTIVE_KEY, true);
    access.getWritablePreferenceStore().setDefault(COLOR_KEY, getDefautColor());
}
项目:bts    文件:AbstractToggleActionContributor.java   
protected IPreferenceStoreAccess getPreferenceStoreAccess() {
    return preferenceStoreAccess;
}
项目:bts    文件:AbstractToggleActionContributor.java   
public void initialize(IPreferenceStoreAccess preferenceStoreAccess) {
    preferenceStoreAccess.getWritablePreferenceStore().setDefault(getPreferenceKey(), getPreferenceDefaultValue());
}
项目:bts    文件:PreferenceStoreAccessor.java   
@Inject
public PreferenceStoreAccessor(@Named(Constants.LANGUAGE_NAME) String languageName, IPreferenceStoreAccess scopedAccessor) {
    this.scopedAccessor = scopedAccessor;
    PREFERENCE_TAG = tokenTypeTag(languageName) + SEPARATOR;
}
项目:bts    文件:HighlightingHelper.java   
public void setPreferenceStoreAccessor(IPreferenceStoreAccess preferenceStoreAccessor) {
    this.preferenceStoreAccessor = preferenceStoreAccessor;
}
项目:bts    文件:HighlightingHelper.java   
public IPreferenceStoreAccess getPreferenceStoreAccessor() {
    return preferenceStoreAccessor;
}
项目:bts    文件:PreferenceStoreIndentationInformation.java   
@Inject
public void setPreferenceStoreAccess(IPreferenceStoreAccess storeAccess) {
    this.storeAccess = storeAccess;
    storeAccess.getPreferenceStore().addPropertyChangeListener(this);
}
项目:bts    文件:RefactoringPreferences.java   
public void initialize(IPreferenceStoreAccess access) {
    access.getWritablePreferenceStore().setDefault(SAVE_ALL_BEFORE_REFACTORING, false);
    access.getWritablePreferenceStore().setDefault(USE_INLINE_REFACTORING, true);
}
项目:statecharts    文件:StyledTextXtextAdapter.java   
protected IPreferenceStoreAccess getPreferenceStoreAccess() {
    return this.preferenceStoreAccess;
}
项目:statecharts    文件:XtextStyledTextHighlightingHelper.java   
public void setPreferenceStoreAccessor(
        IPreferenceStoreAccess preferenceStoreAccessor) {
    this.preferenceStoreAccessor = preferenceStoreAccessor;
}
项目:statecharts    文件:XtextStyledTextHighlightingHelper.java   
public IPreferenceStoreAccess getPreferenceStoreAccessor() {
    return preferenceStoreAccessor;
}
项目:PDFReporter-Studio    文件:XtextStyledTextHighlightingHelper.java   
public void setPreferenceStoreAccessor(
        IPreferenceStoreAccess preferenceStoreAccessor) {
    this.preferenceStoreAccessor = preferenceStoreAccessor;
}
项目:PDFReporter-Studio    文件:XtextStyledTextHighlightingHelper.java   
public IPreferenceStoreAccess getPreferenceStoreAccessor() {
    return preferenceStoreAccessor;
}