facebook

JSP Auto-Completion and Import insertion (3.8.3+)

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #225593 Reply

    rogue_dev
    Member

    I am using a deeply nested series of public classes. These classes reside in the same top class and are used for mapping between I18N keys and the language file. The basic structure is:

    
    public class Lang
    {
      public class Home
      {
         public static final String TITLE = "page.home.title";
         public static final String MESSAGE = page.home.message";
       }
       public class Login
      {
         public static final String TITLE = "page.login.title";
         public static final String MESSAGE = page.login.message";
         public static final String USER_ID = page.login.userID";
         public static final String PASSWORD = page.login.password";
    
         public class Error
         {
            public static final String NOT_FOUND = page.login.err.notFound";
         }
       }
    }
    

    and so forth. The nesting is as deep as four classes.

    In Ecplise and JSP, I need to import just the Lang class. The nested classes are implied. In Ecplise, code completion works correctly, and in MyEcplise 3.8.2 the code completion worked the same way.

    However with 3.8.3 and 3.8.4, the code completion works rather weirdly:

    
      Lang.
    

    choose Login. this will produce

    
      Lang.Lang.Login
    

    Ok, delete the first Lang, so now you see

    
      Lang.Login
    

    enter a period, and choose Error. This will produce:

    
      Lang.Login.Lang.Login.Error
    

    The automatically inserted imports will now have

    
    <%@ page language="Java" import="Lang" %>
    <%@ page language="Java" import="Lang.Login" %>
    <%@ page language="Java" import="Lang.Login.Error" %>
    

    Again, this behaviour appeared in the 3.8.3 release.

    #225675 Reply

    Riyad Kalla
    Member

    We actually thought we *fixed* this bug in 3.8.3, but it seems we didn’t. Is there anyway you can email me a small sample Web Project that includes this heavily nested class and a sample JSP page so I can attach the whole thing to the bug and reopen it? At the time of fixing it we didn’t have any good examples of deeply nested classes except for java.util.Map.Entry.

    Email the project to support@genuitec.com ATTN Riyad please.

    #225713 Reply

    rogue_dev
    Member

    On its way…..

    #225786 Reply

    Riyad Kalla
    Member

    Turns out this bug was already fixed in our internal dev version of MyEclipse and will be in the next release, sorry about the delay.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSP Auto-Completion and Import insertion (3.8.3+)

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