1 11 package org.eclipse.ui.internal.progress; 12 13 import org.eclipse.core.runtime.IAdaptable; 14 import org.eclipse.jface.resource.ImageDescriptor; 15 import org.eclipse.ui.model.IWorkbenchAdapter; 16 17 21 public class PendingUpdateAdapter implements IWorkbenchAdapter, IAdaptable { 22 23 boolean removed = false; 24 25 29 public boolean isRemoved() { 30 return removed; 31 } 32 33 37 public void setRemoved(boolean removedValue) { 38 this.removed = removedValue; 39 } 40 41 44 public PendingUpdateAdapter() { 45 } 47 48 51 public Object getAdapter(Class adapter) { 52 if (adapter == IWorkbenchAdapter.class) 53 return this; 54 return null; 55 } 56 57 60 public Object [] getChildren(Object o) { 61 return new Object [0]; 62 } 63 64 67 public ImageDescriptor getImageDescriptor(Object object) { 68 return null; 69 } 70 71 74 public String getLabel(Object o) { 75 return ProgressMessages.PendingUpdateAdapter_PendingLabel; 76 } 77 78 81 public Object getParent(Object o) { 82 return null; 83 } 84 } 85 | Popular Tags |