blob: d5a34b3f2c6f7a198ce9cf356e68528f24a70fbe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.examples.ui.midi.adapters;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ICellModifier;
import org.eclipse.jface.viewers.TextCellEditor;
import org.eclipse.swt.widgets.Composite;
/**
* Provides cell editors and modifiers for sequencer controls.
*
* @since 1.0
*/
public class ControlEditor implements IElementEditor {
@Override
public CellEditor getCellEditor(IPresentationContext context, String columnId, Object element, Composite parent) {
return new TextCellEditor(parent);
}
@Override
public ICellModifier getCellModifier(IPresentationContext context, Object element) {
return new ControlCellModifier();
}
}
|