mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +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;
|
import org.eclipse.ui.PlatformUI;
|
||||||
|
|
||||||
public class FindReplaceHandler extends AbstractHandler implements IHandler {
|
public class FindReplaceHandler extends AbstractHandler implements IHandler {
|
||||||
private static FindReplaceDialog dialog = null;
|
|
||||||
|
|
||||||
public Object execute(ExecutionEvent event) throws ExecutionException {
|
public Object execute(ExecutionEvent event) throws ExecutionException {
|
||||||
IWorkbenchPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart();
|
IWorkbenchPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart();
|
||||||
|
@ -48,10 +47,8 @@ public class FindReplaceHandler extends AbstractHandler implements IHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (memBlock instanceof IMemoryBlockExtension) {
|
if (memBlock instanceof IMemoryBlockExtension) {
|
||||||
if (dialog == null) {
|
FindReplaceDialog dialog = new FindReplaceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
|
||||||
dialog = new FindReplaceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
|
(IMemoryBlockExtension) memBlock, fView, FindAction.getProperties(), null);
|
||||||
(IMemoryBlockExtension) memBlock, fView, FindAction.getProperties(), null);
|
|
||||||
}
|
|
||||||
dialog.open();
|
dialog.open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue