Community
Participate
Working Groups
I tried setting a breakpoint in org.eclipse.ui.internal.WorkbenchPage.activatePart(), in the inner class, to hook into part activation (e.g. clicking between views and editors). It had no effect. Setting it on the first statement worked fine. This code is definitely getting run. Here is the code: static private void activatePart(final IWorkbenchPart part, final boolean switchActions, final boolean switchActionsForced) { Platform.run(new SafeRunnableAdapter(WorkbenchMessages.getString ("WorkbenchPage.ErrorActivatingView")) { //$NON-NLS-1$ public void run() { if (part != null) { part.setFocus(); PartSite site = (PartSite)part.getSite(); PartPane pane = site.getPane(); pane.showFocus(true); SubActionBars bars = (SubActionBars) site.getActionBars(); bars.partChanged(part); if (switchActions) bars.activate(switchActionsForced); WorkbenchPage page = (WorkbenchPage) site.getPage(); page.getClientComposite().setTabList(new Control [] { pane.getControl() }); } } }); }
We did have a problem with adding breakpoints to local types when the type was already loaded. This has been fixed in the latest code. Please verify.
Re-openned to...
*** This bug has been marked as a duplicate of 5257 ***