1 11 package org.eclipse.ui.internal.progress; 12 13 17 class SubTaskInfo extends JobTreeElement { 18 19 protected String taskName; 20 21 JobInfo jobInfo; 22 23 28 SubTaskInfo(JobInfo parentJob, String name) { 29 taskName = name; 30 jobInfo = parentJob; 31 } 32 33 36 Object [] getChildren() { 37 return ProgressManagerUtil.EMPTY_OBJECT_ARRAY; 38 } 39 40 43 String getDisplayString() { 44 if (taskName == null) { 45 return ProgressMessages.SubTaskInfo_UndefinedTaskName; 46 } 47 return taskName; 48 } 49 50 53 boolean hasChildren() { 54 return false; 55 } 56 57 61 void setTaskName(String name) { 62 this.taskName = name; 63 } 64 65 68 String getTaskName() { 69 return taskName; 70 } 71 72 75 Object getParent() { 76 return jobInfo; 77 } 78 79 82 boolean isJobInfo() { 83 return false; 84 } 85 86 89 boolean isActive() { 90 return jobInfo.isActive(); 91 } 92 } 93 | Popular Tags |