KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > debug > model > AntValue


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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.ant.internal.ui.debug.model;
12
13 import org.eclipse.ant.internal.ui.debug.IAntDebugConstants;
14 import org.eclipse.debug.core.model.IValue;
15 import org.eclipse.debug.core.model.IVariable;
16
17 public class AntValue extends AntDebugElement implements IValue {
18
19     private String JavaDoc fValueString;
20     protected static final IVariable[] EMPTY = new IVariable[0];
21     
22     /**
23      * @param target
24      */

25     public AntValue(AntDebugTarget target, String JavaDoc value) {
26         super(target);
27         fValueString= value;
28     }
29
30     /* (non-Javadoc)
31      * @see org.eclipse.debug.core.model.IValue#getReferenceTypeName()
32      */

33     public String JavaDoc getReferenceTypeName() {
34         return ""; //$NON-NLS-1$
35
}
36
37     /* (non-Javadoc)
38      * @see org.eclipse.debug.core.model.IValue#getValueString()
39      */

40     public String JavaDoc getValueString() {
41         return fValueString;
42     }
43
44     /* (non-Javadoc)
45      * @see org.eclipse.debug.core.model.IValue#isAllocated()
46      */

47     public boolean isAllocated() {
48         return true;
49     }
50
51     /* (non-Javadoc)
52      * @see org.eclipse.debug.core.model.IValue#getVariables()
53      */

54     public IVariable[] getVariables() {
55         return EMPTY;
56     }
57
58     /* (non-Javadoc)
59      * @see org.eclipse.debug.core.model.IValue#hasVariables()
60      */

61     public boolean hasVariables() {
62         return false;
63     }
64
65     /* (non-Javadoc)
66      * @see org.eclipse.debug.core.model.IDebugElement#getModelIdentifier()
67      */

68     public String JavaDoc getModelIdentifier() {
69         return IAntDebugConstants.ID_ANT_DEBUG_MODEL;
70     }
71 }
72
Popular Tags