Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java-Code Style-Formatter only for *.java files or for *.xml files in Java projects as well?
Java-Code Style-Formatter only for *.java files or for *.xml files in Java projects as well? [message #510934] Fri, 29 January 2010 03:53 Go to next message
Eclipse UserFriend
Assume I setup a java project which contains *.xml and *.xsd files as well.

Are the preferences setup in
Java->Code Style->Formatter

relevant only for Java files read: for files with the extension *.java or are they applied to other files e.g. *.xml and *.xsd files as well?

Ben
Re: Java-Code Style-Formatter only for *.java files or for *.xml files in Java projects as well? [message #510939 is a reply to message #510934] Thu, 28 January 2010 23:10 Go to previous messageGo to next message
Eclipse UserFriend
Ben wrote:
> Assume I setup a java project which contains *.xml and *.xsd files as
> well.
> Are the preferences setup in
> Java->Code Style->Formatter
> relevant only for Java files read: for files with the extension *.java
> or are they applied to other files e.g. *.xml and *.xsd files as well?
Only Java source files.

Dani
>
> Ben
Re: Java-Code Style-Formatter only for *.java files or for *.xml files in Java projects as well? [message #510944 is a reply to message #510939] Fri, 29 January 2010 04:29 Go to previous message
Eclipse UserFriend
Ok, thank you.

But which style rules are taken then for *.xml and *.xsd sources?

Is there a general, built-in, fall-back style for these (unknown) file extensions?

Ben
Re: Java-Code Style-Formatter only for *.java files or for *.xml files in Java projects as well? [message #510951 is a reply to message #510944] Thu, 28 January 2010 23:54 Go to previous message
Eclipse UserFriend
Ben wrote:
> Ok, thank you.
>
> But which style rules are taken then for *.xml and *.xsd sources?
>
> Is there a general, built-in, fall-back style for these (unknown) file
> extensions?
No, there's no fallback. Such styles (formatter) would be part of the
corresponding tooling (e.g. WTP).

Dani
>
> Ben
Previous Topic:Need Sample Java Eclipse Project/Program code
Next Topic:equals and hashcode generation tool modification
Goto Forum:
  


Current Time: Sun Mar 16 07:47:35 EDT 2025

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

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

Back to the top