Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2016-09-26 10:16:25 +0000
committerDani Megert2016-09-26 10:30:36 +0000
commit5bcb7ac5045743f9ec17895a9a12318dd90ea4cb (patch)
treeea2d98cee208a040d2ee43fef458d3775a5dc90d /org.eclipse.ui.genericeditor/plugin.xml
parent8871738e5b595e7715499161b04980d9f16df820 (diff)
downloadeclipse.platform.text-5bcb7ac5045743f9ec17895a9a12318dd90ea4cb.tar.gz
eclipse.platform.text-5bcb7ac5045743f9ec17895a9a12318dd90ea4cb.tar.xz
eclipse.platform.text-5bcb7ac5045743f9ec17895a9a12318dd90ea4cb.zip
Bug 497871 - Generic and extensible text editor
This change creates a new extensible text editor, with extension points for: * contentAssist * hover * syntax highlighting Some unit tests show examples of extensions. You can load an IDE with the suggested change (including org.eclipse.ui.editors.tests) and get a syntax highlighter, a hover support and some content assist on the plain text editor. Bug: 497871 Bug: 496117 Bug: 496115 Bug: 496300 Signed-off-by: Mickael Istria <mistria@redhat.com> Signed-off-by: Sopot Cela <scela@redhat.com> Change-Id: I2eec71e4620364aa11c500ec07e54c693863cf44
Diffstat (limited to 'org.eclipse.ui.genericeditor/plugin.xml')
-rw-r--r--org.eclipse.ui.genericeditor/plugin.xml64
1 files changed, 64 insertions, 0 deletions
diff --git a/org.eclipse.ui.genericeditor/plugin.xml b/org.eclipse.ui.genericeditor/plugin.xml
new file mode 100644
index 00000000000..dba3b9ab914
--- /dev/null
+++ b/org.eclipse.ui.genericeditor/plugin.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension-point id="presentationReconcilers" name="%ExtPoint.presentationReconciliers" schema="schema/presentationReconcilers.exsd"/>
+ <extension-point id="contentAssistProcessors" name="%ExtPoint.contentAssistProcessors" schema="schema/contentAssistProcessors.exsd"/>
+ <extension-point id="hoverProviders" name="%ExtPoint.hoverProviders" schema="schema/hoverProviders.exsd"/>
+ <extension
+ point="org.eclipse.ui.editors">
+ <editor
+ class="org.eclipse.ui.internal.genericeditor.ExtensionBasedTextEditor"
+ default="false"
+ icon="icons/full/obj16/geneditor.png"
+ id="org.eclipse.ui.genericeditor.GenericEditor"
+ name="%genericEditor_name">
+ <contentTypeBinding
+ contentTypeId="org.eclipse.core.runtime.text">
+ </contentTypeBinding>
+ </editor>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ description="%findReferencesCommand_description"
+ id="org.eclipse.ui.genericeditor.findReferences"
+ name="%findReferencesCommand_name">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.contexts">
+ <context
+ description="%context_description"
+ id="org.eclipse.ui.genericeditor.genericEditorContext"
+ name="%context_name"
+ parentId="org.eclipse.ui.textEditorScope">
+ </context>
+ </extension>
+ <extension
+ point="org.eclipse.ui.bindings">
+ <key
+ commandId="org.eclipse.ui.edit.text.open.hyperlink"
+ contextId="org.eclipse.ui.genericeditor.genericEditorContext"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="F3">
+ </key>
+ <key
+ commandId="org.eclipse.ui.genericeditor.findReferences"
+ contextId="org.eclipse.ui.genericeditor.genericEditorContext"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+M2+G">
+ </key>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ allPopups="true"
+ locationURI="popup:#TextEditorContext?after=additions">
+ <command
+ commandId="org.eclipse.ui.genericeditor.findReferences"
+ style="push">
+ </command>
+ </menuContribution>
+ </extension>
+
+</plugin>

Back to the top