/** * Finds the most severe error (if there is one) */ private IStatus findMostSevereStatus() { return StatusUtil.getMostSevere(new IStatus[] { fJavadocStatus, fPreferenceStatus, fDestinationStatus, fDocletStatus, fTreeStatus, fWizardStatus }); }
/** * @return the most severe error (if there is one) */ private IStatus findMostSevereStatus() { return StatusUtil.getMostSevere(new IStatus[] { fJavadocStatus, fPreferenceStatus, fDestinationStatus, fDocletStatus, fTreeStatus, fWizardStatus }); }
/** * @return the most severe error (if there is one) */ private IStatus findMostSevereStatus() { return StatusUtil.getMostSevere(new IStatus[] { fJavadocStatus, fPreferenceStatus, fDestinationStatus, fDocletStatus, fTreeStatus, fWizardStatus }); }
/** * Finds the most severe error (if there is one) */ private IStatus findMostSevereStatus() { return StatusUtil.getMostSevere(new IStatus[] { fJavadocStatus, fPreferenceStatus, fDestinationStatus, fDocletStatus, fTreeStatus, fWizardStatus }); }
private IStatus findMostSevereStatus() { return StatusUtil.getMostSevere(new IStatus[] { fAspectPathStatus, fOutputFolderStatus, fBuildPathStatus }); }
private IStatus findMostSevereStatus() { return StatusUtil.getMostSevere(new IStatus[] { fClassPathStatus, fOutputFolderStatus, fBuildPathStatus }); }
private IStatus findMostSevereStatus() { return StatusUtil.getMostSevere(new IStatus[] { fClassPathStatus, fOutputFolderStatus, fBuildPathStatus }); }
/** * Updates the status line and the OK button according to the status evaluate from * an array of status. The most severe error is taken. In case that two status with * the same severity exists, the status with lower index is taken. * * @param status the array of status */ protected void updateStatus(IStatus[] status) { updateStatus(StatusUtil.getMostSevere(status)); }
/** * Updates the status line and the OK button according to the status evaluate from * an array of status. The most severe error is taken. In case that two status with * the same severity exists, the status with lower index is taken. * * @param status the array of status */ protected void updateStatus(IStatus[] status) { updateStatus(StatusUtil.getMostSevere(status)); }
/** * Updates the status line and the OK button according to the status evaluate from * an array of status. The most severe error is taken. In case that two status with * the same severity exists, the status with lower index is taken. * * @param status the array of status */ protected void updateStatus(IStatus[] status) { updateStatus(StatusUtil.getMostSevere(status)); }
public IStatus getMostSevereStatus() { List<AnnotationWrapper> elements= getElements(); if (elements.isEmpty()) return new StatusInfo(); IStatus[] all= new IStatus[elements.size()]; for (int i= 0; i < elements.size(); i++) { all[i]= elements.get(i).status; if (all[i] == null) all[i]= new StatusInfo(); } return StatusUtil.getMostSevere(all); } @Override
public IStatus getMostSevereStatus() { List<AnnotationWrapper> elements= getElements(); if (elements.isEmpty()) return new StatusInfo(); IStatus[] all= new IStatus[elements.size()]; for (int i= 0; i < elements.size(); i++) { all[i]= elements.get(i).status; if (all[i] == null) all[i]= new StatusInfo(); } return StatusUtil.getMostSevere(all); } @Override
@Override public void setErrorMessage(String newMessage) { StatusInfo status= new StatusInfo(); if (newMessage != null) status.setError(newMessage); fEncodingFieldEditorStatus= status; fContext.statusChanged(StatusUtil.getMostSevere(new IStatus[] { fThresholdStatus, fFileStatus, fEncodingFieldEditorStatus })); } };
private void doStatusLineUpdate() { fFileNameField.enableButton(canBrowseFileName()); // set the resolved path for variable jars if (fFullPathResolvedLabel != null) { fFullPathResolvedLabel.setText(getResolvedLabelString()); } IStatus status= StatusUtil.getMostSevere(new IStatus[] { fNameStatus }); fContext.statusChanged(status); }
@Override public void setErrorMessage(String newMessage) { StatusInfo status= new StatusInfo(); if (newMessage != null) status.setError(newMessage); fEncodingFieldEditorStatus= status; fContext.statusChanged(StatusUtil.getMostSevere(new IStatus[] { fThresholdStatus, fFileStatus, fEncodingFieldEditorStatus })); } };
public void setErrorMessage(String newMessage) { StatusInfo status= new StatusInfo(); if (newMessage != null) status.setError(newMessage); fEncodingFieldEditorStatus= status; fContext.statusChanged(StatusUtil.getMostSevere(new IStatus[] { fProblemsThresholdStatus, fProposalsThresholdStatus, fFileStatus, fEncodingFieldEditorStatus })); } };
protected void validateSettings(final Key key, final String oldValue, final String newValue) { if (key == null || PREF_SPELLING_PROPOSAL_THRESHOLD.equals(key)) fProposalsThresholdStatus= validatePositiveNumber(getValue(PREF_SPELLING_PROPOSAL_THRESHOLD)); if (key == null || PREF_SPELLING_PROBLEMS_THRESHOLD.equals(key)) fProblemsThresholdStatus= validatePositiveNumber(getValue(PREF_SPELLING_PROBLEMS_THRESHOLD)); if (key == null || PREF_SPELLING_USER_DICTIONARY.equals(key)) fFileStatus= validateAbsoluteFilePath(getValue(PREF_SPELLING_USER_DICTIONARY)); fContext.statusChanged(StatusUtil.getMostSevere(new IStatus[] { fProblemsThresholdStatus, fProposalsThresholdStatus, fFileStatus, fEncodingFieldEditorStatus })); }
/** * checks all entered values delegates to the specific validate methods these methods * update the refactoring */ private void validateAll() { validateSubstitutionPattern(); validateAccessorClassName(); checkPackageFragment(); validatePropertyFilename(); validatePropertyPackage(); updateStatus(StatusUtil.getMostSevere(fStati)); }
/** * checks all entered values delegates to the specific validate methods these methods * update the refactoring */ private void validateAll() { validateSubstitutionPattern(); validateAccessorClassName(); checkPackageFragment(); validatePropertyFilename(); validatePropertyPackage(); updateStatus(StatusUtil.getMostSevere(fStati)); }
/** * checks all entered values delegates to the specific validate methods these methods * update the refactoring */ private void validateAll() { validateSubstitutionPattern(); validateAccessorClassName(); checkPackageFragment(); validatePropertyFilename(); validatePropertyPackage(); updateStatus(StatusUtil.getMostSevere(fStati)); }