[DSL generator] Avoid injecting the state pattern in label if already present in stateDescription metadata (#4730)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>pull/4746/head
parent
9741434f61
commit
2a4b0735fc
|
@ -185,6 +185,10 @@ public class DslItemFileConverter extends AbstractItemFileGenerator {
|
||||||
if (!(statePattern != null && binding.getProperties().size() == 1
|
if (!(statePattern != null && binding.getProperties().size() == 1
|
||||||
&& (patternInjected || statePattern.equals(defaultPattern)))) {
|
&& (patternInjected || statePattern.equals(defaultPattern)))) {
|
||||||
model.getBindings().add(binding);
|
model.getBindings().add(binding);
|
||||||
|
// Avoid injecting the state pattern in label if already present in stateDescription metadata
|
||||||
|
if (patternInjected && statePattern != null) {
|
||||||
|
model.setLabel(label);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue