use of org.eclipse.wst.xsd.ui.internal.refactor.structure.MakeAnonymousTypeGlobalCommand in project webtools.sourceediting by eclipse.
the class MakeAnonymousTypeGobalHandler method run.
public void run(ISelection selection, XSDSchema schema, XSDTypeDefinition selectedComponent) {
if (selectedComponent == null) {
return;
}
if (selectedComponent.getSchema() == null) {
schema.updateElement(true);
}
DocumentImpl doc = (DocumentImpl) selectedComponent.getElement().getOwnerDocument();
doc.getModel().beginRecording(this, RefactoringWizardMessages.MakeAnonymousTypeGlobalAction_text);
MakeAnonymousTypeGlobalCommand command = new MakeAnonymousTypeGlobalCommand(selectedComponent, getNewDefaultName());
command.run();
doc.getModel().endRecording(this);
}
use of org.eclipse.wst.xsd.ui.internal.refactor.structure.MakeAnonymousTypeGlobalCommand in project webtools.sourceediting by eclipse.
the class MakeAnonymousTypeGlobalAction method run.
public void run() {
if (fSelectedComponent == null) {
return;
}
if (fSelectedComponent.getSchema() == null) {
getSchema().updateElement(true);
}
DocumentImpl doc = (DocumentImpl) fSelectedComponent.getElement().getOwnerDocument();
doc.getModel().beginRecording(this, RefactoringWizardMessages.MakeAnonymousTypeGlobalAction_text);
MakeAnonymousTypeGlobalCommand command = new MakeAnonymousTypeGlobalCommand(fSelectedComponent, getNewDefaultName());
command.run();
doc.getModel().endRecording(this);
}
Aggregations