drools-eclipse/org.kie.eclipse.navigator/src/main/java/org/kie/eclipse/navigator/view/actions/dialogs/AbstractKieRequestDialog.java
@Override
	public void setErrorMessage(String newErrorMessage) {
		if (errorComposite!=null && !errorComposite.isDisposed()) {
			if (newErrorMessage==null || newErrorMessage.isEmpty()) {
				errorComposite.setVisible(false);
				((GridData)errorComposite.getLayoutData()).exclude = true;
				errorText.setText("");
			}
			else {
				errorComposite.setVisible(true);
				((GridData)errorComposite.getLayoutData()).exclude = false;
				errorText.setText(newErrorMessage);
			}
			errorText.getParent().getParent().layout();
		}
	}
@Override
	public void setErrorMessage(String newErrorMessage) {
		if (errorComposite!=null && !errorComposite.isDisposed()) {
			if (newErrorMessage==null || newErrorMessage.isEmpty()) {
				errorComposite.setVisible(false);
				((GridData)errorComposite.getLayoutData()).exclude = true;
				errorText.setText("");
			}
			else {
				errorComposite.setVisible(true);
				((GridData)errorComposite.getLayoutData()).exclude = false;
				errorText.setText(newErrorMessage);
			}
			errorText.getParent().getParent().layout();
		}
	}
@ Override public void setErrorMessage ( String newErrorMessage ) { if ( errorComposite != null && ! errorComposite . isDisposed ( ) ) { if ( newErrorMessage == null || newErrorMessage . isEmpty ( ) ) { errorComposite . setVisible ( false ) ; ( ( GridData ) errorComposite . getLayoutData ( ) ) . exclude = true ; errorText . setText ( "" ) ; } else { errorComposite . setVisible ( true ) ; ( ( GridData ) errorComposite . getLayoutData ( ) ) . exclude = false ; errorText . setText ( newErrorMessage ) ; } errorText . getParent ( ) . getParent ( ) . layout ( ) ; } }
/* (non-Javadoc)
@see org.eclipse.jface.dialogs.TitleAreaDialog#setErrorMessage(java.lang.String)
/ * ( non - Javadoc )