Skip to main content
summaryrefslogtreecommitdiffstats
path: root/memory
diff options
context:
space:
mode:
authorJohn Cortell2010-05-19 15:54:45 -0400
committerJohn Cortell2010-05-19 15:54:45 -0400
commitb06c97830adfdb428281f28e709f53661b810aa6 (patch)
treec0543f82c60d6db79bc963a85b4095a1d9dfd06a /memory
parentfee4df23aed7fa187f19157329f107b3159bffc8 (diff)
downloadorg.eclipse.cdt-b06c97830adfdb428281f28e709f53661b810aa6.tar.gz
org.eclipse.cdt-b06c97830adfdb428281f28e709f53661b810aa6.tar.xz
org.eclipse.cdt-b06c97830adfdb428281f28e709f53661b810aa6.zip
Fixed excessive indentation in method. No functional change.
Diffstat (limited to 'memory')
-rw-r--r--memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java68
1 files changed, 34 insertions, 34 deletions
diff --git a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
index b9bddfe1bb..7a6adf78d4 100644
--- a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
+++ b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
@@ -951,42 +951,42 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IM
*/
private IMemoryRendering populateTabWithRendering(final CTabItem tab, final IMemoryBlockRetrieval retrieval, Object context, String memorySpaceId, String expression) throws DebugException {
IMemoryRenderingType type = DebugUITools.getMemoryRenderingManager().getRenderingType(getDefaultRenderingTypeId());
- IMemoryRenderingContainer container = (IMemoryRenderingContainer)tab.getData(KEY_CONTAINER);
- if (container == null) {
- container = new MemoryBrowserRenderingContainer();
- fCurrentContainers.add(container);
- }
-
- IMemoryRendering rendering = getRenderings(tab).get(memorySpaceId);
- if (rendering == null) {
- // No rendering yet. Create rendering and associated memory block.
- // createMemoryBlock will throw if expression cannot be resolved
- IMemoryBlockExtension block = createMemoryBlock(retrieval, expression, context, memorySpaceId); //$NON-NLS-1$
- try {
- rendering = type.createRendering();
- } catch (CoreException e) {
- MemoryBrowserPlugin.getDefault().getLog().log(new Status(Status.ERROR, MemoryBrowserPlugin.PLUGIN_ID, "", e)); //$NON-NLS-1$
- return null;
- }
-
- rendering.init(container, block);
- container.addMemoryRendering(rendering);
- rendering.createControl(tab.getParent());
- getRenderings(tab).put(memorySpaceId, rendering);
- getMemoryBlocks(tab).add(block);
- rendering.addPropertyChangeListener(new RenderingPropertyChangeListener(tab, rendering));
+ IMemoryRenderingContainer container = (IMemoryRenderingContainer)tab.getData(KEY_CONTAINER);
+ if (container == null) {
+ container = new MemoryBrowserRenderingContainer();
+ fCurrentContainers.add(container);
+ }
+
+ IMemoryRendering rendering = getRenderings(tab).get(memorySpaceId);
+ if (rendering == null) {
+ // No rendering yet. Create rendering and associated memory block.
+ // createMemoryBlock will throw if expression cannot be resolved
+ IMemoryBlockExtension block = createMemoryBlock(retrieval, expression, context, memorySpaceId); //$NON-NLS-1$
+ try {
+ rendering = type.createRendering();
+ } catch (CoreException e) {
+ MemoryBrowserPlugin.getDefault().getLog().log(new Status(Status.ERROR, MemoryBrowserPlugin.PLUGIN_ID, "", e)); //$NON-NLS-1$
+ return null;
}
- tab.setControl(rendering.getControl());
- tab.getParent().setSelection(0);
- tab.setData(KEY_RENDERING, rendering);
- tab.setData(KEY_MEMORY_SPACE, memorySpaceId);
- tab.setData(KEY_CONTAINER, container);
- tab.setData(KEY_RENDERING_TYPE, type);
- getSite().getSelectionProvider().setSelection(new StructuredSelection(tab.getData(KEY_RENDERING)));
- updateLabel(tab, rendering);
-
- return rendering;
+ rendering.init(container, block);
+ container.addMemoryRendering(rendering);
+ rendering.createControl(tab.getParent());
+ getRenderings(tab).put(memorySpaceId, rendering);
+ getMemoryBlocks(tab).add(block);
+ rendering.addPropertyChangeListener(new RenderingPropertyChangeListener(tab, rendering));
+ }
+
+ tab.setControl(rendering.getControl());
+ tab.getParent().setSelection(0);
+ tab.setData(KEY_RENDERING, rendering);
+ tab.setData(KEY_MEMORY_SPACE, memorySpaceId);
+ tab.setData(KEY_CONTAINER, container);
+ tab.setData(KEY_RENDERING_TYPE, type);
+ getSite().getSelectionProvider().setSelection(new StructuredSelection(tab.getData(KEY_RENDERING)));
+ updateLabel(tab, rendering);
+
+ return rendering;
}

Back to the top