String msg = itemBrowser.getPluginResourceCollection().getRequiredString(item instanceof Model ? "msg.removemodel" : "msg.removeitem");
int response = JMsgBox.showFormat(null, msg, item.getQualifier(), JMsgBox.TYPE_YESNO);
if (response == JMsgBox.TYPE_YES)
{
VetoableEvent ve = new VetoableEvent(itemBrowser, "standard.file.askdelete", item.getQualifier());
itemBrowser.fireEvent(ve);
if (! ve.isVetoed())
{
// Select something different than the current node
itemBrowser.performAlternativeSelection();
ModelConnector modelConnector = ModelConnector.getInstance();