1 11 package org.eclipse.debug.internal.ui.model.elements; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.debug.internal.ui.elements.adapters.VariableColumnPresentation; 15 import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; 16 import org.eclipse.jface.resource.ImageDescriptor; 17 import org.eclipse.jface.viewers.TreePath; 18 19 22 public class RegisterGroupLabelProvider extends DebugElementLabelProvider { 23 24 27 protected ImageDescriptor getImageDescriptor(TreePath elementPath, IPresentationContext presentationContext, String columnId) throws CoreException { 28 if (columnId == null || VariableColumnPresentation.COLUMN_VARIABLE_NAME.equals(columnId)) { 29 return super.getImageDescriptor(elementPath, presentationContext, columnId); 30 } 31 return null; 32 } 33 34 37 protected String getLabel(TreePath elementPath, IPresentationContext context, String columnId) throws CoreException { 38 if (columnId == null || VariableColumnPresentation.COLUMN_VARIABLE_NAME.equals(columnId)) { 39 return super.getLabel(elementPath, context, columnId); 40 } else { 41 return ""; } 43 } 44 45 } 46 | Popular Tags |