return new PluginBasedPluginContextMenu(mTree, selectedPath[0], plugin, node.getActionMenus());
}
else {
PluginProxy proxy = PluginTreeModel.getPluginProxy(selectedPath[0]);
if (proxy != null) {
return new ProxyBasedPluginContextMenu(mTree, selectedPath[0], proxy, node.getActionMenus());
}
}
}
else if (node.getType() == Node.CUSTOM_NODE) {
return new CustomNodeContextMenu(mTree, selectedPath[0], node.getActionMenus());