1 11 package org.eclipse.ant.internal.ui.debug.model; 12 13 import org.eclipse.debug.core.model.IValue; 14 import org.eclipse.debug.core.model.IVariable; 15 16 19 public class AntProperty extends AntDebugElement implements IVariable { 20 21 private String fName; 22 private AntValue fValue; 23 private String fLabel; 24 25 33 public AntProperty(AntDebugTarget target, String name, String value) { 34 super(target); 35 fName = name; 36 fValue= new AntValue(target, value); 37 } 38 39 42 public IValue getValue() { 43 return fValue; 44 } 45 46 49 public String getName() { 50 return fName; 51 } 52 53 56 public String getReferenceTypeName() { 57 return ""; } 59 60 63 public boolean hasValueChanged() { 64 return false; 65 } 66 67 70 public void setValue(String expression) { 71 } 72 73 76 public void setValue(IValue value) { 77 } 78 79 82 public boolean supportsValueModification() { 83 return false; 84 } 85 86 89 public boolean verifyValue(String expression) { 90 return false; 91 } 92 93 96 public boolean verifyValue(IValue value) { 97 return false; 98 } 99 100 103 public String getText() { 104 if (fLabel == null) { 105 StringBuffer buffer= new StringBuffer (getName()); 106 buffer.append("= "); buffer.append(fValue.getValueString()); 108 fLabel= buffer.toString(); 109 } 110 return fLabel; 111 } 112 } 113 | Popular Tags |