class EditorModel {

  public boolean isBoringFile(File f) {
    if (f == null) {
      return false;
    }

    final String name = f.getName().toLowerCase();

    return
      f.isHidden() ||
      name.endsWith(".class") ||
      name.startsWith("~") ||
      name.endsWith("~") ||
      name.startsWith("#") ||
      name.endsWith(".exe") ||
      name.endsWith(".gif") ||
      name.endsWith(".jpeg") ||
      name.endsWith(".jpg") ||
      name.endsWith(".tiff");
  }

  public  EditorModel(Resources resources,
                     TextSource.Factory textSourceFactory,
                     AgentCacheState agentCacheState,
                     FileChangeWatcher fileChangeWatcher);

}