Esempio n. 1
0
 public static boolean isErlangFileContentFileName(final String fileName) {
   final IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
   final IContentType[] contentTypes = contentTypeManager.findContentTypesFor(fileName);
   for (final IContentType contentType : contentTypes) {
     if (contentType.getId().equals("org.erlide.core.content.erlang")) {
       return true;
     }
   }
   return false;
 }