Commit 88d60e0b authored by Simon Barner's avatar Simon Barner
Browse files

Make CheckBoxEditingSupport applicable for TreeViewers.

TODO: Rename package (see #3176)
refs 3176
parent 5368e65f
......@@ -21,7 +21,6 @@ import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.CheckboxCellEditor;
import org.eclipse.jface.viewers.ColumnViewer;
import org.eclipse.jface.viewers.EditingSupport;
import org.eclipse.jface.viewers.TableViewer;
/**
* {@link EditingSupport} for checkbox cells.
......@@ -29,19 +28,17 @@ import org.eclipse.jface.viewers.TableViewer;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 0E48EDEDD7575A54341D6BE6926F0792
* @ConQAT.Rating YELLOW Hash: 2EC9E3CC10AF755346867DAECA167352
*/
public abstract class CheckBoxEditingSupport extends EditingSupport {
/**
* Stores the shared cell editor.
*/
/** Stores the shared cell editor. */
private CellEditor cellEditor;
/** Constructor */
public CheckBoxEditingSupport(ColumnViewer viewer) {
super(viewer);
cellEditor = new CheckboxCellEditor(((TableViewer)viewer).getTable());
cellEditor = new CheckboxCellEditor(viewer.getControl().getParent());
}
/** {@inheritDoc} */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment