Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
522cb19f
Commit
522cb19f
authored
Jul 17, 2012
by
Christoph Döbber
Browse files
fixed OPLabels
refs 903
parent
fbcad26e
Changes
1
Show whitespace changes
Inline
Side-by-side
org.fortiss.af3.operatorpanel.ui/trunk/src/org/fortiss/af3/operatorpanel/ui/simulator/views/OPVCLabel.java
View file @
522cb19f
...
@@ -18,6 +18,8 @@ $Id$
...
@@ -18,6 +18,8 @@ $Id$
package
org.fortiss.af3.operatorpanel.ui.simulator.views
;
package
org.fortiss.af3.operatorpanel.ui.simulator.views
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.layout.GridData
;
import
org.eclipse.swt.layout.GridLayout
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Label
;
import
org.eclipse.swt.widgets.Label
;
import
org.fortiss.af3.operatorpanel.model.OPLabel
;
import
org.fortiss.af3.operatorpanel.model.OPLabel
;
...
@@ -29,9 +31,9 @@ import org.fortiss.af3.operatorpanel.model.OPLabel;
...
@@ -29,9 +31,9 @@ import org.fortiss.af3.operatorpanel.model.OPLabel;
* @author hoelzl
* @author hoelzl
* @author $Author$
* @author $Author$
* @version $Rev$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash:
1E398D4044F7DF9B5697E7EA45DFD299
* @ConQAT.Rating
YELLOW
Hash:
67D2B3CD583B6847452ABBC98007B202
*/
*/
/* package */
class
OPVCLabel
extends
OPViewControlBase
<
OPLabel
,
Label
>
{
/* package */
class
OPVCLabel
extends
OPViewControlBase
<
OPLabel
,
Composite
>
{
/** Constructor. */
/** Constructor. */
public
OPVCLabel
(
OPLabel
item
,
Composite
parent
)
{
public
OPVCLabel
(
OPLabel
item
,
Composite
parent
)
{
...
@@ -40,9 +42,13 @@ import org.fortiss.af3.operatorpanel.model.OPLabel;
...
@@ -40,9 +42,13 @@ import org.fortiss.af3.operatorpanel.model.OPLabel;
/** {@inheritDoc} */
/** {@inheritDoc} */
@Override
@Override
protected
Label
createControl
(
Composite
parent
)
{
protected
Composite
createControl
(
Composite
parent
)
{
Label
label
=
new
Label
(
parent
,
SWT
.
NONE
);
Composite
container
=
new
Composite
(
parent
,
SWT
.
NO_BACKGROUND
);
container
.
setLayout
(
new
GridLayout
(
1
,
false
));
Label
label
=
new
Label
(
container
,
SWT
.
NONE
);
label
.
setText
(
modelItem
.
getComment
());
label
.
setText
(
modelItem
.
getComment
());
return
label
;
label
.
setAlignment
(
SWT
.
CENTER
);
label
.
setLayoutData
(
new
GridData
(
SWT
.
CENTER
,
SWT
.
CENTER
,
true
,
true
,
1
,
1
));
return
container
;
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment