1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 07:15:39 +02:00

Bug 437842 - Fix setInitialPath() so it works.

Change-Id: Ic8599552b1c1b9b99743bd73429b60a1d73dc29f
Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
Greg Watson 2014-06-20 15:53:34 -04:00
parent 407382d8af
commit 8149858afc
2 changed files with 5 additions and 3 deletions

View file

@ -116,12 +116,12 @@ public class RemoteResourceBrowser extends Dialog implements IRunnableContext {
} else {
setTitle(fDialogTitle);
}
if (fConnection != null) {
fResourceBrowserWidget.setConnection(fConnection);
}
if (fInitialPath != null) {
fResourceBrowserWidget.setInitialPath(fInitialPath);
}
if (fConnection != null) {
fResourceBrowserWidget.setConnection(fConnection);
}
updateDialog();
return contents;
}

View file

@ -517,6 +517,8 @@ public class RemoteResourceBrowserWidget extends Composite {
* text field, and in a future version should expand the browser to this
* location if it exists.
*
* NOTE: This must be called *before* {@link #setConnection(IRemoteConnection)} to have any effect.
*
* @param path
*/
public void setInitialPath(String path) {