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:
parent
407382d8af
commit
8149858afc
2 changed files with 5 additions and 3 deletions
|
@ -116,12 +116,12 @@ public class RemoteResourceBrowser extends Dialog implements IRunnableContext {
|
||||||
} else {
|
} else {
|
||||||
setTitle(fDialogTitle);
|
setTitle(fDialogTitle);
|
||||||
}
|
}
|
||||||
if (fConnection != null) {
|
|
||||||
fResourceBrowserWidget.setConnection(fConnection);
|
|
||||||
}
|
|
||||||
if (fInitialPath != null) {
|
if (fInitialPath != null) {
|
||||||
fResourceBrowserWidget.setInitialPath(fInitialPath);
|
fResourceBrowserWidget.setInitialPath(fInitialPath);
|
||||||
}
|
}
|
||||||
|
if (fConnection != null) {
|
||||||
|
fResourceBrowserWidget.setConnection(fConnection);
|
||||||
|
}
|
||||||
updateDialog();
|
updateDialog();
|
||||||
return contents;
|
return contents;
|
||||||
}
|
}
|
||||||
|
|
|
@ -517,6 +517,8 @@ public class RemoteResourceBrowserWidget extends Composite {
|
||||||
* text field, and in a future version should expand the browser to this
|
* text field, and in a future version should expand the browser to this
|
||||||
* location if it exists.
|
* location if it exists.
|
||||||
*
|
*
|
||||||
|
* NOTE: This must be called *before* {@link #setConnection(IRemoteConnection)} to have any effect.
|
||||||
|
*
|
||||||
* @param path
|
* @param path
|
||||||
*/
|
*/
|
||||||
public void setInitialPath(String path) {
|
public void setInitialPath(String path) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue