if (infoMessage == null && !hasCheckedElement())
if (!hasCheckedElement())
	private void validateInput() {		String errorMessage= null; 		String infoMessage= null;		String newText= fWorkingSetName.getText();		if (newText.equals(newText.trim()) == false)			errorMessage = WorkingSetMessages.JavaWorkingSetPage_warning_nameWhitespace; 		if (newText.equals("")) { //$NON-NLS-1$			if (fFirstCheck) {				setPageComplete(false);				fFirstCheck= false;				return;			}			else								errorMessage= WorkingSetMessages.JavaWorkingSetPage_warning_nameMustNotBeEmpty; 		}		fFirstCheck= false;		if (errorMessage == null && (fWorkingSet == null || newText.equals(fWorkingSet.getName()) == false)) {			IWorkingSet[] workingSets= PlatformUI.getWorkbench().getWorkingSetManager().getWorkingSets();			for (int i= 0; i < workingSets.length; i++) {				if (newText.equals(workingSets[i].getName())) {					errorMessage= WorkingSetMessages.JavaWorkingSetPage_warning_workingSetExists; 				}			}		}				if (infoMessage == null && !hasCheckedElement())			infoMessage= WorkingSetMessages.JavaWorkingSetPage_warning_resourceMustBeChecked;		setMessage(infoMessage, INFORMATION);		setErrorMessage(errorMessage);		setPageComplete(errorMessage == null);	}