Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ public void run() {
try {
view = page.showView(targetId);
IShowInTarget target = getShowInTarget(view);
if (!(target != null && target.show(getContext(null)))) {
if (target != null && target.show(getContext(null))) {
if (page instanceof WorkbenchPage workbenchPage) {
workbenchPage.performedShowIn(targetId);
}
} else {
page.getWorkbenchWindow().getShell().getDisplay().beep();
}
} catch (PartInitException e) {
Expand Down Expand Up @@ -355,6 +359,8 @@ private boolean showSelectionInFirstShowInTarget(IStructuredSelection selection)
IShowInTarget target = Adapters.adapt(view, IShowInTarget.class);
if (target == null || !target.show(new ShowInContext(null, selection))) {
activePage.getWorkbenchWindow().getShell().getDisplay().beep();
} else {
workbenchPage.performedShowIn(descriptor.getId());
}
} catch (PartInitException e) {
StatusManager.getManager().handle(new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH,
Expand Down
Loading