private void doDelete(
XScriptContext ctxt, DefaultMutableTreeNode node)
{
Object obj = node.getUserObject();
XInvocation inv =
(XInvocation)UnoRuntime.queryInterface(
XInvocation.class, obj);
Object[] args = new Object[] { ctxt };
try {
Object result = inv.invoke("Deletable", args,
new short[1][0], new Object[1][0]);
if (result != null && AnyConverter.toBoolean(result) == true)
{
selectorPanel.removeNode(node);