Controller controller = Controller.getCurrentController();
FrameController frameController = (FrameController) controller.getViewController();
UIComponentVisibilityDispatcher.install(frameController, filterToolbar, "filter_toolbar_visible");
final JButton undoBtn = new JButton(controller.getAction("UndoFilterAction"));
final JButton redoBtn = new JButton(controller.getAction("RedoFilterAction"));
final JToggleButton showAncestorsBox = new JAutoToggleButton(controller.getAction("ShowAncestorsAction"),
showAncestors);
showAncestorsBox.setSelected(showAncestors.isSelected());
final JToggleButton showDescendantsBox = new JAutoToggleButton(controller.getAction("ShowDescendantsAction"),
showDescendants);
final JToggleButton applyToVisibleBox = new JAutoToggleButton(controller.getAction("ApplyToVisibleAction"),
applyToVisibleNodeOnly);
final JButton btnEdit = new JButton(controller.getAction("EditFilterAction"));
activeFilterConditionComboBox = new JComboBox(getFilterConditions());
final JButton applyBtn = new JButton(controller.getAction("ReapplyFilterAction"));
final JButton filterSelectedBtn = new JButton(controller.getAction("ApplySelectedViewConditionAction"));
final JButton noFilteringBtn = new JButton(controller.getAction("ApplyNoFilteringAction"));
final JButton applyFindPreviousBtn = new JButton(controller.getAction("QuickFindAction.BACK"));
final JButton applyFindNextBtn = new JButton(controller.getAction("QuickFindAction.FORWARD"));
final JButton applyQuickFilterBtn = new JButton(controller.getAction("QuickFilterAction"));
final JButton applyQuickSelectBtn = new JButton(controller.getAction("QuickFindAllAction"));
final JToggleButton applyQuickHighlightBtn = new JAutoToggleButton(controller.getAction("QuickHighlightAction"));
filterToolbar.addSeparator();
filterToolbar.add(undoBtn);
filterToolbar.add(redoBtn);
filterToolbar.add(showAncestorsBox);