コード例 #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;
 }
コード例 #2
0
 public boolean isDirty() {
   return !initialFoldersToShare.equals(sharingPanel.getRootsToShare())
       || !initialFoldersToExclude.equals(sharingPanel.getFoldersToExclude());
 }
コード例 #3
0
 public void resetDirtyState() {
   initialFoldersToShare = sharingPanel.getRootsToShare();
   initialFoldersToExclude = sharingPanel.getFoldersToExclude();
 }
コード例 #4
0
 /** Returns the folders to exclude. */
 public Set<File> getDirectorieToExclude() {
   return sharingPanel.getFoldersToExclude();
 }