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:
parent
ba52a9aadb
commit
92a473a130
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