use of com.intellij.uiDesigner.componentTree.ComponentTreeBuilder in project intellij-community by JetBrains.
the class SelectAllComponentsAction method actionPerformed.
protected void actionPerformed(final GuiEditor editor, final List<RadComponent> selection, final AnActionEvent e) {
final ComponentTreeBuilder builder = DesignerToolWindowManager.getInstance(editor).getComponentTreeBuilder();
builder.beginUpdateSelection();
try {
FormEditingUtil.iterate(editor.getRootContainer(), new FormEditingUtil.ComponentVisitor() {
public boolean visit(final IComponent component) {
((RadComponent) component).setSelected(true);
return true;
}
});
} finally {
builder.endUpdateSelection();
}
}
Aggregations