KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > core > logicalstructures > CompositeStructureType


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

11 package org.eclipse.jdt.internal.debug.core.logicalstructures;
12
13 import org.eclipse.core.runtime.IProgressMonitor;
14 import org.eclipse.debug.core.DebugException;
15 import org.eclipse.jdt.debug.core.IEvaluationRunnable;
16 import org.eclipse.jdt.debug.core.IJavaThread;
17
18 /**
19  * Logical structure type for SWT composites.
20  */

21 public class CompositeStructureType extends LogicalObjectStructureClassType {
22
23     /* (non-Javadoc)
24      * @see org.eclipse.jdt.internal.debug.core.logicalstructures.LogicalObjectStructureType#getEvaluation()
25      */

26     protected IEvaluationRunnable getEvaluation() {
27         return new IEvaluationRunnable() {
28             /* (non-Javadoc)
29              * @see org.eclipse.jdt.debug.core.IEvaluationRunnable#run(org.eclipse.jdt.debug.core.IJavaThread, org.eclipse.core.runtime.IProgressMonitor)
30              */

31             public void run(IJavaThread thread, IProgressMonitor monitor) throws DebugException {
32                 setLogicalStructure(getObject().sendMessage("getChildren", "()[Lorg/eclipse/swt/widgets/Control;", null, thread, false)); //$NON-NLS-1$ //$NON-NLS-2$
33
}
34             
35         };
36     }
37
38     /* (non-Javadoc)
39      * @see org.eclipse.jdt.internal.debug.core.logicalstructures.LogicalObjectStructureClassType#getTargetClassName()
40      */

41     protected String JavaDoc getTargetClassName() {
42         return "org.eclipse.swt.widgets.Composite"; //$NON-NLS-1$
43
}
44
45 }
46
Popular Tags