1 11 package org.eclipse.debug.internal.ui.elements.adapters; 12 13 import org.eclipse.debug.internal.ui.viewers.provisional.AbstractColumnEditor; 14 import org.eclipse.debug.ui.IDebugUIConstants; 15 import org.eclipse.jface.viewers.CellEditor; 16 import org.eclipse.jface.viewers.ICellModifier; 17 import org.eclipse.jface.viewers.TextCellEditor; 18 import org.eclipse.swt.widgets.Composite; 19 20 25 public class VariableColumnEditor extends AbstractColumnEditor { 26 27 30 public final static String DEFAULT_VARIABLE_COLUMN_EDITOR = IDebugUIConstants.PLUGIN_ID + ".VARIALBE_COLUMN_EDITOR"; 32 private ICellModifier fCellModifier; 33 34 37 public CellEditor getCellEditor(String id, Object element, Composite parent) { 38 return new TextCellEditor(parent); 39 } 40 41 44 public ICellModifier getCellModifier() { 45 if (fCellModifier == null) { 46 fCellModifier = new DefaultVariableCellModifier(getPresentationContext()); 47 } 48 return fCellModifier; 49 } 50 51 54 public String getId() { 55 return DEFAULT_VARIABLE_COLUMN_EDITOR; 56 } 57 58 } 59 | Popular Tags |