use of org.eclipse.wst.xml.core.internal.document.DocumentImpl 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