Package com.google.eclipse.protobuf.ui.preferences.pages.binding

Examples of com.google.eclipse.protobuf.ui.preferences.pages.binding.PreferenceFactory


    addEventListeners();
    return contents;
  }

  private void setUpBinding() {
    PreferenceFactory factory = new PreferenceFactory(getPreferenceStore());
    preferenceBinder.addAll(
        bindSelectionOf(btnRemoveTrailingWhitespace).to(factory.newBooleanPreference(REMOVE_TRAILING_WHITESPACE)),
        bindSelectionOf(btnInAllLines).to(factory.newBooleanPreference(IN_ALL_LINES)),
        bindSelectionOf(btnInEditedLines).to(factory.newBooleanPreference(IN_EDITED_LINES))
    );
  }
View Full Code Here


  private final PreferenceBinder preferenceBinder = new PreferenceBinder();

  @Override protected Control createContents(Composite parent) {
    Composite contents = contentParent(parent);
    doCreateContents(contents);
    PreferenceFactory preferenceFactory = new PreferenceFactory(getPreferenceStore());
    if (isPropertyPage()) {
      setupBindingOfBtnEnabledProjectSettings(preferenceFactory);
    }
    setupBinding(preferenceBinder, preferenceFactory);
    preferenceBinder.applyValues();
View Full Code Here

TOP

Related Classes of com.google.eclipse.protobuf.ui.preferences.pages.binding.PreferenceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.