-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSlaveDirectorySearchService.java
More file actions
33 lines (26 loc) · 967 Bytes
/
SlaveDirectorySearchService.java
File metadata and controls
33 lines (26 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import javax.swing.*;
import java.io.File;
import java.util.Vector;
// remember:
// master: where the info comes from which images to use
// slave: where the originals reside, we copy from here
// target: where the originals from slave should be copied to
class SlaveDirectorySearchService extends SwingWorker<File, Object> {
private final Album handleAlbum;
private final File target; // this is just for giving it to the next service
// walk through the configured directories and search for the directory where the originals reside (slave directory)
public SlaveDirectorySearchService(Album a, File target) {
this.handleAlbum = a;
this.target = target;
}
@Override
protected File doInBackground() throws Exception {
return new File("slaveteeeeest"); //TODO
}
public Album getHandleAlbum() {
return this.handleAlbum;
}
public File getTarget() {
return this.target;
}
}