}
if (view != null) {
IShowInTarget target = getShowInTarget(view);
- if (target != null && target.show(context)) {
- // success
+ boolean stickyBrowserURL = ProjectPrefUtil.getPreviewBooleanValue(
+ previewFile,
+ IPreferenceConstants.PHP_STICKY_BROWSER_URL_DEFAULT);
+ if (target != null) {
+ if (stickyBrowserURL
+ && ((BrowserView) target).getUrl() != null
+ && ((BrowserView) target).getUrl().length() > 0) {
+ ((BrowserView) target).refresh();
+ } else {
+ target.show(context);
+ }
}
((WorkbenchPage) page)
.performedShowIn(BrowserView.ID_BROWSER);