summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormahmed2012-06-12 09:13:25 (EDT)
committer Mikhail Khodjaiants2012-07-09 17:07:43 (EDT)
commit92a473a1309c3f1f47c7d8123c4f8f51b44f648e (patch)
tree4435e072a6a547fe087f47ccf7f5534600f77864
parentba52a9aadbcc3a74817825036c04a4e3224f1321 (diff)
downloadorg.eclipse.cdt-92a473a1309c3f1f47c7d8123c4f8f51b44f648e.zip
org.eclipse.cdt-92a473a1309c3f1f47c7d8123c4f8f51b44f648e.tar.gz
org.eclipse.cdt-92a473a1309c3f1f47c7d8123c4f8f51b44f648e.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
-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();
}
}