code: public static boolean existsEditor(CmsResource resource) {
  
          int plainId;
          try {
              plainId = OpenCms.getResourceManager().getResourceType(
                  CmsResourceTypePlain.getStaticTypeName()).getTypeId();
          } catch (CmsLoaderException e) {
              // this should really never happen
              plainId = CmsResourceTypePlain.getStaticTypeId();
          }
          if ((CmsResourceTypeJsp.isJsp(resource))
              || (resource.getTypeId() == plainId)
              || CmsResourceTypeXmlPage.isXmlPage(resource)) {
              return true;
          }
          return false;
      }
docs: Returns true, if there exists an editor for a specific resource.<p>
  
  @param resource the resource to check if there exists an editor
  
  @return true if there exists an editor for the resource