diff options
author | mahmed | 2012-06-12 13:13:25 +0000 |
---|---|---|
committer | Mikhail Khodjaiants | 2012-07-09 20:12:45 +0000 |
commit | b6556bab86469ab92ee337a755251b9aae292921 (patch) | |
tree | f825f5d89bb8551639be0afbc796832fd566ff77 | |
parent | 8f50caf1349944352b9478a6c433940b69c0dcb7 (diff) | |
download | org.eclipse.cdt-b6556bab86469ab92ee337a755251b9aae292921.tar.gz org.eclipse.cdt-b6556bab86469ab92ee337a755251b9aae292921.tar.xz org.eclipse.cdt-b6556bab86469ab92ee337a755251b9aae292921.zip |
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.java | 7 |
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 04fdee5f259..8f591081bb8 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(); } } |