Exemplo n.º 1
0
 /**
  * Overriding superclass implementation. Checks whether the <code>IFile</code> representing the
  * BPEL module has a bpel file extension (weak validation).
  *
  * @see ModuleDelegate#validate()
  *     <p>TODO should also allow for BPEL projects being valid modules
  */
 @Override
 public IStatus validate() {
   super.validate();
   if (IBPELModuleFacetConstants.DOT_BPEL_FILE_EXTENSION.equalsIgnoreCase(
       file.getFileExtension())) {
     return Status.OK_STATUS;
   }
   return new Status(
       IStatus.ERROR, RuntimesPlugin.PLUGIN_ID, 0, Messages.InvalidFileExtension, null);
 }