/** * Triggers the refactoring's condition checking and returns either the * error wizard page or a preview page, depending on the outcome of the * precondition checking. * * @return either the error or the preview page, depending on the refactoring's * precondition checking */ protected final IWizardPage computeSuccessorPage() { return getRefactoringWizard().computeUserInputSuccessorPage(this, getContainer()); }
/** * {@inheritDoc} */ public void setVisible(boolean visible) { if (visible) getRefactoringWizard().internalSetChange(InternalAPI.INSTANCE, null); super.setVisible(visible); }
/** * {@inheritDoc} */ public boolean canFlipToNextPage() { if (fIsLastUserInputPage) { // we can't call getNextPage to determine if flipping is allowed since computing // the next page is quite expensive (checking preconditions and creating a // change). So we say yes if the page is complete. return isPageComplete(); } else { return super.canFlipToNextPage(); } }
@Override public IWizardPage getNextPage() { return super.getNextPage(); }
public boolean performFinish() { return super.performFinish(); }
@Override public void dispose() { fInstanceofButton= null; fReplaceButton= null; fTableViewer= null; super.dispose(); }
private void setConditionCheckingStatus(RefactoringStatus status, int style) { if ((style & CheckConditionsOperation.ALL_CONDITIONS) == CheckConditionsOperation.ALL_CONDITIONS) setConditionCheckingStatus(status); else if ((style & CheckConditionsOperation.INITIAL_CONDITONS) == CheckConditionsOperation.INITIAL_CONDITONS) setInitialConditionCheckingStatus(status); else if ((style & CheckConditionsOperation.FINAL_CONDITIONS) == CheckConditionsOperation.FINAL_CONDITIONS) setFinalConditionCheckingStatus(status); }
/** * Returns the refactoring associated with this wizard page. Returns * <code>null</code> if the page isn't been added to any refactoring * wizard yet. * * @return the refactoring associated with this refactoring wizard page * or <code>null</code> */ protected Refactoring getRefactoring() { RefactoringWizard wizard= getRefactoringWizard(); if (wizard == null) return null; return wizard.getRefactoring(); }
/** * {@inheritDoc} */ public IWizardPage getNextPage() { if (fIsLastUserInputPage) return computeSuccessorPage(); else return super.getNextPage(); }
void feedInput(IChangePreviewViewer viewer, List categories) throws CoreException { viewer.setInput(new ChangePreviewViewerInput(fChange)); }
/** * Returns the page's refactoring wizard. * * @return the page's refactoring wizard or <code>null</code> if the * wizard hasn't been set yet */ protected RefactoringWizard getRefactoringWizard() { IWizard wizard= getWizard(); if (wizard instanceof RefactoringWizard) return (RefactoringWizard) wizard; return null; }
/** * Adds the given <code>ChildNode<code> to this <code>LanguageElementNode</code> * * @param child the child to add */ public void addChild(ChildNode child) { internalAddChild(child); }
public int compare(Object o1, Object o2) { TextEditBasedChangeGroup c1= (TextEditBasedChangeGroup)o1; TextEditBasedChangeGroup c2= (TextEditBasedChangeGroup)o2; int p1= getOffset(c1); int p2= getOffset(c2); if (p1 < p2) return -1; if (p1 > p2) return 1; // same offset return 0; } private int getOffset(TextEditBasedChangeGroup edit) {
@Override public IWizardPage getNextPage() { return super.getNextPage(); }
@Override public boolean performFinish() { return super.performFinish(); }
@Override public void dispose() { fTreeViewer= null; super.dispose(); }
public void dispose() { fInstanceofButton= null; fReplaceButton= null; fTableViewer= null; super.dispose(); }
public void dispose() { fTreeViewer= null; super.dispose(); }
@Override public void dispose() { fInstanceofButton= null; fReplaceButton= null; fTableViewer= null; super.dispose(); }
@Override public void dispose() { fTreeViewer= null; super.dispose(); }