1 11 package org.eclipse.ui.model; 12 13 import org.eclipse.jface.resource.ImageDescriptor; 14 import org.eclipse.swt.graphics.FontData; 15 import org.eclipse.swt.graphics.RGB; 16 17 23 public abstract class WorkbenchAdapter implements IWorkbenchAdapter, 24 IWorkbenchAdapter2 { 25 28 protected static final Object [] NO_CHILDREN = new Object [0]; 29 30 34 public Object [] getChildren(Object object) { 35 return NO_CHILDREN; 36 } 37 38 42 public ImageDescriptor getImageDescriptor(Object object) { 43 return null; 44 } 45 46 51 public String getLabel(Object object) { 52 return object == null ? "" : object.toString(); } 54 55 59 public Object getParent(Object object) { 60 return null; 61 } 62 63 67 public RGB getBackground(Object element) { 68 return null; 69 } 70 71 75 public RGB getForeground(Object element) { 76 return null; 77 } 78 79 83 public FontData getFont(Object element) { 84 return null; 85 } 86 } 87 | Popular Tags |