switch(status.getSeverity()){ case RefactoringStatus.FATAL: setPageComplete(false); setErrorMessage(status.getFirstMessage(status.getSeverity())); break; case RefactoringStatus.ERROR: case RefactoringStatus.WARNING: setPageComplete(true); setMessage(status.getFirstMessage(status.getSeverity()), IStatus.WARNING); break; case RefactoringStatus.INFO: setPageComplete(true); setMessage(status.getFirstMessage(status.getSeverity()), IStatus.INFO); break; default: setPageComplete(true); setErrorMessage(null); restoreMessage();
if (status.getSeverity() == RefactoringStatus.FATAL){ setPageComplete(false); setErrorMessage(status.getFirstMessage(status.getSeverity())); } else { setPageComplete(true); setErrorMessage(null); if (status.getSeverity() == RefactoringStatus.OK) restoreMessage(); else setMessage(status.getFirstMessage(status.getSeverity()), getCorrespondingIStatusSeverity(status.getSeverity()));
	protected void textModified(String text) {			if (! isEmptyInputValid() && text.equals("")){ //$NON-NLS-1$			setPageComplete(false);			setErrorMessage(null);			restoreMessage();			return;		}		if ((! isInitialInputValid()) && text.equals(fInitialValue)){			setPageComplete(false);			setErrorMessage(null);			restoreMessage();			return;		}				RefactoringStatus status= validateTextField(text);		getRefactoringWizard().setStatus(status);				switch(status.getSeverity()){			case RefactoringStatus.FATAL: 						setPageComplete(false);						setErrorMessage(status.getFirstMessage(status.getSeverity()));							break;			case RefactoringStatus.ERROR:			case RefactoringStatus.WARNING:						setPageComplete(true);						setMessage(status.getFirstMessage(status.getSeverity()), IStatus.WARNING);							break;			case RefactoringStatus.INFO:						setPageComplete(true);						setMessage(status.getFirstMessage(status.getSeverity()), IStatus.INFO);							break;			default: 												setPageComplete(true);						setErrorMessage(null);						restoreMessage();		}	}