|
Lines 52-57
Link Here
|
| 52 |
import org.eclipse.ui.internal.IWorkbenchGraphicConstants; |
52 |
import org.eclipse.ui.internal.IWorkbenchGraphicConstants; |
| 53 |
import org.eclipse.ui.internal.ShowInMenu; |
53 |
import org.eclipse.ui.internal.ShowInMenu; |
| 54 |
import org.eclipse.ui.internal.WorkbenchImages; |
54 |
import org.eclipse.ui.internal.WorkbenchImages; |
|
|
55 |
import org.eclipse.ui.internal.WorkbenchPage; |
| 55 |
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; |
56 |
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; |
| 56 |
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; |
57 |
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; |
| 57 |
import org.eclipse.ui.part.IShowInTarget; |
58 |
import org.eclipse.ui.part.IShowInTarget; |
|
Lines 113-118
Link Here
|
| 113 |
setResult(Collections.EMPTY_LIST); |
114 |
setResult(Collections.EMPTY_LIST); |
| 114 |
close(); |
115 |
close(); |
| 115 |
|
116 |
|
|
|
117 |
// similar to org.eclipse.ui.internal.ShowInHandler#execute(ExecutionEvent) |
| 116 |
IWorkbenchPage page = getActivePage(); |
118 |
IWorkbenchPage page = getActivePage(); |
| 117 |
IViewPart view; |
119 |
IViewPart view; |
| 118 |
try { |
120 |
try { |
|
Lines 121-126
Link Here
|
| 121 |
if (!(target != null && target.show(getContext(null)))) { |
123 |
if (!(target != null && target.show(getContext(null)))) { |
| 122 |
page.getWorkbenchWindow().getShell().getDisplay().beep(); |
124 |
page.getWorkbenchWindow().getShell().getDisplay().beep(); |
| 123 |
} |
125 |
} |
|
|
126 |
((WorkbenchPage) page).performedShowIn(targetId); |
| 124 |
} catch (PartInitException e) { |
127 |
} catch (PartInitException e) { |
| 125 |
StatusManager.getManager().handle(new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH, |
128 |
StatusManager.getManager().handle(new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH, |
| 126 |
IStatus.ERROR, "", e)); //$NON-NLS-1$ |
129 |
IStatus.ERROR, "", e)); //$NON-NLS-1$ |