PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(_window.getSite().getShell(),
"org.cfeclipse.cfml.preferences.FtpConnectionDialog",
new String[] { "org.cfeclipse.cfml.preferences.FtpConnectionDialog" }, null);
if (pref != null) {
pref.setBlockOnOpen(true);
FtpConnectionDialog conp = (FtpConnectionDialog) pref.getSelectedPage();
TreeItem[] treeItems =_window.getTree().getSelection();
if(treeItems.length == 1) {
String connectionId = (String) treeItems[0].getData(VFSView.TREEITEMDATA_CONNECTIONID);
conp.setCurrentConnectionId(connectionId);
}
pref.open();
_window.treeRefreshRemoteURIs();
}
}