/** * Helper to get rid of deprecation warnings. * * @param parent the parent * @param status the status * @return the control * @since 3.5 * @deprecated As of 3.5 */ @Deprecated private Control createInfoForm(Composite parent, IStatus status) { InfoForm infoForm= new InfoForm(parent); infoForm.setHeaderText(getStatusHeader(status)); infoForm.setBannerText(getStatusBanner(status)); infoForm.setInfo(getStatusMessage(status)); return infoForm.getControl(); }
/** * Helper to get rid of deprecation warnings. * * @param parent the parent * @param status the status * @return the control * @since 3.5 * @deprecated As of 3.5 */ @Deprecated private Control createInfoForm(Composite parent, IStatus status) { InfoForm infoForm= new InfoForm(parent); infoForm.setHeaderText(getStatusHeader(status)); infoForm.setBannerText(getStatusBanner(status)); infoForm.setInfo(getStatusMessage(status)); return infoForm.getControl(); }
/** * Creates the status control for the given status. * May be overridden by subclasses. * * @param parent the parent control * @param status the status * @return the new status control */ protected Control createStatusControl(Composite parent, IStatus status) { InfoForm infoForm= new InfoForm(parent); infoForm.setHeaderText(getStatusHeader(status)); infoForm.setBannerText(getStatusBanner(status)); infoForm.setInfo(getStatusMessage(status)); return infoForm.getControl(); }