Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ui] Add Eclipse extension for detecting SARL files faster.
Xtext UI projects provide a Content Type Descriptor within
the plugin.xml file. This is affecting performance on text
searches in Eclipse, since Eclipse can decide that a DSL file
has no binary content based on the content type’s base type

see eclipse/xtext-eclipse#379
close #780

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Dec 22, 2017
1 parent 8c859f7 commit 76d133e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions main/coreplugins/io.sarl.lang.ui/plugin.xml
Expand Up @@ -597,6 +597,22 @@
</menuContribution>
</extension>

<!-- Content Type Descriptor:
Xtext UI projects provide a Content Type Descriptor by contributing to the
org.eclipse.core.contenttype.contentTypes extension point to the plugin.xml file.
This is affecting performance on text searches in Eclipse, since Eclipse can decide
that a DSL file has no binary content based on the content type’s base type.
(xtext-eclipse/issues/379)
-->
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type
base-type="org.eclipse.core.runtime.text"
file-extensions="sarl"
id="io.sarl.lang.SARL.contenttype"
name="SARL File"
priority="normal">
</content-type>
</extension>


<!-- The following elements are added by hand for the SARL project. -->
Expand Down

0 comments on commit 76d133e

Please sign in to comment.