1 11 package org.eclipse.update.internal.ui; 12 13 import org.eclipse.jface.resource.*; 14 import org.eclipse.swt.graphics.*; 15 import org.eclipse.update.configuration.*; 16 import org.eclipse.update.internal.ui.parts.*; 17 18 21 22 public class UpdateLabelProvider extends SharedLabelProvider { 23 26 public UpdateLabelProvider() { 27 } 28 29 public String getText(Object obj) { 30 return super.getText(obj); 31 } 32 33 public Image getImage(Object obj) { 34 return super.getImage(obj); 35 } 36 37 public ImageDescriptor getLocalSiteDescriptor(IConfiguredSite csite) { 38 if (csite.isProductSite()) 39 return UpdateUIImages.DESC_PSITE_OBJ; 40 if (csite.isExtensionSite()) 41 return UpdateUIImages.DESC_ESITE_OBJ; 42 return UpdateUIImages.DESC_LSITE_OBJ; 43 } 44 45 public Image getLocalSiteImage(IConfiguredSite csite) { 46 ImageDescriptor desc = getLocalSiteDescriptor(csite); 47 return get(desc); 48 } 49 } 50 | Popular Tags |