Package com.projity.pm.task

Examples of com.projity.pm.task.Task


      return;
    }
    final Node node=(Node)nodes.get(0);
    Object impl=node.getImpl();
    if (impl instanceof Task||(impl instanceof Assignment&&taskType)){
      Task task=(Task)((impl instanceof Assignment)?(((Assignment)impl).getTask()):impl);
      if (taskInformationDialog == null) {
        taskInformationDialog = TaskInformationDialog.getInstance(getFrame(),task, notes);
        taskInformationDialog.pack();
        taskInformationDialog.setModal(false);
      } else {
View Full Code Here


  public boolean isSubproject() {
    return false;
  }

  public boolean isJustModified(){
    Task task=getTask();
    if (task==null) return false;
    else return task.isJustModified();
  }
View Full Code Here

  }
  public void setDirty(boolean dirty) {
    //System.out.println("Assignment _setDirty("+dirty+"): "+getName());
    this.dirty = dirty;
    if (dirty){
      Task task=getTask();
      if (task!=null) task.setDirty(true);
    }
  }
View Full Code Here

    if (actualExceptionsCalendar != null)
      return actualExceptionsCalendar;
    if (baselineCalendar != null)
      return baselineCalendar;
    Resource resource = getResource();
    Task task = getTask();
    if (((NormalTask)task).isIgnoreResourceCalendar() || isInvalidIntersectionCalendar() || resource.getEffectiveWorkCalendar() == null)
      return task.getEffectiveWorkCalendar();
    // if no task calendar, or calendar is invalid due to empty intersection of task and resource calendars
    if (task.getWorkCalendar() == null)
      return resource.getEffectiveWorkCalendar();
   
    if (intersectionCalendar == null) {
      try {
        intersectionCalendar = ((WorkingCalendar)task.getEffectiveWorkCalendar()).intersectWith((WorkingCalendar)resource.getEffectiveWorkCalendar());
      } catch (InvalidCalendarIntersectionException e) {
        intersectionCalendar = WorkingCalendar.INVALID_INTERSECTION_CALENDAR;
        Alert.error(Messages.getString("Message.invalidIntersection"));
        return task.getEffectiveWorkCalendar();
      }
    }
    return intersectionCalendar;
    // need to use intersection work calendar
  }
View Full Code Here

   
  }
 
 
  public boolean isJustModified(){
    Task task=getTask();
    if (task==null) return false;
    else return task.isJustModified();
  }
View Full Code Here

   * @param taskList
   */
  public void setAssignmentsFromTaskList(List taskList) {
    assignments = null;
    Iterator t = taskList.iterator();
    Task task;
    Object current;
    while (t.hasNext()) {
      current = t.next();
      if (!(current instanceof Task))
        continue;
View Full Code Here

    }

    private boolean isAllowedAction(Node node,boolean isParent){
    if (node!=null && (node.getImpl() instanceof Task)){
      boolean r=true;
      Task t=(Task)node.getImpl();
      if (t instanceof SubProj){
        Project p=isParent?((SubProj)t).getSubproject():t.getOwningProject();
        if (p!=null&&p.isReadOnly()) r=false;
      }
      else r=!t.isReadOnly();
      if (!r){
        Alert.error(MessageFormat.format(Messages.getString("Message.readOnlyTask"),new Object[]{t.getName()}));
      }
      return r;
    }
    return true;
    }
View Full Code Here

    };

    private void markAncestorsOfDirtyTasksDirty(Project project) {
      for(Object otask:project.getTasks()) {
        Task task = (Task)otask;
        if(task.isDirty()) {
          Task parent = task.getWbsParentTask();
          while(parent != null && !parent.isDirty()) {
            parent.setDirty(true);
            parent = parent.getWbsParentTask();
          }

        }
      }
    }
View Full Code Here

                  if (flatLinks==null)
                    linkData.setSuccessor(taskData);
                  else
                    linkData.setSuccessorId(taskData.getUniqueId());

                  Task pred=(Task)dependency.getPredecessor();
                  TaskData predData=(TaskData)taskLinker.getTransformationMap().get(pred);

                  if (flatLinks==null){
                    if (predData != null && !predData.isExternal())
                      linkData.setPredecessor(predData);
                    else {
                      linkData.setPredecessorId(pred.getUniqueId()); // external link
                    }
                    predecessors.add(linkData);
                  } else {
                    linkData.setPredecessorId(pred.getUniqueId());
                    flatLinks.add(linkData);

                  }
              }
              if (flatLinks==null)
View Full Code Here

      }
      //remove dist
      if (incrementalDistributions&&distMap.size()>0){
          Set<Long> noChangeTaskIds=new HashSet<Long>();

      Task task;
      for(Iterator i = project.getTaskOutlineIterator();i.hasNext();) {
        task = (Task)i.next();
        if(incremental&&!task.isDirty()) noChangeTaskIds.add(task.getUniqueId());
      }
//          for (Iterator i=projectData.getTasks().iterator();i.hasNext();){
//            TaskData task=(TaskData)i.next();
//            if (!task.isDirty()) noChangeTaskIds.add(task.getUniqueId());
//          }
View Full Code Here

TOP

Related Classes of com.projity.pm.task.Task

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.