Examples of ListEditor


Examples of org.apache.mina.integration.beans.ListEditor

            }
        }
       
        if (type != null) {
            if (List.class.isAssignableFrom(attrType)) {
                return new ListEditor(getElementType(type, attrName));
            }
            if (Set.class.isAssignableFrom(attrType)) {
                return new SetEditor(getElementType(type, attrName));
            }
            if (Collection.class.isAssignableFrom(attrType)) {
View Full Code Here

Examples of org.apache.mina.integration.beans.ListEditor

                return PropertyEditorFactory.getInstance(String.class);
            }
        }

        if (List.class.isAssignableFrom(attrType)) {
            return new ListEditor(getElementType(type, attrName));
        }

        if (Set.class.isAssignableFrom(attrType)) {
            return new SetEditor(getElementType(type, attrName));
        }
View Full Code Here

Examples of org.apache.mina.integration.beans.ListEditor

                return PropertyEditorFactory.getInstance(String.class);
            }
        }

        if (List.class.isAssignableFrom(attrType)) {
            return new ListEditor(getElementType(type, attrName));
        }

        if (Set.class.isAssignableFrom(attrType)) {
            return new SetEditor(getElementType(type, attrName));
        }
View Full Code Here

Examples of org.apache.mina.integration.beans.ListEditor

            }
        }
       
        if (type != null) {
            if (List.class.isAssignableFrom(attrType)) {
                return new ListEditor(getElementType(type, attrName));
            }
            if (Set.class.isAssignableFrom(attrType)) {
                return new SetEditor(getElementType(type, attrName));
            }
            if (Collection.class.isAssignableFrom(attrType)) {
View Full Code Here

Examples of org.apache.mina.integration.beans.ListEditor

                return PropertyEditorFactory.getInstance(String.class);
            }
        }
       
        if (List.class.isAssignableFrom(attrType)) {
            return new ListEditor(getElementType(type, attrName));
        }
       
        if (Set.class.isAssignableFrom(attrType)) {
            return new SetEditor(getElementType(type, attrName));
        }
View Full Code Here

Examples of org.apache.mina.integration.beans.ListEditor

                return PropertyEditorFactory.getInstance(String.class);
            }
        }

        if (List.class.isAssignableFrom(attrType)) {
            return new ListEditor(getElementType(type, attrName));
        }

        if (Set.class.isAssignableFrom(attrType)) {
            return new SetEditor(getElementType(type, attrName));
        }
View Full Code Here

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

Examples of org.eclipse.jface.preference.ListEditor

    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

Examples of org.eclipse.jface.preference.ListEditor

    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

Examples of org.eclipse.jface.preference.ListEditor

    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
TOP
Copyright © 2018 www.massapi.com. 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.