public ContainerTreePanelMenuBar(int modIdx, TreePanel treePanel) {
super(modIdx, treePanel);
DcMenu menuView = ComponentFactory.getMenu(DcResources.getText("lblView"));
DcMenuItem menuViewFlat = ComponentFactory.getMenuItem(DcResources.getText("lblFlatView"));
DcMenuItem menuViewHierarchy = ComponentFactory.getMenuItem(DcResources.getText("lblHierarchicalView"));
DcMenuItem menuViewContainers = ComponentFactory.getMenuItem(DcResources.getText("lblViewContainers"));
DcMenuItem menuViewItems = ComponentFactory.getMenuItem(DcResources.getText("lblViewItems"));
menuView.add(menuViewFlat);
menuView.add(menuViewHierarchy);
menuView.addSeparator();
menuView.add(menuViewContainers);
menuView.add(menuViewItems);
menuViewFlat.setActionCommand("flatView");
menuViewHierarchy.setActionCommand("hierView");
menuViewContainers.setActionCommand("viewContainers");
menuViewItems.setActionCommand("viewItems");
menuViewFlat.addActionListener(this);
menuViewHierarchy.addActionListener(this);
menuViewContainers.addActionListener(this);
menuViewItems.addActionListener(this);
add(menuView);
}