PDA

View Full Version : How to remove a ToolSeperator from StartMenu



egotec
28 Jul 2010, 2:46 AM
Hello, again,

is there a way to remove a (or all) toolSeperators from a StartMenu?

I think it's the same way as to remove a tool item:

ComponentHelper.doDetach(tool);
if (!tool.isRendered()) {
tool.render(desktop.getStartMenu().getElement());
}
tool.el().getParent().remove();
tool.removeFromParent();

But, I have no reference to the seperator item, because
menu.addToolSeperator() returns "void".

Any ideas?

Thanks.
Jonas gehring