ActionGroup () { final DefaultActionGroup group = new DefaultActionGroup(); for (ComplexPackagingElementType<?> type : PackagingElementFactory.getInstance().getComplexElementTypes()) { group.add(new ToggleShowElementContentAction(type, this)); } return group; }