mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 03:23:07 +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 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>
This commit is contained in:
parent
8f50caf134
commit
b6556bab86
1 changed files with 2 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue