mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
No need to use internal Debug Platform utility method. We have an equivalent in CDT.
This commit is contained in:
parent
05a796346b
commit
63e68514bb
2 changed files with 6 additions and 5 deletions
|
@ -10,7 +10,8 @@ Require-Bundle: org.eclipse.debug.core,
|
|||
org.eclipse.swt,
|
||||
org.eclipse.jface,
|
||||
org.eclipse.ui,
|
||||
org.eclipse.search;bundle-version="3.4.0"
|
||||
org.eclipse.search;bundle-version="3.4.0",
|
||||
org.eclipse.cdt.debug.ui;bundle-version="6.0.0"
|
||||
Eclipse-LazyStart: true
|
||||
Bundle-Activator: org.eclipse.cdt.debug.ui.memory.search.MemorySearchPlugin
|
||||
Bundle-Vendor: %providerName
|
||||
|
|
|
@ -13,10 +13,9 @@ package org.eclipse.cdt.debug.ui.memory.search;
|
|||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||
import org.eclipse.debug.core.model.IMemoryBlock;
|
||||
import org.eclipse.debug.core.model.IMemoryBlockExtension;
|
||||
import org.eclipse.debug.internal.ui.DebugUIPlugin;
|
||||
import org.eclipse.debug.internal.ui.views.memory.MemoryView;
|
||||
import org.eclipse.debug.ui.memory.IMemoryRendering;
|
||||
import org.eclipse.debug.ui.memory.IMemoryRenderingSite;
|
||||
import org.eclipse.jface.action.IAction;
|
||||
|
@ -61,7 +60,7 @@ public class FindAction implements IViewActionDelegate {
|
|||
memBlock = (IMemoryBlock) obj;
|
||||
}
|
||||
|
||||
Shell shell = DebugUIPlugin.getShell();
|
||||
Shell shell = CDebugUIPlugin.getActiveWorkbenchShell();
|
||||
FindReplaceDialog dialog = new FindReplaceDialog(shell, (IMemoryBlockExtension) memBlock,
|
||||
fView, (Properties) fSearchDialogProperties);
|
||||
if(action.getText().equalsIgnoreCase("Find Next"))
|
||||
|
@ -75,7 +74,8 @@ public class FindAction implements IViewActionDelegate {
|
|||
else
|
||||
{
|
||||
dialog.open();
|
||||
|
||||
|
||||
// TODO: finish feature?
|
||||
Object results[] = dialog.getResult();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue