boolean () { final LayoutTreeSelection selection = myArtifactEditor.getLayoutTreeComponent().getSelection(); if (selection.getElements().isEmpty() || myArtifactEditor.getLayoutTreeComponent().isEditing()) { return false; } for (PackagingElementNode<?> node : selection.getNodes()) { if (node.getParentNode() == null) { return false; } } return true; }