blob: c198a684623b9a0c02b13625fc2d30cf9e8049f0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 Matthew Hall and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Matthew Hall - initial API and implementation (bug 234496)
******************************************************************************/
package org.eclipse.jface.internal.databinding.viewers;
import org.eclipse.core.databinding.observable.value.ValueDiff;
import org.eclipse.core.databinding.property.INativePropertyListener;
import org.eclipse.core.databinding.property.ISimplePropertyListener;
import org.eclipse.core.databinding.property.value.SimpleValueProperty;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.swt.widgets.Control;
/**
* @since 3.3
*
*/
public class CellEditorControlProperty extends
SimpleValueProperty<CellEditor, Control> {
public Object getValueType() {
return Control.class;
}
protected Control doGetValue(CellEditor source) {
return source.getControl();
}
protected void doSetValue(CellEditor source, Control value) {
throw new UnsupportedOperationException();
}
public INativePropertyListener<CellEditor> adaptListener(
ISimplePropertyListener<ValueDiff<Control>> listener) {
return null;
}
public String toString() {
return super.toString();
}
}