mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Use non-deprecated command constants.
Change-Id: I637c9167149ec9137c0ae5db69528b842424984c Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
parent
9f37660751
commit
8fff462f95
2 changed files with 6 additions and 6 deletions
|
@ -58,11 +58,11 @@ import org.eclipse.swt.widgets.Composite;
|
||||||
import org.eclipse.swt.widgets.Control;
|
import org.eclipse.swt.widgets.Control;
|
||||||
import org.eclipse.swt.widgets.Menu;
|
import org.eclipse.swt.widgets.Menu;
|
||||||
import org.eclipse.ui.IWorkbenchActionConstants;
|
import org.eclipse.ui.IWorkbenchActionConstants;
|
||||||
|
import org.eclipse.ui.IWorkbenchCommandConstants;
|
||||||
import org.eclipse.ui.PlatformUI;
|
import org.eclipse.ui.PlatformUI;
|
||||||
import org.eclipse.ui.actions.ActionFactory;
|
import org.eclipse.ui.actions.ActionFactory;
|
||||||
import org.eclipse.ui.console.actions.TextViewerAction;
|
import org.eclipse.ui.console.actions.TextViewerAction;
|
||||||
import org.eclipse.ui.progress.WorkbenchJob;
|
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);
|
TextViewerAction textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.SELECT_ALL);
|
||||||
textAction.configureAction("Select &All", "", ""); //$NON-NLS-2$ //$NON-NLS-3$
|
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,
|
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction,
|
||||||
ICDebugHelpContextIds.MODULE_DETAIL_PANE_SELECT_ALL_ACTION);
|
ICDebugHelpContextIds.MODULE_DETAIL_PANE_SELECT_ALL_ACTION);
|
||||||
setAction(DETAIL_SELECT_ALL_ACTION, textAction);
|
setAction(DETAIL_SELECT_ALL_ACTION, textAction);
|
||||||
|
|
||||||
textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.COPY);
|
textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.COPY);
|
||||||
textAction.configureAction("&Copy", "", ""); //$NON-NLS-2$ //$NON-NLS-3$
|
textAction.configureAction("&Copy", "", ""); //$NON-NLS-2$ //$NON-NLS-3$
|
||||||
textAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.COPY);
|
textAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_COPY);
|
||||||
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction,
|
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction,
|
||||||
ICDebugHelpContextIds.MODULE_DETAIL_PANE_COPY_ACTION);
|
ICDebugHelpContextIds.MODULE_DETAIL_PANE_COPY_ACTION);
|
||||||
setAction(DETAIL_COPY_ACTION, textAction);
|
setAction(DETAIL_COPY_ACTION, textAction);
|
||||||
|
|
|
@ -67,10 +67,10 @@ import org.eclipse.swt.widgets.Composite;
|
||||||
import org.eclipse.swt.widgets.Control;
|
import org.eclipse.swt.widgets.Control;
|
||||||
import org.eclipse.swt.widgets.Menu;
|
import org.eclipse.swt.widgets.Menu;
|
||||||
import org.eclipse.ui.IWorkbenchActionConstants;
|
import org.eclipse.ui.IWorkbenchActionConstants;
|
||||||
|
import org.eclipse.ui.IWorkbenchCommandConstants;
|
||||||
import org.eclipse.ui.PlatformUI;
|
import org.eclipse.ui.PlatformUI;
|
||||||
import org.eclipse.ui.actions.ActionFactory;
|
import org.eclipse.ui.actions.ActionFactory;
|
||||||
import org.eclipse.ui.progress.WorkbenchJob;
|
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() {
|
private void createActions() {
|
||||||
TextViewerAction textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.SELECT_ALL);
|
TextViewerAction textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.SELECT_ALL);
|
||||||
textAction.configureAction(MessagesForDetailPane.DetailPane_Select_All, "", ""); //$NON-NLS-1$ //$NON-NLS-2$
|
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,
|
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction,
|
||||||
IDsfDebugHelpContextIds.DETAIL_PANE_SELECT_ALL_ACTION);
|
IDsfDebugHelpContextIds.DETAIL_PANE_SELECT_ALL_ACTION);
|
||||||
setAction(DETAIL_SELECT_ALL_ACTION, textAction);
|
setAction(DETAIL_SELECT_ALL_ACTION, textAction);
|
||||||
|
|
||||||
textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.COPY);
|
textAction = new TextViewerAction(fSourceViewer, ITextOperationTarget.COPY);
|
||||||
textAction.configureAction(MessagesForDetailPane.DetailPane_Copy, "", ""); //$NON-NLS-1$ //$NON-NLS-2$
|
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);
|
PlatformUI.getWorkbench().getHelpSystem().setHelp(textAction, IDsfDebugHelpContextIds.DETAIL_PANE_COPY_ACTION);
|
||||||
setAction(DETAIL_COPY_ACTION, textAction);
|
setAction(DETAIL_COPY_ACTION, textAction);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue