public void toolsSingleValidateTagsMenuItemActionPerformed() {
   String midName = Core.getEditor().getCurrentFile();
   List<ErrorReport> stes = null;
   if (!StringUtil.isEmpty(midName)) {
     String sourcePattern = StaticUtils.escapeNonRegex(midName);
     stes = Core.getTagValidation().listInvalidTags(sourcePattern);
   }
   Core.getTagValidation().displayTagValidationErrors(stes, null);
 }
  /** Create current translated document. */
  public void projectSingleCompileMenuItemActionPerformed() {
    String midName = Core.getEditor().getCurrentFile();
    if (StringUtil.isEmpty(midName)) {
      return;
    }

    String sourcePattern = StaticUtils.escapeNonRegex(midName);
    if (Preferences.isPreference(Preferences.TAGS_VALID_REQUIRED)) {
      List<ErrorReport> stes = Core.getTagValidation().listInvalidTags(sourcePattern);
      if (stes != null) {
        Core.getTagValidation()
            .displayTagValidationErrors(stes, OStrings.getString("TF_MESSAGE_COMPILE"));
        return;
      }
    }

    ProjectUICommands.projectSingleCompile(sourcePattern);
  }