facebook

5.5M2 – code editor bug?

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

    loester
    Member

    I created a new EJB3 project, then added a new class to “projectEJB” (there’s also “projectWeb” and “project”).

    package util;
    public class Http {
        String s = "";    
    }

    Now when I type in

    package util;
    
    public class Http {
        String s = "";
        s.
        
    }

    The code editor should normally pop up a list of class members for s, which doesn’t happen.

    #268972 Reply

    Riyad Kalla
    Member

    What happens when you hit CTRL-Space to invoke it?

    Also what do your settings look like under Window > Prefs > Java > Editor > Content Assist, down at the bottom under “Enable Auto Activation”?

    #268986 Reply

    loester
    Member

    When I press CTRL + space, nothing happens. My Content Assist settings are as follows:

    [URL=http://img105.imageshack.us/my.php?image=myeclipsebuggyio5.jpg][/URL]

    #268987 Reply

    Riyad Kalla
    Member

    Doh, I missed this:

    public class Http {
    String s = “”;
    s.

    }

    That is not a valid location to implement code, you can delcare variables outside of code bodies, but if you want to implement code you have to be inside a method, static initializer, constructor or other code-block. You aren’t getting autocomplete there because it’s illegal.

    #269048 Reply

    loester
    Member

    I came from Netbeans where things like that work, so thought it should be the same in MyEclipse. Very stupid mistake indeed on my part.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: 5.5M2 – code editor bug?

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