1 11 package org.eclipse.ui.views.markers.internal; 12 13 import org.eclipse.core.resources.IMarker; 14 15 22 public class TaskMarker extends ConcreteMarker { 23 24 private int priority; 25 26 private int done; 27 28 31 public TaskMarker(IMarker toCopy) { 32 super(toCopy); 33 } 34 35 public void refresh() { 36 super.refresh(); 37 priority = getMarker().getAttribute(IMarker.PRIORITY, 38 IMarker.PRIORITY_NORMAL); 39 done = -1; 40 if (getMarker().getAttribute(IMarker.USER_EDITABLE, true)) { 41 done = 0; 42 if (getMarker().getAttribute(IMarker.DONE, false)) { 43 done = 1; 44 } 45 } 46 } 47 48 public int getPriority() { 49 return priority; 50 } 51 52 public int getDone() { 53 return done; 54 } 55 } 56 | Popular Tags |