@Override
    public Control createDialogArea(Composite parent) {
      super.createDialogArea(parent);

      errorMessageLabel = new CLabel(parent, SWT.LEFT_TO_RIGHT);
      errorMessageLabel.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false, 2, 1));
      errorMessageLabel.setImage(
          PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJS_ERROR_TSK));
      errorMessageLabel.setVisible(false);

      return parent;
    }
 private void setVisibleAlfrescoType(boolean visible, boolean isTask) {
   if (PreferencesUtil.getBooleanPreference(Preferences.ALFRESCO_ENABLE)) {
     if (visible) {
       if (isTask) {
         alfrescoTaskTypeButton.setSelection(visible);
       } else {
         alfrescoExecutionTypeButton.setSelection(visible);
       }
     } else {
       alfrescoTaskTypeButton.setSelection(visible);
       alfrescoExecutionTypeButton.setSelection(visible);
     }
   }
   scriptText.setVisible(visible);
   scriptLabel.setVisible(visible);
   runAsText.setVisible(visible);
   runAsLabel.setVisible(visible);
   scriptProcessorText.setVisible(visible);
   scriptProcessorLabel.setVisible(visible);
   extensionLabel.setVisible(!visible);
   fieldEditor.setVisible(!visible);
 }
 private void setVisibleDelegateExpressionType(boolean visible) {
   delegateExpressionTypeButton.setSelection(visible);
   delegateExpressionText.setVisible(visible);
   delegateExpressionLabel.setVisible(visible);
 }
 private void setVisibleClassType(boolean visible) {
   classTypeButton.setSelection(visible);
   classNameText.setVisible(visible);
   classSelectButton.setVisible(visible);
   classSelectLabel.setVisible(visible);
 }