Ejemplo n.º 1
0
 private void setESBMimeTypeForConfigurationFiles(VirtualFileEntry virtualFileEntry)
     throws ServerException {
   String fileName = virtualFileEntry.getName();
   if (fileName.endsWith(".xml") && !("pom.xml".equals(fileName))) {
     virtualFileEntry.getVirtualFile().setMediaType(ESB_XML_MIME_TYPE);
   }
 }
Ejemplo n.º 2
0
 private void recTreeView(FolderEntry parent) throws ServerException {
   for (VirtualFileEntry virtualFileEntry : parent.getChildren()) {
     if (virtualFileEntry.isFile()) {
       setESBMimeTypeForConfigurationFiles(virtualFileEntry);
     } else {
       recTreeView((FolderEntry) virtualFileEntry);
     }
   }
 }