Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Mylyn Intent » Intents breaking JDT code coloring?
Intents breaking JDT code coloring? [message #1010914] Mon, 18 February 2013 13:21 Go to next message
Roland Tepp is currently offline Roland TeppFriend
Messages: 36
Registered: July 2009
Member
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 14:24 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

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 15:54 Go to previous messageGo to next message
Roland Tepp is currently offline Roland TeppFriend
Messages: 36
Registered: July 2009
Member
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...
>
Re: Intents breaking JDT code coloring? [message #1010991 is a reply to message #1010983] Mon, 18 February 2013 16:07 Go to previous message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi Roland,

notice that this is only the 'Java Bridge' feature that causes this
issue ; you can install all other Intent features without causing it.

Sorry again for this annoying issue,
Alex
Previous Topic:How can I synchronize Java code with Intent ?
Next Topic:Kepler M6, Intent 0.8 - Editor won't save
Goto Forum:
  


Current Time: Mon Sep 23 22:23:34 GMT 2024

Powered by FUDForum. Page generated in 0.04435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top