Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
af3
kernel
Commits
02d747d5
Commit
02d747d5
authored
7 years ago
by
Florian Hölzl
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix of data state variable initial value with structure type.
refs 2953
parent
bab72ab4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/databinding/AbstractDecoratedTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport.java
+7
-1
7 additions, 1 deletion
...TextStyledTextActionHandlerDatabindingEditingSupport.java
with
7 additions
and
1 deletion
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/databinding/AbstractDecoratedTextCellWithTextStyledTextActionHandlerDatabindingEditingSupport.java
+
7
−
1
View file @
02d747d5
...
...
@@ -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
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment