Package org.eclipse.mylyn.tasks.ui.editors

Examples of org.eclipse.mylyn.tasks.ui.editors.TaskEditorPartDescriptor


      }
    }

    TaskAttribute rootAttribute = getModel().getTaskData().getRoot();
   
    descriptors.add(new TaskEditorPartDescriptor(PlanningEditorPart.PART_ID) {
      @Override
      public AbstractTaskEditorPart createPart() {
        return new PlanningEditorPart();
      }
    }.setPath(PATH_ATTRIBUTES));

    if (rootAttribute.getAttribute(RedmineAttribute.TIME_ENTRY_TOTAL.getTaskKey())!=null) {
      descriptors.add(new TaskEditorPartDescriptor(TimeEntryEditorPart.PART_ID) {
        @Override
        public AbstractTaskEditorPart createPart() {
          return new TimeEntryEditorPart();
        }
      }.setPath(PATH_COMMENTS));
    }

    if (!getModel().getTask().isCompleted() && rootAttribute.getAttribute(RedmineAttribute.TIME_ENTRY_HOURS.getTaskKey())!=null) {
      descriptors.add(new TaskEditorPartDescriptor(NewTimeEntryEditorPart.PART_ID) {
        @Override
        public AbstractTaskEditorPart createPart() {
          return new NewTimeEntryEditorPart();
        }
      }.setPath(PATH_COMMENTS));
    }
   
    descriptors.add(new TaskEditorPartDescriptor(RedminePeoplePart.PART_ID) {
      @Override
      public AbstractTaskEditorPart createPart() {
        return new RedminePeoplePart();
      }
    }.setPath(PATH_ACTIONS));
View Full Code Here


  @Override
  protected Set<TaskEditorPartDescriptor> createPartDescriptors() {
    Set<TaskEditorPartDescriptor> partDescriptors = super.createPartDescriptors();
    Iterator<TaskEditorPartDescriptor> descriptorIt = partDescriptors.iterator();
    while (descriptorIt.hasNext()) {
      TaskEditorPartDescriptor partDescriptor = descriptorIt.next();
      if (partDescriptor.getId().equals(ID_PART_ATTRIBUTES)) {
        descriptorIt.remove();
      } else if (partDescriptor.getId().equals(ID_PART_COMMENTS)) {
        // currently the API doesn't support reading existing comments,
        // though it does allow for creating them.  Silly really.
        // see http://support.github.com/discussions/feature-requests/696-issues-api-improvement
        descriptorIt.remove();
      }
View Full Code Here

TOP

Related Classes of org.eclipse.mylyn.tasks.ui.editors.TaskEditorPartDescriptor

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.