1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

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
This commit is contained in:
mahmed 2012-06-12 16:13:25 +03:00 committed by Mikhail Khodjaiants
parent ba52a9aadb
commit 92a473a130

View file

@ -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();
}
}