facebook

JSP Code Completion Pasting in Funny Places: MyEclipse 5.0M1

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #254058 Reply

    dionic
    Member

    Hi guys,

    Using MyEclipse 5.0M1 and Eclipse 3.2rc7… when using CTRL+space and enter to complete code in the JSP Editor, the editor normally automatically pastes the import declaration at the top of the JSP page, e.g.

    
    <%@page import="com.bob.MyClass"%>
    <html>
    <!-- My HTML -->
    </html>
    

    However, if you have other java code within a <%! declaration, the editor pastes below that code and not at the top with the rest of the imports, e.g.

    
    <%@page import="com.bob.MyClass"%>
    <%!
       private String doSomething()
       {
          return "Something";
       }
    %>
    <%@page import="com.bob.MyOtherClass"%>
    <html>
    <body>
    <!-- My HTML -->
    <%=MyOtherCl...%>   <-- code completion here adds MyOtherClass import above but not right at the top
    </body>
    </html>
    

    Regards
    Charles

    #254077 Reply

    Scott Anderson
    Participant

    Charles,

    Thanks for posting this. Good news: we’ve addressed that issue in 5.0M2 which should be available in a few days.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP Code Completion Pasting in Funny Places: MyEclipse 5.0M1

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