diff options
author | Till Brychcy | 2018-07-24 19:04:06 +0000 |
---|---|---|
committer | Till Brychcy | 2018-07-24 19:06:01 +0000 |
commit | c57ecc40192949a008423009363558df39cf5452 (patch) | |
tree | 165e75dc50ddb3f12bf2489d432fe75484ae8d19 /org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java | |
parent | 48b6ff06a9c54785da546d02846a8060337de7ee (diff) | |
download | eclipse.platform.text-c57ecc40192949a008423009363558df39cf5452.tar.gz eclipse.platform.text-c57ecc40192949a008423009363558df39cf5452.tar.xz eclipse.platform.text-c57ecc40192949a008423009363558df39cf5452.zip |
Bug 321410 - [EditorMgmt][navigation] Provide Mini-map of text in editorY20180725-2200I20180725-2000
Change-Id: Ieebad527d54f73ba7d61fe0754d14158f1ace8a3
Signed-off-by: Till Brychcy <register.eclipse@brychcy.de>
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java')
-rw-r--r-- | org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java index e04180eb632..b9de286d82d 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java @@ -596,7 +596,7 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit /** * The editor's last edit position - * + * * @since 3.0 */ private Position fLocalLastEditPosition; @@ -6172,6 +6172,9 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit return (T) fColumnSupport; } + if (ITextViewer.class.equals(required)) + return (fSourceViewer == null ? null : (T) fSourceViewer); + return super.getAdapter(required); } |