This commit also changes the behavior of the browser url bar.
If you had typed in php.net and hit enter it would have saved a copy to
your browser history. Then if you wanted to go to phpeclipse.net, you would
not get past php before it would auto take you to php.net. This is changed.
you can now type in the url you would like to visit before any action is
taken.
public void widgetSelected(SelectionEvent we) {
try {
if (combo.getSelectionIndex() != -1)
- setURL(combo.getItem(combo.getSelectionIndex()));
+ setURL(combo.getItem(combo.getSelectionIndex()),
+ false);
} catch (Exception e) {
}
}
shell.dispose();
else {
// #1365431 (toshihiro) editor.closeEditor(); causes NPE
- if (editor != null) editor.closeEditor();
+ if (editor != null)
+ editor.closeEditor();
}
}
});
if (newURL != null)
url = newURL;
- if (browse)
+ if (browse) {
navigate(url);
- addToHistory(url);
- updateHistory();
+ addToHistory(url);
+ updateHistory();
+ }
}
protected void addToHistory(String url) {