1 11 package org.eclipse.debug.internal.ui.viewers; 12 13 import org.eclipse.jface.viewers.TreePath; 14 import org.eclipse.swt.graphics.Image; 15 16 17 21 class LabelResult extends LabelRequestMonitor implements ILabelResult { 22 23 public LabelResult(ModelNode node, AsynchronousModel model) { 24 super(node, model); 25 } 26 27 protected synchronized void scheduleViewerUpdate(long ms) { 28 notifyAll(); 29 } 30 31 public synchronized boolean isDone() { 32 return super.isDone(); 33 } 34 35 38 public Object getElement() { 39 return getNode().getElement(); 40 } 41 42 45 public Image[] getImages() { 46 return getModel().getViewer().getImages(getImageDescriptors()); 47 } 48 49 52 public String [] getLabels() { 53 return super.getLabels(); 54 } 55 56 59 public TreePath getTreePath() { 60 return getNode().getTreePath(); 61 } 62 63 66 public int getDepth() { 67 int level = 0; 68 ModelNode node = getNode().getParentNode(); 69 while (node != null) { 70 node = node.getParentNode(); 71 level++; 72 } 73 return level; 74 } 75 76 77 } 78 | Popular Tags |