Commit 4efda936 authored by Adrien's avatar Adrien Committed by GitHub
Browse files

fix(actor): edit name column when adding an actor (#2517)

* Currently, after clicking on "Add" on the actor property section, we
try to edit the column 0 -> it is the column for the initiator icon ->
nothing happens -> the correct column to edit is the column 1, the name
column.
parent edcb0ca3
...@@ -307,11 +307,11 @@ public class ProcessActorsPropertySection extends AbstractBonitaDescriptionSecti ...@@ -307,11 +307,11 @@ public class ProcessActorsPropertySection extends AbstractBonitaDescriptionSecti
getEditingDomain().getCommandStack().execute( getEditingDomain().getCommandStack().execute(
AddCommand.create(getEditingDomain(), process, ProcessPackage.Literals.ABSTRACT_PROCESS__ACTORS, actor)); AddCommand.create(getEditingDomain(), process, ProcessPackage.Literals.ABSTRACT_PROCESS__ACTORS, actor));
refresh(); refresh();
actorsViewer.editElement(actor, 0); actorsViewer.editElement(actor, 1);
} }
private String generateActorName(final AbstractProcess process) { private String generateActorName(final AbstractProcess process) {
final Set<String> actorsName = new HashSet<String>(); final Set<String> actorsName = new HashSet<>();
for (final Actor a : process.getActors()) { for (final Actor a : process.getActors()) {
actorsName.add(a.getName()); actorsName.add(a.getName());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment