Enhancing the JDT Java Editor [message #324701] |
Wed, 30 January 2008 15:46  |
Eclipse User |
|
|
|
Originally posted by: nazdak9.gmail.com
Hi,
Is there anyway to modify the default Eclipse Java Editor programmaticaly? I can't seem to find any extensions that support the extending of the JavaEditor class.
For example, if I want my plug-in to change the color of comments in the Java editor from green to yellow, can it be done?
Cheers.
|
|
|
|
|
|
|
Re: Enhancing the JDT Java Editor [message #324710 is a reply to message #324702] |
Wed, 30 January 2008 18:03   |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fnqnsv$v1c$1@build.eclipse.org...
> Shane,
>
> Go crazy with Window->Preferences->Java->Editor->Syntax Coloring
> Shane wrote:
>> Hi,
>>
>> Is there anyway to modify the default Eclipse Java Editor
>> programmaticaly? I can't seem to find any extensions that support the
>> extending of the JavaEditor class.
>>
>> For example, if I want my plug-in to change the color of comments in the
>> Java editor from green to yellow, can it be done?
Nice answer, Ed :-)
But I think Shane is asking about doing it programmatically. With regard to
the color of comments (or anything else that can be modified through the
preferences dialogs), one answer is simply to change the preference
programmatically, that is, using the Preference API - see
http://www.eclipse.org/eclipse/platform-core/documents/user_ settings/faq.html .
Shane, if you want to do something that is not covered by changing settings,
please be more specific.
|
|
|
Re: Enhancing the JDT Java Editor [message #324711 is a reply to message #324710] |
Wed, 30 January 2008 18:06  |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"Walter Harley" <wharley@bea.com> wrote in message
news:fnqvnt$koj$1@build.eclipse.org...
> Shane, if you want to do something that is not covered by changing
> settings, please be more specific.
Sorry, in the time it took me to respond, I see that you did clarify some
more.
Yes, if you want to actually change the syntax coloring algorithms, there's
not going to be a simple answer.
I would suggest looking at the Structured Source Editor, which is part of
WTP.
|
|
|
Powered by
FUDForum. Page generated in 0.04503 seconds