Intents breaking JDT code coloring? [message #1010914] |
Mon, 18 February 2013 08:21  |
Eclipse User |
|
|
|
Hey,
I tried to install Mylyn Intents on Eclipse 3.8 M5 (Kepler) and noticed
to my dismay, that it somehow broke Java editor code coloring.
Uninstalling Intents and restarting fixed Java editor for me...
|
|
|
Re: Intents breaking JDT code coloring? [message #1010946 is a reply to message #1010914] |
Mon, 18 February 2013 09:24   |
Eclipse User |
|
|
|
Hi Roland,
thanks a lot for this info, I already noticed and fixed this issue. Fix
will be available in Intent M6, but you can get it now using the latest
intent builds (at
https://hudson.eclipse.org/hudson/job/mylyn-docs-intent-0.7-nightly/463/artifact/features/org.eclipse.mylyn.docs.intent.update/target/org.eclipse.mylyn.docs.intent.update.zip
).
If you're interested in the reasons explaining this bug, it is because
Eclipse does not react well when associating several content types to a
same file (here a java file), although according to me it should.
So instead of defining a new content-type in my Java bridge, that I use
to register the JavaResourceFactory (in charge of representing a java
file as a model) :
<extension
point="org.eclipse.emf.ecore.content_parser">
<parser
class="org.eclipse.mylyn.docs.intent.bridge.java.resource.factory.JavaResourceFactory"
contentTypeIdentifier="org.eclipse.mylyn.docs.intent.bridge.java.javacontent">
</parser>
</extension>
<extension
point="org.eclipse.core.contenttype.contentTypes">
<content-type
file-extensions="java"
id="org.eclipse.mylyn.docs.intent.bridge.java.javacontent"
name="Java content"
priority="normal">
</content-type>
</extension>
I had to register my JavaResourceFactory using another mean :
<!-- Registering a ResourceFactory allowing to represent Java
files/classes/methods as model -->
<extension
point="org.eclipse.emf.ecore.extension_parser">
<parser
class="org.eclipse.mylyn.docs.intent.bridge.java.resource.factory.JavaResourceFactory"
type="java">
</parser>
</extension>
Sorry for the inconvenience, and please do not hesitate to spam me if
you have feedbacks or enhancement ideas about this Java bridge (which is
still a work in progress).
Best regards,
Alex
Le 18/02/2013 14:21, Roland Tepp a écrit :
> Hey,
>
> I tried to install Mylyn Intents on Eclipse 3.8 M5 (Kepler) and noticed
> to my dismay, that it somehow broke Java editor code coloring.
>
> Uninstalling Intents and restarting fixed Java editor for me...
|
|
|
Re: Intents breaking JDT code coloring? [message #1010983 is a reply to message #1010946] |
Mon, 18 February 2013 10:54   |
Eclipse User |
|
|
|
Thanks - I'll check it out in M6 then...
18.02.2013 16:24, Alex Lagarde kirjutas:
> Hi Roland,
>
> thanks a lot for this info, I already noticed and fixed this issue. Fix
> will be available in Intent M6, but you can get it now using the latest
> intent builds (at
> https://hudson.eclipse.org/hudson/job/mylyn-docs-intent-0.7-nightly/463/artifact/features/org.eclipse.mylyn.docs.intent.update/target/org.eclipse.mylyn.docs.intent.update.zip
> ).
>
> If you're interested in the reasons explaining this bug, it is because
> Eclipse does not react well when associating several content types to a
> same file (here a java file), although according to me it should.
>
> So instead of defining a new content-type in my Java bridge, that I use
> to register the JavaResourceFactory (in charge of representing a java
> file as a model) :
> <extension
> point="org.eclipse.emf.ecore.content_parser">
> <parser
>
> class="org.eclipse.mylyn.docs.intent.bridge.java.resource.factory.JavaResourceFactory"
>
>
> contentTypeIdentifier="org.eclipse.mylyn.docs.intent.bridge.java.javacontent">
>
> </parser>
> </extension>
> <extension
> point="org.eclipse.core.contenttype.contentTypes">
> <content-type
> file-extensions="java"
> id="org.eclipse.mylyn.docs.intent.bridge.java.javacontent"
> name="Java content"
> priority="normal">
> </content-type>
> </extension>
>
> I had to register my JavaResourceFactory using another mean :
> <!-- Registering a ResourceFactory allowing to represent Java
> files/classes/methods as model -->
> <extension
> point="org.eclipse.emf.ecore.extension_parser">
> <parser
>
> class="org.eclipse.mylyn.docs.intent.bridge.java.resource.factory.JavaResourceFactory"
>
> type="java">
> </parser>
> </extension>
>
> Sorry for the inconvenience, and please do not hesitate to spam me if
> you have feedbacks or enhancement ideas about this Java bridge (which is
> still a work in progress).
>
> Best regards,
> Alex
>
>
> Le 18/02/2013 14:21, Roland Tepp a écrit :
>> Hey,
>>
>> I tried to install Mylyn Intents on Eclipse 3.8 M5 (Kepler) and noticed
>> to my dismay, that it somehow broke Java editor code coloring.
>>
>> Uninstalling Intents and restarting fixed Java editor for me...
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05283 seconds