1 /*******************************************************************************2 * Copyright (c) 2006 IBM Corporation and others.3 * All rights reserved. This program and the accompanying materials4 * are made available under the terms of the Eclipse Public License v1.05 * which accompanies this distribution, and is available at6 * http://www.eclipse.org/legal/epl-v10.html7 *8 * Contributors:9 * IBM Corporation - initial API and implementation10 *******************************************************************************/11 package org.eclipse.debug.internal.ui.model.elements;12 13 import org.eclipse.debug.internal.ui.elements.adapters.DefaultVariableCellModifier;14 import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor;15 import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;16 import org.eclipse.jface.viewers.CellEditor;17 import org.eclipse.jface.viewers.ICellModifier;18 import org.eclipse.jface.viewers.TextCellEditor;19 import org.eclipse.swt.widgets.Composite;20 21 /**22 * @since 3.323 */24 public class VariableEditor implements IElementEditor {25 26 /* (non-Javadoc)27 * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor#getCellEditor(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String, java.lang.Object, org.eclipse.swt.widgets.Composite)28 */29 public CellEditor getCellEditor(IPresentationContext context, String columnId, Object element, Composite parent) {30 return new TextCellEditor(parent);31 }32 33 /* (non-Javadoc)34 * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor#getCellModifier(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)35 */36 public ICellModifier getCellModifier(IPresentationContext context, Object element) {37 return new DefaultVariableCellModifier();38 }39 40 }41