Skip to content
Snippets Groups Projects
Commit 02d747d5 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

Bugfix of data state variable initial value with structure type.

refs 2953
parent bab72ab4
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ColumnViewer;
import org.eclipse.jface.viewers.ViewerCell;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Control;
import org.fortiss.tooling.kernel.ui.extension.base.EditorBase;
import org.fortiss.tooling.kernel.ui.util.DataBindingUtils;
......@@ -71,7 +72,7 @@ public abstract class AbstractDecoratedTextCellWithTextStyledTextActionHandlerDa
@Override
protected Binding[] createBinding(CellEditor cellEditor, ViewerCell cell, CellEditor editor,
DataBindingContext context) {
return performCellTextBinding(dbc, cellEditor.getControl(),
return performCellTextBinding(dbc, getText(cellEditor),
getModelObservableValue(cell.getElement()), getModelToTextConverter(),
getTextToModelConverter(), getTextValidator(cell.getElement()));
}
......@@ -102,4 +103,9 @@ public abstract class AbstractDecoratedTextCellWithTextStyledTextActionHandlerDa
protected IValidator getTextValidator(Object object) {
return null;
}
/** Returns the {@link Control} to be used for data binding. Sub-classes may override. */
protected Control getText(CellEditor cellEditor) {
return cellEditor.getControl();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment