summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormahmed2012-06-12 09:13:25 (EDT)
committerMikhail Khodjaiants2012-07-09 16:12:45 (EDT)
commitb6556bab86469ab92ee337a755251b9aae292921 (patch)
treef825f5d89bb8551639be0afbc796832fd566ff77
parent8f50caf1349944352b9478a6c433940b69c0dcb7 (diff)
downloadorg.eclipse.cdt-b6556bab86469ab92ee337a755251b9aae292921.zip
org.eclipse.cdt-b6556bab86469ab92ee337a755251b9aae292921.tar.gz
org.eclipse.cdt-b6556bab86469ab92ee337a755251b9aae292921.tar.bz2
Bug 382119
Create the Find/Replace dialog with the new memory block reference to fix RejectedExecutionException problem when find after re-launching project Change-Id: I1d9b2ec5ace5bbc4d82adb14075f613dbe7c5d57 Reviewed-on: https://git.eclipse.org/r/6323 Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com> IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com> Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
-rw-r--r--memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceHandler.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceHandler.java b/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceHandler.java
index 04fdee5..8f59108 100644
--- a/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceHandler.java
+++ b/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceHandler.java
@@ -25,7 +25,6 @@ import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PlatformUI;
public class FindReplaceHandler extends AbstractHandler implements IHandler {
- private static FindReplaceDialog dialog = null;
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart();
@@ -48,10 +47,8 @@ public class FindReplaceHandler extends AbstractHandler implements IHandler {
}
if (memBlock instanceof IMemoryBlockExtension) {
- if (dialog == null) {
- dialog = new FindReplaceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- (IMemoryBlockExtension) memBlock, fView, FindAction.getProperties(), null);
- }
+ FindReplaceDialog dialog = new FindReplaceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
+ (IMemoryBlockExtension) memBlock, fView, FindAction.getProperties(), null);
dialog.open();
}
}