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