1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 12:35:22 +02:00

[231835] TVT34:TCT189: "work with compile commands" does not display

This commit is contained in:
Radoslav Gerganov 2008-05-14 15:22:28 +00:00
parent 74c5993c32
commit 753f09c04b

View file

@ -17,6 +17,7 @@
* Radoslav Gerganov (ProSyst) - [181563] Fix hardcoded Ctrl+Space for remote shell content assist * Radoslav Gerganov (ProSyst) - [181563] Fix hardcoded Ctrl+Space for remote shell content assist
* David McKnight (IBM) - [223103] [cleanup] fix broken externalized strings * David McKnight (IBM) - [223103] [cleanup] fix broken externalized strings
* Radoslav Gerganov (ProSyst) - [221392] [shells] Undo command doesn't work with Eclipse 3.4M5 * Radoslav Gerganov (ProSyst) - [221392] [shells] Undo command doesn't work with Eclipse 3.4M5
* Radoslav Gerganov (ProSyst) - [231835] TVT34:TCT189: "work with compile commands" does not display
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.shells.ui.view; package org.eclipse.rse.shells.ui.view;
@ -239,7 +240,7 @@ public class SystemCommandEditor extends SourceViewer
private void initializeActions() private void initializeActions()
{ {
IUndoManager undoManager = getUndoManager(); IUndoManager undoManager = getUndoManager();
if (undoManager instanceof IUndoManagerExtension) { if (undoManager instanceof IUndoManagerExtension && _site != null) {
IUndoManagerExtension undoManagerExt = (IUndoManagerExtension) undoManager; IUndoManagerExtension undoManagerExt = (IUndoManagerExtension) undoManager;
_undoAction = new UndoActionHandler(_site, undoManagerExt.getUndoContext()); _undoAction = new UndoActionHandler(_site, undoManagerExt.getUndoContext());
fGlobalActions.put(ITextEditorActionConstants.UNDO, _undoAction); fGlobalActions.put(ITextEditorActionConstants.UNDO, _undoAction);
@ -315,7 +316,9 @@ public class SystemCommandEditor extends SourceViewer
IActionBars actionBars = getActionBars(); IActionBars actionBars = getActionBars();
if (actionBars != null) if (actionBars != null)
{ {
actionBars.setGlobalActionHandler(ITextEditorActionConstants.UNDO, _undoAction); if (_undoAction != null) {
actionBars.setGlobalActionHandler(ITextEditorActionConstants.UNDO, _undoAction);
}
actionBars.setGlobalActionHandler(ITextEditorActionConstants.CUT, _cutAction); actionBars.setGlobalActionHandler(ITextEditorActionConstants.CUT, _cutAction);
actionBars.setGlobalActionHandler(ITextEditorActionConstants.COPY, _copyAction); actionBars.setGlobalActionHandler(ITextEditorActionConstants.COPY, _copyAction);
actionBars.setGlobalActionHandler(ITextEditorActionConstants.PASTE, _pasteAction); actionBars.setGlobalActionHandler(ITextEditorActionConstants.PASTE, _pasteAction);