facebook

Preferences|Java|Editor|Template not formatted properly

💡
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 Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #256569 Reply

    chamfamdad
    Member

    I am using a fresh install of Eclipse 3.2 and MyEclipse Enterprise Workbench 5.0.0

    When I invoke the following template in a java file:

    
    /**
     * ${cursor}
     * 
     * @author Fletcher Chambers
     * @date ${date}
     */
    

    The code formater stops formating after the ${cursor} variable and I will end up getting something like:

    
         /**
          * |
     * 
     * @author Fletcher Chambers
     * @date Aug 11, 2006
     */
    

    If you move the ${cursor} variable to different lines, that is where the formatting always stops. If you take out the ${cursor} variable, then the formatting works.

    This template did work in previous versions.

    #256704

    Riyad Kalla
    Member

    Fletcher,
    I can’t reproduce this locally, but I would also have to add that MyEclipse doesn’t have any code that interacts with the default JDT Java Editor or formatter, so I don’t know why it’s not working. You may need to restart using a -clean to make sure everything is in good working order:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10280.html

    #256789

    chamfamdad
    Member

    Thanks for the tip. -clean did not help.

    No matter where I put the $(cursor) thats where the formatting stops.

    for example:

    
        /**
         * |
    * 
    * @author Fletcher Chambers
    * @date Aug 15, 2006
    */
        public void getNothing()
        {
            
        }
    
    #256824

    Riyad Kalla
    Member

    You could try a new workspace, see if the problem persists (FIle > Switch Workspace), create a new Java project, add the template, then try it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Preferences|Java|Editor|Template not formatted properly

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