diff --git a/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/MemorySearchResultsPage.java b/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/MemorySearchResultsPage.java index a2198ebb887..29fbebddfcc 100644 --- a/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/MemorySearchResultsPage.java +++ b/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/MemorySearchResultsPage.java @@ -178,16 +178,19 @@ public Object[] getElements(Object inputElement) { public void selectionChanged(final SelectionChangedEvent event) { IMemoryRenderingContainer containers[] = ((IMemorySearchQuery) fQuery).getMemoryView() .getMemoryRenderingContainers(); - if (containers == null || containers.length == 0) return; + if (containers == null || containers.length == 0) + return; if (event.getSelection() instanceof StructuredSelection && ((StructuredSelection) event.getSelection()) .getFirstElement() instanceof MemoryMatch match) { - if (match == null) return; + if (match == null) + return; for (int i = 0; i < containers.length; i++) { IMemoryRendering rendering = containers[i].getActiveRendering(); - if (!(rendering instanceof IRepositionableMemoryRendering repositionable)) continue; + if (!(rendering instanceof IRepositionableMemoryRendering repositionable)) + continue; try { repositionable.goToAddress(match.getStartAddress()); @@ -224,7 +227,8 @@ public void doubleClick(DoubleClickEvent event) { if (event.getSelection() instanceof StructuredSelection && ((StructuredSelection) event.getSelection()).getFirstElement() instanceof MemoryMatch) { IWorkbenchPart wb = ((IMemorySearchQuery) fQuery).getMemoryView().getSite().getPart(); - if (wb == null) return; + if (wb == null) + return; getSite().getPage().activate(wb); } }