facebook

Where to get Sun standard style templates for Eclipse?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #219224 Reply

    prpatel
    Member

    Where can I find an (XML) file that I can import into Eclipse to make the code style templates conform to the Sun Java standard? This is what I mean:

    Window->Preferences->Java->Code Style->Code Templates

    Here you can set the templates for new comments and for new Java files. Does anyone know where one can get a file to import to set these templates to the Java standard?

    thanks
    -p

    #219229

    Riyad Kalla
    Member

    If you hit the dropdown “Java conventions” I believe used to be the “Sun Coding Standard” in Eclipse 3.0, that should be what you want.

    #219262

    prpatel
    Member

    No, this sets the formatting. What I’m after is the “standard” JavaDoc comments, this is under the “Code Templates” item, not under the “Code Formatter” item.

    The reason this may be so difficult to track down is that everyone (organization) usually does Javadoc comments in a different way. I’m just happy with the Sun standard for now, might customize it with my own stuff (standard corp disclaimer, etc).

    I’m gonna see if checkstyle has this but let me know what you guys at myeclipse use to populate generated Javadoc.

    cheers
    Pratik

    #219333

    Scott Anderson
    Participant

    Pratik,

    I’m gonna see if checkstyle has this but let me know what you guys at myeclipse use to populate generated Javadoc.

    We basically use the defaults, with the exception of adding a copyright at the beginning of each file for generated code. Sorry.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Where to get Sun standard style templates for Eclipse?

You must be logged in to post in the forum log in