Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.ListEditor


        _sourceList.setFileExtensions(new String[] { "*.lst", "*.*" });
        _setParent(_sourceList, currentComposite);
        addField(_sourceList);

        currentComposite = _newComposite(composite);
        _sources = new ListEditor(PreferenceConstants.BACKTRACK_SOURCES,
                "&Sources", currentComposite) {
            protected String createList(String[] items) {
                return Strings.encodeFileNames(items);
            }

View Full Code Here


    setDescription("Manage the languages proposed for string literals here.");
  }

  @Override
  protected void createFieldEditors() {
    ListEditor listeditor = new ListEditor(TurtlePreferenceConstants.CA_LANGUAGES_KEY,"", getFieldEditorParent()) {
      @Override
      protected String[] parseString(String stringList) {
        String[] list = stringList.split(",,");
        Arrays.sort(list);
        return list;
View Full Code Here

    setDescription("Manage the description predicates here. These URIs are used for retrieving hover text information for the subject.");
  }

  @Override
  protected void createFieldEditors() {
    ListEditor listeditor = new ListEditor(TurtlePreferenceConstants.DESCRIPTION_PREFERENCE_KEY,"", getFieldEditorParent()) {
      @Override
      protected String[] parseString(String stringList) {
        String[] list = stringList.split("\n");
        Arrays.sort(list);
        return list;
      }
      @Override
      protected String getNewInputObject() {
        InputDialog input=new InputDialog(getShell(), "URI", "Enter the URI", "http://", null);
        input.open();
        return input.getValue();
      }
      @Override
      protected String createList(String[] items) {
        return Joiner.on("\n").join(items);
      }
      @Override
      protected void createControl(Composite parent) {
        super.createControl(parent);
        getUpButton().setVisible(false);
        getDownButton().setVisible(false);
      }
    };
    addField(listeditor);
    addField(new BooleanFieldEditor(TurtlePreferenceConstants.USE_DEFAULT_LANGUAGE_PREFERENCE_KEY, "Use description with default locale "+Platform.getNL(), getFieldEditorParent()));
    addField(new BooleanFieldEditor(TurtlePreferenceConstants.USE_NOLANGUAGE_PREFERENCE_KEY, "Use description with no locale", getFieldEditorParent()));
    listeditor = new ListEditor(TurtlePreferenceConstants.LANGUAGES_PREFERENCE_KEY,"Use the following locales", getFieldEditorParent()) {
      @Override
      protected String[] parseString(String stringList) {
        return stringList.split(",,");
      }
      @Override
View Full Code Here

    setDescription("Manage the label predicates here. These URIs are used for retrieving aliases that are used in the code completion of URI-simple-names within the given namespace.");
  }

  @Override
  protected void createFieldEditors() {
    ListEditor listeditor = new ListEditor(TurtlePreferenceConstants.LABEL_PREFERENCE_KEY,"", getFieldEditorParent()) {
      @Override
      protected String[] parseString(String stringList) {
        String[] list = stringList.split("\n");
        Arrays.sort(list);
        return list;
View Full Code Here

        addField(new BooleanFieldEditor(CodeCompletionPreferencesInitializer.FORCE_PY3K_PRINT_ON_PY2,
                "Force print() function on Python 2.x projects?", p));
        addField(new LabelFieldEditor("LabelFieldEditor", "", p));

        addField(new ListEditor(CodeCompletionPreferencesInitializer.KEYWORDS_CODE_COMPLETION, "Tokens to use:", p) {

            @Override
            protected String createList(String[] items) {
                return KeywordsSimpleAssist.wordsAsString(items);
            }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.ListEditor

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.