Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/TableRenderingContentDescriptor.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/TableRenderingContentDescriptor.java50
1 files changed, 25 insertions, 25 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/TableRenderingContentDescriptor.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/TableRenderingContentDescriptor.java
index 4ab4a1383..2596cddfa 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/TableRenderingContentDescriptor.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/renderings/TableRenderingContentDescriptor.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -26,14 +26,14 @@ public class TableRenderingContentDescriptor{
private BigInteger fMemoryBlockBaseAddress; // base address of the memory block when this input is set
private BigInteger fStartAddress;
private BigInteger fEndAddress;
-
+
private int fAddressSize = -1;
private int fAddressableSize = -1;
-
+
private boolean fAlignAddress = true;
-
+
private boolean fIsDynamicLoad;
-
+
public TableRenderingContentDescriptor(AbstractBaseTableRendering rendering)
{
fRendering = rendering;
@@ -48,7 +48,7 @@ public class TableRenderingContentDescriptor{
public BigInteger getLoadAddress() {
return fLoadAddress;
}
-
+
public IMemoryBlock getMemoryBlock()
{
return fRendering.getMemoryBlock();
@@ -65,7 +65,7 @@ public class TableRenderingContentDescriptor{
fLoadAddress = address;
}
public BigInteger getContentBaseAddress() {
-
+
if (fMemoryBlockBaseAddress == null)
{
try {
@@ -74,10 +74,10 @@ public class TableRenderingContentDescriptor{
fMemoryBlockBaseAddress = new BigInteger("0"); //$NON-NLS-1$
}
}
-
+
return fMemoryBlockBaseAddress;
}
-
+
public void updateContentBaseAddress() throws DebugException {
IMemoryBlock memoryBlock = fRendering.getMemoryBlock();
if (memoryBlock instanceof IMemoryBlockExtension)
@@ -85,7 +85,7 @@ public class TableRenderingContentDescriptor{
else
fMemoryBlockBaseAddress = BigInteger.valueOf(memoryBlock.getStartAddress());
}
-
+
/**
* @return start address of the memory block
*/
@@ -103,15 +103,15 @@ public class TableRenderingContentDescriptor{
}
} catch (DebugException e) {
// default to 0 if we have trouble getting the start address
- fStartAddress = BigInteger.valueOf(0);
+ fStartAddress = BigInteger.valueOf(0);
}
-
+
if (fStartAddress == null)
fStartAddress = BigInteger.valueOf(0);
}
- return fStartAddress;
+ return fStartAddress;
}
-
+
/**
* @return end address of the memory block
*/
@@ -130,7 +130,7 @@ public class TableRenderingContentDescriptor{
} catch (DebugException e) {
fEndAddress = null;
}
-
+
if (fEndAddress == null)
{
int addressSize;
@@ -139,30 +139,30 @@ public class TableRenderingContentDescriptor{
} catch (DebugException e) {
addressSize = 4;
}
-
+
endAddress = BigInteger.valueOf(2);
endAddress = endAddress.pow(addressSize*8);
endAddress = endAddress.subtract(BigInteger.valueOf(1));
fEndAddress = endAddress;
}
}
-
+
if (fEndAddress == null)
fEndAddress = BigInteger.valueOf(Integer.MAX_VALUE);
}
return fEndAddress;
}
-
+
public int getNumLines()
{
return fNumLines;
}
-
+
public void setNumLines(int numLines)
{
fNumLines = numLines;
}
-
+
public AbstractBaseTableRendering getRendering()
{
return fRendering;
@@ -183,27 +183,27 @@ public class TableRenderingContentDescriptor{
public void setAddressSize(int addressSize) {
fAddressSize = addressSize;
}
-
+
public void setDynamicLoad(boolean dynamic)
{
fIsDynamicLoad = dynamic;
}
-
+
public boolean isDynamicLoad()
{
return fIsDynamicLoad;
}
-
+
public boolean isMemoryBlockBaseAddressInitialized()
{
return (fMemoryBlockBaseAddress != null);
}
-
+
public boolean isAlignAddressToBoundary()
{
return fAlignAddress;
}
-
+
public void setAlignAddressToBoundary(boolean align)
{
fAlignAddress = align;

Back to the top