KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > ui > threadgroups > JavaDebugTargetProxy


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.debug.ui.threadgroups;
12
13 import org.eclipse.debug.core.model.IDebugTarget;
14 import org.eclipse.debug.internal.ui.viewers.update.DebugEventHandler;
15 import org.eclipse.debug.internal.ui.viewers.update.DebugTargetEventHandler;
16 import org.eclipse.debug.internal.ui.viewers.update.DebugTargetProxy;
17 import org.eclipse.debug.internal.ui.viewers.update.StackFrameEventHandler;
18 import org.eclipse.jface.viewers.Viewer;
19
20 /**
21  * @since 3.2
22  *
23  */

24 public class JavaDebugTargetProxy extends DebugTargetProxy {
25
26     private JavaThreadEventHandler fThreadEventHandler;
27     /**
28      * @param target
29      */

30     public JavaDebugTargetProxy(IDebugTarget target) {
31         super(target);
32     }
33
34     /* (non-Javadoc)
35      * @see org.eclipse.debug.internal.ui.viewers.update.DebugTargetProxy#createEventHandlers()
36      */

37     protected DebugEventHandler[] createEventHandlers() {
38         fThreadEventHandler = new JavaThreadEventHandler(this);
39         return new DebugEventHandler[] { new DebugTargetEventHandler(this), fThreadEventHandler,
40                 new StackFrameEventHandler(this, fThreadEventHandler)};
41     }
42
43     /* (non-Javadoc)
44      * @see org.eclipse.debug.internal.ui.viewers.update.DebugTargetProxy#installed(org.eclipse.jface.viewers.Viewer)
45      */

46     public void installed(Viewer viewer) {
47         super.installed(viewer);
48         fThreadEventHandler.init(viewer);
49     }
50
51 }
52
Popular Tags