return dst;
}
private void treeTabsWidgetSelected(SelectionEvent evt) {
if (evt.item == tabSubDirs) {
final ConnectionDescription src = getConnectionDescription(srcConnectionConfiguration);
if ((sourceSite == null) || (src == null) || !src.getUri().toString().equals(lastSourceLoaded)) {
directoryTree.removeAll();
TreeItem loadingIem = new TreeItem(directoryTree, SWT.NULL);
loadingIem.setText("Loading source dir...");
loadingIem.setImage(GuiController.getInstance().getImage("Node_Directory.png"));
Display display = Display.getCurrent();
display.asyncExec(new Runnable() {
@Override
public void run() {
try {
if (null != src) {
closeSourceSite();
src.setParameter("bufferStrategy", ""); // the subdirs tab should bypass the buffer imo
src.setParameter("interactive", "true");
sourceSite = fsm.createConnection(src);
drawDirectoryTree();
lastSourceLoaded = src.getUri().toString();
}
else {
TreeItem loadingIem = new TreeItem(directoryTree, SWT.NULL);
loadingIem.setText("Unable to load source dir");
loadingIem.setImage(GuiController.getInstance().getImage("Error.png"));