Skip to content

Commit

Permalink
Tweaks to eclipse boot.ls content type setups
Browse files Browse the repository at this point in the history
See: #320
  • Loading branch information
kdvolder committed Jul 16, 2019
1 parent 76636cc commit 4243d31
Showing 1 changed file with 24 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,31 @@
<extension
point="org.eclipse.core.contenttype.contentTypes">

<!--
<!--
WARNING!
TLDR; Always put
base-type="org.eclipse.core.runtime.text"
in *every* content type definiton.
Longer explanation:
Do not use
base-type="org.eclipse.jdt.core.javaProperties"
This causes reconciling of *any* properties file
this causes reconciling of *any* properties file
as if it was a boot properties file.
Similarly
base-type="org.eclipse.core.runtime.xml"
causes reconciling of *any* XML file
as if it was a Spring xml config file.
Also to avoid some suspected bug/weirdness in Lsp4e
which I do not really understand, a base-type must allways
be added. Therefore the only possible choice
that makes everything work is
"org.eclipse.core.runtime.text".
See: https://github.com/spring-projects/sts4/issues/320
-->
<content-type
Expand All @@ -64,7 +83,7 @@

<content-type id="org.springframework.boot.ide.xmlconfig"
name="Spring XML Config File"
base-type="org.eclipse.core.runtime.xml"
base-type="org.eclipse.core.runtime.text"
priority="normal"
default-charset="UTF-8">
<describer class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber2">
Expand Down Expand Up @@ -250,16 +269,6 @@
</editor>
</extension>

<!--
<extension
point="org.eclipse.ui.editors">
<editorContentTypeBinding
contentTypeId="org.springframework.boot.ide.properties.application.yml"
editorId="org.eclipse.ui.genericeditor.GenericEditor">
</editorContentTypeBinding>
</extension>
-->

<extension
point="org.eclipse.ui.genericeditor.presentationReconcilers">
<presentationReconciler
Expand Down Expand Up @@ -320,6 +329,7 @@

</extension>

<!-- what is this for? Commented it out but everything seems to work
<extension
point="org.eclipse.core.filebuffers.documentSetup">
<participant
Expand All @@ -341,5 +351,6 @@
contentTypeId="org.springframework.boot.ide.xmlconfig">
</participant>
</extension>
-->

</plugin>

0 comments on commit 4243d31

Please sign in to comment.