Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
kernel
Commits
a70cf355
Commit
a70cf355
authored
Apr 15, 2016
by
Florian Hölzl
Browse files
bugfix sfit bug 7182: labels have additional image
parent
07bd08ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/PositionedEditPartBase.java
View file @
a70cf355
...
...
@@ -73,7 +73,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
CD1071857B9255A7644C2F83F6366AE1
* @ConQAT.Rating YELLOW Hash:
B7BB6E68977D1BA5C377B722B2D560CE
*/
public
abstract
class
PositionedEditPartBase
<
T
extends
ILayoutedModelElement
>
extends
GraphicalEditPartBase
<
T
>
implements
NodeEditPart
{
...
...
@@ -189,8 +189,10 @@ public abstract class PositionedEditPartBase<T extends ILayoutedModelElement> ex
if
(
labelFigure
!=
null
&&
labelFigure
.
getParent
()
!=
null
)
{
labelFigure
.
setText
(
determineLabelFigureText
());
labelFigure
.
setIcon
(
IModelElementHandlerService
.
INSTANCE
.
getModelElementHandler
(
getModel
()).
getIcon
(
getModel
()));
if
(
labelFigure
.
getIcon
()
!=
null
)
{
labelFigure
.
setIcon
(
IModelElementHandlerService
.
INSTANCE
.
getModelElementHandler
(
getModel
()).
getIcon
(
getModel
()));
}
Rectangle
labelBounds
=
determineLabelFigureBounds
();
labelFigure
.
setBounds
(
labelBounds
);
labelFigure
.
getParent
().
setConstraint
(
labelFigure
,
labelBounds
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment