@Override public String toString() { return getName(); } }
@Override public String toString() { return getName(); } }
public ChangeExceptionHandler(Shell parent, Refactoring refactoring) { fParent= parent; fName= refactoring.getName(); }
public ChangeExceptionHandler(Shell parent, Refactoring refactoring) { fParent= parent; fName= refactoring.getName(); }
public String toString() { return getName(); } }
public ChangeExceptionHandler(Shell parent, Refactoring refactoring) { fParent= parent; fName= refactoring.getName(); }
public ChangeExceptionHandler(Shell parent, Refactoring refactoring) { fParent= parent; fName= refactoring.getName(); }
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
@Override protected void addUserInputPages() { setDefaultPageTitle(getRefactoring().getName()); addPage(new GeneralRenameIDWizardPage(PDEUIMessages.RenameExtensionPointWizard_pageTitle, fInfo) { @Override protected String validateId(String id) { String schemaVersion = fInfo.getBase().getPluginBase().getSchemaVersion(); if (schemaVersion == null || Float.parseFloat(schemaVersion) >= 3.2) { if (!IdUtil.isValidCompositeID(id)) return PDEUIMessages.BaseExtensionPointMainPage_invalidCompositeID; } else if (!IdUtil.isValidSimpleID(id)) return PDEUIMessages.BaseExtensionPointMainPage_invalidSimpleID; return null; } }); }
@Override protected void addUserInputPages() { setDefaultPageTitle(getRefactoring().getName()); addPage(new RenamePluginWizardPage(fInfo)); }
@Override protected void addUserInputPages() { setDefaultPageTitle(getRefactoring().getName()); page1 = new ExternalizeStringsWizardPage(fModelChangeTable); addPage(page1); } }
@Override protected void addUserInputPages() { setDefaultPageTitle(getRefactoring().getName()); // Collect any custom build projects and warn the user Set<IProject> customProjects = getProjectsWithCustomBuild(((PDERefactor) getRefactoring()).getProcessor().getElements()); fMainPage = new OrganizeManifestsWizardPage(customProjects); addPage(fMainPage); }
/** * {@inheritDoc} */ public void run(IProgressMonitor monitor) throws CoreException { if (monitor == null) monitor= new NullProgressMonitor(); monitor.beginTask("", 10); //$NON-NLS-1$ final CreateChangeOperation create= new CreateChangeOperation(new CheckConditionsOperation(fRefactoring, fStyle), RefactoringStatus.FATAL); create.run(new SubProgressMonitor(monitor, 6)); fPreconditionStatus= create.getConditionCheckingStatus(); if (fPreconditionStatus.hasFatalError()) { monitor.done(); return; } final Change change= create.getChange(); if (change != null) { final PerformChangeOperation perform= new PerformChangeOperation(change); perform.setUndoManager(RefactoringCore.getUndoManager(), fRefactoring.getName()); perform.run(new SubProgressMonitor(monitor, 2)); fValidationStatus= perform.getValidationStatus(); fUndo= perform.getUndoChange(); } } }
@Override public void run(IProgressMonitor monitor) throws CoreException { try { if (monitor == null) monitor= new NullProgressMonitor(); monitor.beginTask("", 10); //$NON-NLS-1$ final CreateChangeOperation create= new CreateChangeOperation(new CheckConditionsOperation(fRefactoring, fStyle), RefactoringStatus.FATAL); create.run(new SubProgressMonitor(monitor, 6)); fPreconditionStatus= create.getConditionCheckingStatus(); if (fPreconditionStatus.hasFatalError()) { monitor.done(); return; } final Change change= create.getChange(); if (change != null) { final PerformChangeOperation perform= new PerformChangeOperation(change); perform.setUndoManager(RefactoringCore.getUndoManager(), fRefactoring.getName()); perform.run(new SubProgressMonitor(monitor, 2)); fValidationStatus= perform.getValidationStatus(); fUndo= perform.getUndoChange(); } } finally { if (fRefactoringContext != null) fRefactoringContext.dispose(); } } }
@Override public void run(IProgressMonitor monitor) throws CoreException { try { if (monitor == null) monitor= new NullProgressMonitor(); monitor.beginTask("", 10); //$NON-NLS-1$ final CreateChangeOperation create= new CreateChangeOperation(new CheckConditionsOperation(fRefactoring, fStyle), RefactoringStatus.FATAL); create.run(new SubProgressMonitor(monitor, 6)); fPreconditionStatus= create.getConditionCheckingStatus(); if (fPreconditionStatus.hasFatalError()) { monitor.done(); return; } final Change change= create.getChange(); if (change != null) { final PerformChangeOperation perform= new PerformChangeOperation(change); perform.setUndoManager(RefactoringCore.getUndoManager(), fRefactoring.getName()); perform.run(new SubProgressMonitor(monitor, 2)); fValidationStatus= perform.getValidationStatus(); fUndo= perform.getUndoChange(); } } finally { if (fRefactoringContext != null) fRefactoringContext.dispose(); } } }
fPerformChangeOperation.setUndoManager(RefactoringCore.getUndoManager(), fRefactoring.getName()); if (fRefactoring instanceof IScheduledRefactoring) fPerformChangeOperation.setSchedulingRule(((IScheduledRefactoring)fRefactoring).getSchedulingRule());
fPerformChangeOperation.setUndoManager(RefactoringCore.getUndoManager(), fRefactoring.getName()); if (fRefactoring instanceof IScheduledRefactoring) fPerformChangeOperation.setSchedulingRule(((IScheduledRefactoring)fRefactoring).getSchedulingRule());
int height= 400; String settingsSectionId= DIALOG_SETTINGS + '.'+ wizard.getRefactoring().getName(); fSettings= settings.getSection(settingsSectionId); if (fSettings == null) {