1 11 package org.eclipse.ui.internal.progress; 12 13 import org.eclipse.swt.graphics.Image; 14 15 19 abstract class JobTreeElement implements Comparable { 20 21 25 abstract Object getParent(); 26 27 31 abstract boolean hasChildren(); 32 33 37 abstract Object [] getChildren(); 38 39 43 abstract String getDisplayString(); 44 45 51 String getDisplayString(boolean showProgress){ 52 return getDisplayString(); 53 } 54 55 59 public Image getDisplayImage() { 60 return null; 61 } 62 63 67 String getCondensedDisplayString() { 68 return getDisplayString(); 69 } 70 71 75 abstract boolean isJobInfo(); 76 77 80 public int compareTo(Object arg0) { 81 return getDisplayString().compareTo( 82 ((JobTreeElement) arg0).getDisplayString()); 83 } 84 85 89 abstract boolean isActive(); 90 91 95 public boolean isCancellable() { 96 return false; 97 } 98 99 102 public void cancel() { 103 } 105 } 106 | Popular Tags |