commit | dbf7f9b195ed0d5f3e21ba221e74b7b98e0458f7 | [log] [tgz] |
---|---|---|
author | cbrand <cbrand> | Thu Apr 07 12:01:34 2011 +0000 |
committer | cbrand <cbrand> | Thu Apr 07 12:01:34 2011 +0000 |
tree | 70cbdea9a552b6f425899be9338e2129b941180c | |
parent | a9827098e35d4ad7018e205bf6ad96940794c8c1 [diff] |
.
diff --git a/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SketchTextProposalDirectEditingFeature.java b/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SketchTextProposalDirectEditingFeature.java index a338bd8..384c6b8 100644 --- a/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SketchTextProposalDirectEditingFeature.java +++ b/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SketchTextProposalDirectEditingFeature.java
@@ -46,8 +46,13 @@ if (proposalSupport == null) { proposalSupport = new IProposalSupport() { - public void setValue(IProposal value, IDirectEditingContext context) { - SketchUtil.setCurrentLabelValue(context.getPictogramElement(), value.getText()); + @Override + public void setValue(String value, IProposal proposal, IDirectEditingContext context) { + String text = value; + if (proposal != null && proposal.getText() != null) { + text = proposal.getText(); + } + SketchUtil.setCurrentLabelValue(context.getPictogramElement(), text); } @Override