mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
use extendedTextEditor
This commit is contained in:
parent
9f38e59620
commit
74c8d54a44
1 changed files with 11 additions and 4 deletions
|
@ -26,8 +26,8 @@ import org.eclipse.ui.actions.WorkspaceModifyOperation;
|
||||||
import org.eclipse.ui.dialogs.SaveAsDialog;
|
import org.eclipse.ui.dialogs.SaveAsDialog;
|
||||||
import org.eclipse.ui.part.FileEditorInput;
|
import org.eclipse.ui.part.FileEditorInput;
|
||||||
import org.eclipse.ui.texteditor.DefaultRangeIndicator;
|
import org.eclipse.ui.texteditor.DefaultRangeIndicator;
|
||||||
|
import org.eclipse.ui.texteditor.ExtendedTextEditor;
|
||||||
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
|
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
|
||||||
import org.eclipse.ui.texteditor.StatusTextEditor;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,7 +36,11 @@ import org.eclipse.ui.texteditor.StatusTextEditor;
|
||||||
/**
|
/**
|
||||||
* Assembly text editor
|
* Assembly text editor
|
||||||
*/
|
*/
|
||||||
public class AsmTextEditor extends StatusTextEditor {
|
public class AsmTextEditor extends ExtendedTextEditor {
|
||||||
|
//public class AsmTextEditor extends StatusTextEditor {
|
||||||
|
// FIXME: Should this editor have a different preference store ?
|
||||||
|
// For now we are sharing with the CEditor and any changes will in the
|
||||||
|
// setting of the CEditor will be reflected in this editor.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new text editor.
|
* Creates a new text editor.
|
||||||
|
@ -53,12 +57,15 @@ public class AsmTextEditor extends StatusTextEditor {
|
||||||
setSourceViewerConfiguration(new AsmSourceViewerConfiguration(textTools, this));
|
setSourceViewerConfiguration(new AsmSourceViewerConfiguration(textTools, this));
|
||||||
setDocumentProvider(CUIPlugin.getDefault().getDocumentProvider());
|
setDocumentProvider(CUIPlugin.getDefault().getDocumentProvider());
|
||||||
setRangeIndicator(new DefaultRangeIndicator());
|
setRangeIndicator(new DefaultRangeIndicator());
|
||||||
|
// FIXME: Should this editor have a different preference store ?
|
||||||
|
// For now we are sharing with the CEditor and any changes will in the
|
||||||
|
// setting of the CEditor will be reflected in this editor.
|
||||||
setPreferenceStore(CUIPlugin.getDefault().getPreferenceStore());
|
setPreferenceStore(CUIPlugin.getDefault().getPreferenceStore());
|
||||||
setEditorContextMenuId("#ASMEditorContext"); //$NON-NLS-1$
|
setEditorContextMenuId("#ASMEditorContext"); //$NON-NLS-1$
|
||||||
setRulerContextMenuId("#ASMEditorRulerContext"); //$NON-NLS-1$
|
setRulerContextMenuId("#ASMEditorRulerContext"); //$NON-NLS-1$
|
||||||
//setOutlinerContextMenuId("#CEditorOutlinerContext"); //$NON-NLS-1$
|
//setOutlinerContextMenuId("#CEditorOutlinerContext"); //$NON-NLS-1$
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The <code>TextEditor</code> implementation of this
|
* The <code>TextEditor</code> implementation of this
|
||||||
* <code>IEditorPart</code> method returns <code>true</code>.
|
* <code>IEditorPart</code> method returns <code>true</code>.
|
||||||
|
|
Loading…
Add table
Reference in a new issue