Summary: | Text field does not refresh on failure | ||
---|---|---|---|
Product: | [Modeling] Sirius | Reporter: | Nicolas PERANSIN <nicolas.peransin> |
Component: | Properties | Assignee: | Project Inbox <sirius.properties-inbox> |
Status: | UNCONFIRMED --- | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | pierre-charles.david |
Version: | 6.3.4 | Keywords: | triaged |
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Whiteboard: |
Description
Nicolas PERANSIN
2020-09-22 06:16:02 EDT
amend on TransactionalEditingDomainContextAdapter full code is: ``` AtomicReference<Supplier<IStatus>> resultProvider = new AtomicReference<>(); ted.getCommandStack().execute(new RecordingCommand(ted) { @Override protected void doExecute() { InternalTransaction transaction = ((InternalTransactionalEditingDomain) ted) .getActiveTransaction(); resultProvider.set(() -> transaction.getStatus()); effect.run(); } }); return resultProvider.get() == null ? new Status(IStatus.ERROR, "org.eclipse.sirius.ui.properties", "Transaction fails for properties command") : resultProvider.get().get(); ``` |