KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 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 java.util.ArrayList JavaDoc;
14 import java.util.List JavaDoc;
15 import org.eclipse.debug.core.model.IValue;
16 import org.eclipse.debug.core.model.IVariable;
17
18 public class AntPropertiesValue extends AntDebugElement implements IValue {
19     
20     List JavaDoc fProperties= new ArrayList JavaDoc();
21     
22     public AntPropertiesValue(AntDebugTarget target) {
23         super(target);
24     }
25     
26     /* (non-Javadoc)
27      * @see org.eclipse.debug.core.model.IValue#getReferenceTypeName()
28      */

29     public String JavaDoc getReferenceTypeName() {
30         return ""; //$NON-NLS-1$
31
}
32     /* (non-Javadoc)
33      * @see org.eclipse.debug.core.model.IValue#getValueString()
34      */

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

41     public boolean isAllocated() {
42         return true;
43     }
44     /* (non-Javadoc)
45      * @see org.eclipse.debug.core.model.IValue#getVariables()
46      */

47     public IVariable[] getVariables() {
48         return (IVariable[])fProperties.toArray(new IVariable[fProperties.size()]);
49     }
50     /* (non-Javadoc)
51      * @see org.eclipse.debug.core.model.IValue#hasVariables()
52      */

53     public boolean hasVariables() {
54         return true;
55     }
56     
57     protected void addProperties(List JavaDoc properties) {
58         fProperties.addAll(properties);
59     }
60
61     protected List JavaDoc getProperties() {
62         return fProperties;
63     }
64 }
65
Popular Tags