Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » 3.1M3 Improved Java properties file editor
3.1M3 Improved Java properties file editor [message #184728] Mon, 08 November 2004 10:25 Go to next message
Gabriele Garuglieri is currently offline Gabriele Garuglieri
Messages: 44
Registered: July 2009
Member
I red in the News and Noteworthy of 3.1M3 that the "Improved Java
properties file editor" allows coloured syntax highlighting.
I installed 3.1M3 and i see the editor property page with the customizable
colours you can attribute to the various syntax parts, but, despite any
colour i choose, when i edit a properties file with that editor all the
colours looks... black :)

Should it be activated somewere else to allow coloured syntax highlighting?

Regards, Gabriele
Re: 3.1M3 Improved Java properties file editor [message #184736 is a reply to message #184728] Mon, 08 November 2004 10:45 Go to previous messageGo to next message
Eclipse User
Originally posted by: daniel.megert.gmx.net

Gabriele Garuglieri wrote:

> I red in the News and Noteworthy of 3.1M3 that the "Improved Java
> properties file editor" allows coloured syntax highlighting.
> I installed 3.1M3 and i see the editor property page with the
> customizable colours you can attribute to the various syntax parts,
> but, despite any colour i choose, when i edit a properties file with
> that editor all the colours looks... black :)

Are you sure the properties file editor is used and not some other
editor? Select the *.properties file and then from context menu select
"Open With" > "Properties File Editor". Also note that this feature
currently only works for files inside the workspace and not for external
files or files inside a JAR. This support is planned for 3.1 M4.

Dani

>
> Should it be activated somewere else to allow coloured syntax
> highlighting?
>
> Regards, Gabriele
>
>
Re: 3.1M3 Improved Java properties file editor [message #184800 is a reply to message #184736] Tue, 09 November 2004 02:39 Go to previous messageGo to next message
Gabriele Garuglieri is currently offline Gabriele Garuglieri
Messages: 44
Registered: July 2009
Member
Daniel Megert wrote:

> Are you sure the properties file editor is used and not some other
> editor? Select the *.properties file and then from context menu select
> "Open With" > "Properties File Editor". Also note that this feature
> currently only works for files inside the workspace and not for external
> files or files inside a JAR. This support is planned for 3.1 M4.

> Dani

Daniel, i've catched the problem.
It is the net.sf.servereclipse_0.1.2 plugin that conflicts with
org.eclipse.jdt.ui.PropertiesFileEditor.
Until WTP is ready it provides a nice jsp/xml/properties syntax
highlighter, but unfortunately it defines a
org.eclipse.ui.editors.documentProviders extension
(net.sf.servereclipse.ui.jsp.internal.text.PropertiesDocumen tProvider) for
properties files that, i guess, overrides the input type expected by
org.eclipse.jdt.ui.PropertiesFileEditor.
Commenting that provider extension in plugin.xml makes everything working
as expected.

I apologize for bothering you for this.

Gabriele.
Re: 3.1M3 Improved Java properties file editor [message #184815 is a reply to message #184736] Tue, 09 November 2004 04:19 Go to previous messageGo to next message
Martin Javorek is currently offline Martin Javorek
Messages: 17
Registered: July 2009
Junior Member
I have the same problem (or very similar). I have some files that have
*.properties format, but can't have .properties extension (tey have another
one). I have associate it using "preferences -> workbench -> file
associations" this extension to "properties file editor". Then I tried to
open file with "open with -> properties file editor", but it looks still
like normal text editor.

I have E3.1M3 and only one external plugin (XMLBuddy), in log file there is
no exception or message according to this action.

Martin


"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:cmo49j$s6$1@eclipse.org...
> Gabriele Garuglieri wrote:
>
> > I red in the News and Noteworthy of 3.1M3 that the "Improved Java
> > properties file editor" allows coloured syntax highlighting.
> > I installed 3.1M3 and i see the editor property page with the
> > customizable colours you can attribute to the various syntax parts,
> > but, despite any colour i choose, when i edit a properties file with
> > that editor all the colours looks... black :)
>
> Are you sure the properties file editor is used and not some other
> editor? Select the *.properties file and then from context menu select
> "Open With" > "Properties File Editor". Also note that this feature
> currently only works for files inside the workspace and not for external
> files or files inside a JAR. This support is planned for 3.1 M4.
>
> Dani
>
> >
> > Should it be activated somewere else to allow coloured syntax
> > highlighting?
> >
> > Regards, Gabriele
> >
> >
Re: 3.1M3 Improved Java properties file editor [message #184852 is a reply to message #184815] Tue, 09 November 2004 05:28 Go to previous message
Eclipse User
Originally posted by: daniel.megert.gmx.net

Maple wrote:

>I have the same problem (or very similar). I have some files that have
>*.properties format, but can't have .properties extension (tey have another
>one). I have associate it using "preferences -> workbench -> file
>associations" this extension to "properties file editor". Then I tried to
>open file with "open with -> properties file editor", but it looks still
>like normal text editor.
>
>I have E3.1M3 and only one external plugin (XMLBuddy), in log file there is
>no exception or message according to this action.
>
>
I've filed a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=78153

Dani

>Martin
>
>
>"Daniel Megert" <daniel.megert@gmx.net> wrote in message
>news:cmo49j$s6$1@eclipse.org...
>
>
>>Gabriele Garuglieri wrote:
>>
>>
>>
>>>I red in the News and Noteworthy of 3.1M3 that the "Improved Java
>>>properties file editor" allows coloured syntax highlighting.
>>>I installed 3.1M3 and i see the editor property page with the
>>>customizable colours you can attribute to the various syntax parts,
>>>but, despite any colour i choose, when i edit a properties file with
>>>that editor all the colours looks... black :)
>>>
>>>
>>Are you sure the properties file editor is used and not some other
>>editor? Select the *.properties file and then from context menu select
>>"Open With" > "Properties File Editor". Also note that this feature
>>currently only works for files inside the workspace and not for external
>>files or files inside a JAR. This support is planned for 3.1 M4.
>>
>>Dani
>>
>>
>>
>>>Should it be activated somewere else to allow coloured syntax
>>>highlighting?
>>>
>>>Regards, Gabriele
>>>
>>>
>>>
>>>
>
>
>
>
Previous Topic:Programmatically open editor at the position of the ASTNode
Next Topic:Code Template
Goto Forum:
  


Current Time: Wed May 22 15:56:12 EDT 2013

Powered by FUDForum. Page generated in 0.02068 seconds