Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 217 Details for
Bug 7503
Breakpoints in an InnerClass anonymous inner classes are not hit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Source I used for testing purposes
BreakpointManager.java (text/plain), 1.83 KB, created by
Darin Swanson
on 2002-01-11 14:12:15 EST
(
hide
)
Description:
Source I used for testing purposes
Filename:
MIME Type:
Creator:
Darin Swanson
Created:
2002-01-11 14:12:15 EST
Size:
1.83 KB
patch
obsolete
>import java.text.MessageFormat; >import java.util.ArrayList; >import java.util.Enumeration; >import java.util.HashMap; >import java.util.Iterator; >import java.util.Vector; > >/** > * The breakpoint manager manages all registered breakpoints > * for the debug plugin. It is instantiated by the debug plugin at startup. > * > * @see IBreakpointManager > */ >public class BreakpointManager { > > /** > * Constants for breakpoint add/remove/change updates > */ > private final static int ADDED = 0; > private final static int REMOVED = 1; > private final static int CHANGED = 2; > > /** > * Singleton resource delta visitor which handles marker > * additions, changes, and removals. > */ > private static BreakpointManagerVisitor fgVisitor; > > /** > * Constructs a new breakpoint manager. > */ > public BreakpointManager() { > fgVisitor= new BreakpointManagerVisitor(); > } > > /** > * Visitor for handling resource deltas > */ > class BreakpointManagerVisitor { > /** > * @see IResourceDeltaVisitor#visit(IResourceDelta) > */ > public boolean visit(int delta) { > switch (delta) { > case ADDED : > handleAddBreakpoint(); > break; > } > return true; > } > > /** > * Wrapper for handling adds > */ > protected void handleAddBreakpoint() { > Runnable wRunnable = new Runnable() { > public void run() { > new Outputter().output("HEy"); > } > }; > fork(wRunnable); > > } > > protected void fork(final Runnable wRunnable) { > Runnable runnable = new Runnable() { > public void run() { > wRunnable.run(); > } > }; > new Thread(runnable).start(); > } > > class Outputter { > public void output(String output) { > System.out.println(output); > } > } > } > public static void main(String[] arguments) { > new BreakpointManager().add(); > } > > public void add() { > fgVisitor.visit(ADDED); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7503
: 217