use of org.eclipse.wst.xsd.ui.internal.common.commands.RemoveExtensionNodeCommand in project webtools.sourceediting by eclipse.
the class ExtensionsSection method getRemoveExtensionCommand.
protected Command getRemoveExtensionCommand(Object o) {
Command command = null;
try {
if (o instanceof Node) {
Node node = (Node) o;
ExtensibleRemoveExtensionNodeCommand removeCommand = getExtensionsSchemasRegistry().getRemoveExtensionNodeCommand(node.getNamespaceURI());
if (removeCommand != null) {
removeCommand.setInput((XSDConcreteComponent) input);
removeCommand.setNode(node);
return removeCommand;
} else {
command = new RemoveExtensionNodeCommand(Messages._UI_ACTION_DELETE_APPINFO_ELEMENT, node);
// command.execute();
}
}
} catch (Exception e) {
}
return command;
}
Aggregations