Bug 5817 - Breakpoint not hit in local class
Summary: Breakpoint not hit in local class
Status: RESOLVED DUPLICATE of bug 5257
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: Other other
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-12 17:21 EST by Nick Edgar CLA
Modified: 2001-11-13 10:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2001-11-12 17:21:19 EST
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() });
			}
		}
	});
}
Comment 1 Darin Swanson CLA 2001-11-13 10:36:36 EST
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.
Comment 2 Darin Wright CLA 2001-11-13 10:44:13 EST
Re-openned to...
Comment 3 Darin Wright CLA 2001-11-13 10:44:26 EST

*** This bug has been marked as a duplicate of 5257 ***