1 11 package org.eclipse.ui.progress; 12 13 import org.eclipse.core.runtime.IAdaptable; 14 import org.eclipse.jface.resource.ImageDescriptor; 15 import org.eclipse.ui.internal.progress.ProgressMessages; 16 import org.eclipse.ui.model.IWorkbenchAdapter; 17 18 24 public class PendingUpdateAdapter implements IWorkbenchAdapter, IAdaptable { 25 26 private boolean removed = false; 27 28 32 protected boolean isRemoved() { 33 return removed; 34 } 35 36 40 protected void setRemoved(boolean removedValue) { 41 this.removed = removedValue; 42 } 43 44 47 public PendingUpdateAdapter() { 48 } 50 51 54 public Object getAdapter(Class adapter) { 55 if (adapter == IWorkbenchAdapter.class) { 56 return this; 57 } 58 return null; 59 } 60 61 64 public Object [] getChildren(Object o) { 65 return new Object [0]; 66 } 67 68 71 public ImageDescriptor getImageDescriptor(Object object) { 72 return null; 73 } 74 75 78 public String getLabel(Object o) { 79 return ProgressMessages.PendingUpdateAdapter_PendingLabel; 80 } 81 82 85 public Object getParent(Object o) { 86 return null; 87 } 88 } 89 | Popular Tags |