Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-10-10 17:28:09 -0400
committerAlexander Kurtakov2019-10-10 17:28:09 -0400
commit8fff462f9530451c2e4d22b0374abd29ae5fb19f (patch)
tree4e484e59d81919be1eeabd15c594de4d78135a09
parent9f37660751b5b6c5198ed3e2063e5b5bac7c0938 (diff)
downloadorg.eclipse.cdt-8fff462f9530451c2e4d22b0374abd29ae5fb19f.tar.gz
org.eclipse.cdt-8fff462f9530451c2e4d22b0374abd29ae5fb19f.tar.xz
org.eclipse.cdt-8fff462f9530451c2e4d22b0374abd29ae5fb19f.zip
Use non-deprecated command constants.
Change-Id: I637c9167149ec9137c0ae5db69528b842424984c Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java6
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/modules/detail/ModuleDetailPane.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java
index 03acaf5182..f86aeb821c 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/modules/ModuleDetailPane.java
@@ -58,11 +58,11 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchCommandConstants;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.console.actions.TextViewerAction;
import org.eclipse.ui.progress.WorkbenchJob;
-import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
/**
*
@@ -307,14 +307,14 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
TextViewerAction textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.SELECT_ALL);
textAction.configureAction("Select &All", "", ""); //$NON-NLS-2$ //$NON-NLS-3$
- textAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.SELECT_ALL);
+ textAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_SELECT_ALL);
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction,
ICDebugHelpContextIds.MODULE_DETAIL_PANE_SELECT_ALL_ACTION);
setAction(DETAIL_SELECT_ALL_ACTION, textAction);
textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.COPY);
textAction.configureAction("&Copy", "", ""); //$NON-NLS-2$ //$NON-NLS-3$
- textAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY);
+ textAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_COPY);
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction,
ICDebugHelpContextIds.MODULE_DETAIL_PANE_COPY_ACTION);
setAction(DETAIL_COPY_ACTION, textAction);
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/modules/detail/ModuleDetailPane.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/modules/detail/ModuleDetailPane.java
index b06cffb552..5f2302adbe 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/modules/detail/ModuleDetailPane.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/modules/detail/ModuleDetailPane.java
@@ -67,10 +67,10 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchCommandConstants;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.progress.WorkbenchJob;
-import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
/**
*
@@ -342,14 +342,14 @@ public class ModuleDetailPane extends ModulesAbstractDetailPane implements IAdap
private void createActions() {
TextViewerAction textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.SELECT_ALL);
textAction.configureAction(MessagesForDetailPane.DetailPane_Select_All, "", ""); //$NON-NLS-1$ //$NON-NLS-2$
- textAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.SELECT_ALL);
+ textAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_SELECT_ALL);
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction,
IDsfDebugHelpContextIds.DETAIL_PANE_SELECT_ALL_ACTION);
setAction(DETAIL_SELECT_ALL_ACTION, textAction);
textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.COPY);
textAction.configureAction(MessagesForDetailPane.DetailPane_Copy, "", ""); //$NON-NLS-1$ //$NON-NLS-2$
- textAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY);
+ textAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_COPY);
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction, IDsfDebugHelpContextIds.DETAIL_PANE_COPY_ACTION);
setAction(DETAIL_COPY_ACTION, textAction);

Back to the top