Esempio n. 1
0
 boolean isAlreadyGoingToBeShared(File dir) {
   if (sharingPanel.getFoldersToExclude().contains(dir)) {
     return false;
   }
   for (File folder : sharingPanel.getRootsToShare()) {
     if (FileUtils.isAncestor(folder, dir)) {
       return true;
     }
   }
   return false;
 }
Esempio n. 2
0
 public boolean isDirty() {
   return !initialFoldersToShare.equals(sharingPanel.getRootsToShare())
       || !initialFoldersToExclude.equals(sharingPanel.getFoldersToExclude());
 }
Esempio n. 3
0
 public void resetDirtyState() {
   initialFoldersToShare = sharingPanel.getRootsToShare();
   initialFoldersToExclude = sharingPanel.getFoldersToExclude();
 }
Esempio n. 4
0
 /** Returns the folders to exclude. */
 public Set<File> getDirectorieToExclude() {
   return sharingPanel.getFoldersToExclude();
 }