Package net.sf.redmine_mylyn.internal.ui.editor

Examples of net.sf.redmine_mylyn.internal.ui.editor.RedminePersonEditor


    if (attribute!=null && (editor = createAttributeEditor(attribute))!=null && editor instanceof RedmineWatchersEditor ) {
     
      attribute = attribute.getAttribute(RedmineAttribute.WATCHERS_ADD.getTaskKey());
      if (attribute != null) {
       
        RedminePersonEditor personEditor = new RedminePersonEditor(getModel(), attribute) {
          @Override
          public void setValue(String value) {
            value = RedmineUtil.findUserLogin(value);
            if(value!=null && !value.isEmpty()) {
              IRepositoryPerson person = getModel().getTaskRepository().createPerson(value);
              watchersEditor.addWatcher(person);
              text.setText("");
            }
          };
         
          @Override
          public String getValue() {
            return "";
          };
         
        };
       
        personEditor.createLabelControl(composite, toolkit);
        personEditor.createControl(composite, toolkit);
        personEditor.setDecorationEnabled(false);
        layoutHelper.setLayoutData(personEditor);
        getTaskEditorPage().getAttributeEditorToolkit().adapt(personEditor);
      }

View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.internal.ui.editor.RedminePersonEditor

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.