} else { for (Iterator e = type.getSchema().getElementDeclarations().iterator(); e.hasNext(); ) { XSDElementDeclaration element = (XSDElementDeclaration) e.next();
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); }
} else { for (Iterator e = type.getSchema().getElementDeclarations().iterator(); e.hasNext();) { XSDElementDeclaration element = (XSDElementDeclaration) e.next();
} else { for (Iterator e = type.getSchema().getElementDeclarations().iterator(); e.hasNext();) { XSDElementDeclaration element = (XSDElementDeclaration) e.next();
for ( Iterator e = type.getSchema().getElementDeclarations().iterator(); e.hasNext(); ) { XSDElementDeclaration element = (XSDElementDeclaration) e.next(); if ( type.equals( element.getAnonymousTypeDefinition() ) ) {
public void run1() { if(fSelectedComponent == null){ return; } if(fSelectedComponent.getSchema() == null){ getSchema().updateElement(true); } MakeTypeGlobalProcessor processor = new MakeTypeGlobalProcessor(fSelectedComponent, getNewDefaultName()); RenameRefactoring refactoring = new RenameRefactoring(processor); try { RefactoringWizard wizard = new RenameRefactoringWizard( refactoring, RefactoringWizardMessages.RenameComponentWizard_defaultPageTitle, // TODO: provide correct strings RefactoringWizardMessages.RenameComponentWizard_inputPage_description, null); RefactoringWizardOpenOperation op= new RefactoringWizardOpenOperation(wizard); op.run(XSDEditorPlugin.getShell(), wizard.getDefaultPageTitle()); //triggerBuild(); } catch (InterruptedException e) { // do nothing. User action got cancelled } }