Commit a60c9297 authored by Adrien's avatar Adrien Committed by GitHub

fix(bdm editor): expand all (#2543)

parent 069c2bc9
......@@ -62,6 +62,7 @@ import org.eclipse.core.databinding.observable.value.WritableValue;
import org.eclipse.core.databinding.validation.IValidator;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.jface.databinding.swt.typed.WidgetProperties;
......@@ -384,7 +385,16 @@ public class BusinessObjectList {
ToolItem expandItem = new ToolItem(toolBar, SWT.PUSH);
expandItem.setImage(Pics.getImage(PicsConstants.expandAll));
expandItem.setToolTipText(Messages.expandAll);
expandItem.addListener(SWT.Selection, e -> viewer.expandAll());
expandItem.addListener(SWT.Selection, e -> {
viewer.expandAll();
/**
* TODO https://bugs.eclipse.org/bugs/show_bug.cgi?id=567132 -> fixed in 4.18 (2020-12)
*/
if (Objects.equals(Platform.OS_MACOSX, Platform.getOS())) {
viewer.getControl().redraw();
}
});
ToolItem collapseItem = new ToolItem(toolBar, SWT.PUSH);
collapseItem.setImage(Pics.getImage(PicsConstants.collapseAll));
......
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