public void closeAll(File f) {
   Object[] list = this.tabs.toArray();
   for (int i = 0; i < list.length; i++) {
     EncogCommonTab tab = (EncogCommonTab) list[i];
     if (tab.getEncogObject() != null) {
       if (tab.getEncogObject().getFile() != null) {
         if (tab.getEncogObject().getFile().equals(f)) {
           tab.dispose();
         }
       }
     }
   }
 }
 public boolean checkViews(File f) {
   Object[] list = this.tabs.toArray();
   for (int i = 0; i < list.length; i++) {
     EncogCommonTab tab = (EncogCommonTab) list[i];
     if (tab.getEncogObject() != null) {
       if (tab.getEncogObject().getFile() != null) {
         if (tab.getEncogObject().getFile().equals(f)) {
           return true;
         }
       }
     }
   }
   return false;
 }
  public EncogCommonTab find(File file) {
    for (final EncogCommonTab tab : this.tabs) {
      ProjectFile pf = (ProjectFile) tab.getEncogObject();
      if (pf == null) continue;

      if (file.equals(pf.getFile())) return tab;
    }
    return null;
  }