blob: 69825b11d13ef806d054e051aa2bc1b93566255a [file] [log] [blame]
/**
* Copyright (c) 2009-2010 Thales Corporate Services S.A.S.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Thales Corporate Services S.A.S - initial API and implementation
*/
package org.eclipse.egf.pattern.ui.trace;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TextCellEditor;
/**
* @author Thomas Guiu
*
*/
public class StringEditingSupport extends AbstractStringEditingSupport {
private final TextCellEditor cellEditor;
public StringEditingSupport(TableViewer viewer, Class candidate, String propertyName) {
super(viewer, candidate, propertyName);
cellEditor = new TextCellEditor(viewer.getTable());
}
@Override
protected CellEditor getCellEditor(Object element) {
return cellEditor;
}
}