/** @param hierarchyName */ public void removeHierarchy(String hierarchyName) { Hierarchy hierarchy = model.getCube().getHierarchies().get(hierarchyName); ChangeSlicer transform = model.getTransform(ChangeSlicer.class); transform.setSlicer(hierarchy, null); configureFilter(); }
public void apply() { List<Member> members = null; if (selection != null) { members = new ArrayList<Member>(selection.length); for (TreeNode node : selection) { MemberNode memberNode = (MemberNode) node; members.add(memberNode.getObject()); } } ChangeSlicer transform = model.getTransform(ChangeSlicer.class); transform.setSlicer(getHierarchy(), members); }