1 11 package org.eclipse.jdt.internal.debug.ui.variables; 12 13 import org.eclipse.debug.internal.ui.elements.adapters.VariableColumnPresentation; 14 import org.eclipse.jdt.debug.ui.IJavaDebugUIConstants; 15 16 20 public class JavaVariableColumnPresentation extends VariableColumnPresentation { 21 24 public final static String JAVA_VARIABLE_COLUMN_PRESENTATION = IJavaDebugUIConstants.PLUGIN_ID + ".VARIALBE_COLUMN_PRESENTATION"; 28 public final static String COLUMN_INSTANCE_ID = JAVA_VARIABLE_COLUMN_PRESENTATION + ".COL_INSTANCE_ID"; 30 33 private static String [] fgAllColumns = null; 34 35 38 public String [] getAvailableColumns() { 39 if (fgAllColumns == null) { 40 String [] basic = super.getAvailableColumns(); 41 fgAllColumns = new String [basic.length + 1]; 42 System.arraycopy(basic, 0, fgAllColumns, 0, basic.length); 43 fgAllColumns[basic.length] = COLUMN_INSTANCE_ID; 44 } 45 return fgAllColumns; 46 } 47 48 51 public String getHeader(String id) { 52 if (COLUMN_INSTANCE_ID.equals(id)) { 53 return VariableMessages.JavaVariableColumnPresentation_0; 54 } 55 return super.getHeader(id); 56 } 57 58 61 public String getId() { 62 return JAVA_VARIABLE_COLUMN_PRESENTATION; 63 } 64 65 66 } 67 | Popular Tags |