protected IStatus getValidationStatus() {
   try {
     nameGroup.validate();
     locationGroup.validate();
     return Status.OK_STATUS;
   } catch (CommonException e) {
     return LangCore.createErrorStatus(e.getMessage(), e.getCause());
   }
 }
示例#2
0
 /**
  * Creates a CoreException describing an error in this plugin, from given {@link CommonException}
  */
 public static CoreException createCoreException(CommonException ce) {
   return createCoreException(ce.getMessage(), ce.getCause());
 }