1 11 package org.eclipse.debug.internal.ui.views.variables; 12 13 import org.eclipse.debug.core.DebugException; 14 import org.eclipse.debug.core.ILaunch; 15 import org.eclipse.debug.core.model.IDebugTarget; 16 import org.eclipse.debug.core.model.IIndexedValue; 17 import org.eclipse.debug.core.model.IVariable; 18 19 22 public class IndexedValuePartition implements IIndexedValue { 23 24 private int fOffset; 26 27 private int fLength; 29 30 private IIndexedValue fValue; 32 33 40 public IndexedValuePartition(IIndexedValue value, int offset, int length) { 41 fValue = value; 42 fOffset = offset; 43 fLength = length; 44 } 45 46 49 public int getSize() { 50 return fLength; 51 } 52 53 56 public IVariable getVariable(int offset) throws DebugException { 57 return fValue.getVariable(offset); 58 } 59 60 63 public String getReferenceTypeName() throws DebugException { 64 return fValue.getReferenceTypeName(); 65 } 66 67 70 public String getValueString() { 71 return ""; } 73 74 77 public IVariable[] getVariables() throws DebugException { 78 return getVariables(fOffset, fLength); 79 } 80 81 84 public boolean hasVariables() { 85 return fLength > 0; 86 } 87 88 91 public boolean isAllocated() throws DebugException { 92 return fValue.isAllocated(); 93 } 94 95 98 public IDebugTarget getDebugTarget() { 99 return fValue.getDebugTarget(); 100 } 101 102 105 public ILaunch getLaunch() { 106 return fValue.getLaunch(); 107 } 108 109 112 public String getModelIdentifier() { 113 return fValue.getModelIdentifier(); 114 } 115 116 119 public Object getAdapter(Class adapter) { 120 return fValue.getAdapter(adapter); 121 } 122 123 126 public IVariable[] getVariables(int offset, int length) throws DebugException { 127 return fValue.getVariables(offset, length); 128 } 129 130 133 public int getInitialOffset() { 134 return fOffset; 135 } 136 137 } 138 | Popular Tags |