protected Text createTextInputField(Composite parent) { return createTextInputField(parent, SWT.BORDER); }
@Override public void dispose() { fInstanceofCheckbox= null; fGenerateCommentsCheckbox= null; fReplaceAllCheckbox= null; fTableViewer= null; super.dispose(); }
@Override public void modifyText(ModifyEvent e) { textModified(getText()); } });
/** * Checks the page's state and issues a corresponding error message. The page validation * is computed by calling <code>validatePage</code>. */ protected void textModified(String text) { if (! isEmptyInputValid() && "".equals(text)){ //$NON-NLS-1$ setPageComplete(false); setErrorMessage(null); restoreMessage(); return; } if ((! isInitialInputValid()) && fInitialValue.equals(text)){ setPageComplete(false); setErrorMessage(null); restoreMessage(); return; } RefactoringStatus status= validateTextField(text); if (status == null) status= new RefactoringStatus(); setPageComplete(status); }
/** * Creates a new text input page. * @param isLastUserPage <code>true</code> if this page is the wizard's last * user input page. Otherwise <code>false</code> * @param initialValue the initial value */ public TextInputWizardPage(String description, boolean isLastUserPage, String initialValue) { super(PAGE_NAME); Assert.isNotNull(initialValue); setDescription(description); fInitialValue= initialValue; }
public IWizardPage getNextPage() { try { initializeRefactoring(); storeDialogSettings(); return super.getNextPage(); } catch (JavaModelException e) { JavaPlugin.log(e); return null; } }
public boolean performFinish(){ try { initializeRefactoring(); storeDialogSettings(); return super.performFinish(); } catch (JavaModelException e) { JavaPlugin.log(e); return false; } }
/** * Checks the page's state and issues a corresponding error message. The page validation * is computed by calling <code>validatePage</code>. */ protected void textModified(String text) { if (! isEmptyInputValid() && "".equals(text)){ //$NON-NLS-1$ setPageComplete(false); setErrorMessage(null); restoreMessage(); return; } if ((! isInitialInputValid()) && fInitialValue.equals(text)){ setPageComplete(false); setErrorMessage(null); restoreMessage(); return; } RefactoringStatus status= validateTextField(text); if (status == null) status= new RefactoringStatus(); setPageComplete(status); }
/** * Creates a new text input page. * @param isLastUserPage <code>true</code> if this page is the wizard's last * user input page. Otherwise <code>false</code> * @param initialValue the initial value */ public TextInputWizardPage(String description, boolean isLastUserPage, String initialValue) { super(PAGE_NAME); Assert.isNotNull(initialValue); setDescription(description); fInitialValue= initialValue; }
@Override public IWizardPage getNextPage() { try { initializeRefactoring(); storeDialogSettings(); return super.getNextPage(); } catch (JavaModelException e) { JavaPlugin.log(e); return null; } }
@Override public boolean performFinish(){ try { initializeRefactoring(); storeDialogSettings(); return super.performFinish(); } catch (JavaModelException e) { JavaPlugin.log(e); return false; } }
/** * Checks the page's state and issues a corresponding error message. The page validation * is computed by calling <code>validatePage</code>. */ protected void textModified(String text) { if (! isEmptyInputValid() && "".equals(text)){ //$NON-NLS-1$ setPageComplete(false); setErrorMessage(null); restoreMessage(); return; } if ((! isInitialInputValid()) && fInitialValue.equals(text)){ setPageComplete(false); setErrorMessage(null); restoreMessage(); return; } RefactoringStatus status= validateTextField(text); if (status == null) status= new RefactoringStatus(); setPageComplete(status); }
public void modifyText(ModifyEvent e) { textModified(getText()); } });
@Override public void dispose() { fInstanceofCheckbox= null; fGenerateCommentsCheckbox= null; fReplaceAllCheckbox= null; fTableViewer= null; super.dispose(); }
/** * Creates a new text input page. * @param isLastUserPage <code>true</code> if this page is the wizard's last * user input page. Otherwise <code>false</code> * @param initialValue the initial value */ public TextInputWizardPage(String description, boolean isLastUserPage, String initialValue) { super(PAGE_NAME); Assert.isNotNull(initialValue); setDescription(description); fInitialValue= initialValue; }
@Override public IWizardPage getNextPage() { try { initializeRefactoring(); storeDialogSettings(); return super.getNextPage(); } catch (JavaModelException e) { JavaPlugin.log(e); return null; } }
@Override public boolean performFinish(){ try { initializeRefactoring(); storeDialogSettings(); return super.performFinish(); } catch (JavaModelException e) { JavaPlugin.log(e); return false; } }
protected Text createTextInputField(Composite parent) { return createTextInputField(parent, SWT.BORDER); }
@Override public void modifyText(ModifyEvent e) { textModified(getText()); } });
public void dispose() { fInstanceofCheckbox= null; fGenerateCommentsCheckbox= null; fReplaceAllCheckbox= null; fTableViewer= null; super.dispose(); }