01: package tijmp.actions;
02:
03: import java.awt.event.ActionEvent;
04: import javax.swing.AbstractAction;
05: import tijmp.ProfilerHandler;
06:
07: /** A class that will find all objects reachable from a
08: * given object.
09: */
10: public class ChildObjectsSummary extends AbstractAction {
11: private ProfilerHandler ph;
12: private Object o;
13:
14: public ChildObjectsSummary(ProfilerHandler ph, Object o) {
15: super ("Child object summary");
16: this .ph = ph;
17: this .o = o;
18: }
19:
20: public void actionPerformed(ActionEvent e) {
21: ph.submitTask(new Runnable() {
22: public void run() {
23: ph.childObjectsSummary(o);
24: }
25: });
26: }
27: }
|