{
ITab tab = null;
menuTabs.clear();
if (nodeSelected)
{
tab = new AbstractTab(new Model("Info"))
{
public Panel getPanel(String panelId)
{
return new MenuInfoPanel(panelId, document,
getMenuDefinition());
}
};
menuTabs.add(tab);
tab = new AbstractTab(new Model("Options"))
{
public Panel getPanel(String panelId)
{
return new MenuOptionsPanel(panelId, document,
getMenuDefinition());
}
};
menuTabs.add(tab);
tab = new AbstractTab(new Model("Separator"))
{
public Panel getPanel(String panelId)
{
return new MenuSeparatorPanel(panelId, document,
getMenuDefinition());
}
};
menuTabs.add(tab);
tab = new AbstractTab(new Model("Includes"))
{
public Panel getPanel(String panelId)
{
return new MenuIncludesPanel(panelId, document,
getMenuDefinition());
}
};
menuTabs.add(tab);
tab = new AbstractTab(new Model("Excludes"))
{
public Panel getPanel(String panelId)
{
return new MenuExlcudesPanel(panelId, document,