facebook

JDK5 annotation code-assist

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

    walkerk45
    Member

    I can’t seem to get code assist working properly with annotations. I’m using MyEclipse 5.5 with the all-in-one installer that also installs Eclipse 3.2.

    If I type the @ symbol and then ctrl+space I get the message ‘no default proposals’. However, if I type @S and the ctrl+space it then picks up the @SupressWarings annotation that i’m looking for. With other annotations such as @WebService I cannot get insight for the various attributes of that annotation such as name or serviceName.

    What did I do wrong – or is this a know bug?

    #267202 Reply

    Riyad Kalla
    Member

    If I type the @ symbol and then ctrl+space I get the message ‘no default proposals’. However, if I type @S and the ctrl+space it then picks up the @SupressWarings annotation that i’m looking for.

    This is the default behavior with the editor with most autocomplete. For example, type “public MyClass extends |” and hit autocomplete where the pipe is, it’s not going to show you list of every single class visible. You have to type atleast the first char.

    With other annotations such as @WebService I cannot get insight for the various attributes of that annotation such as name or serviceName.

    I believe the same applies here because so many possible things can be valid inside of an annotation body… I haven’t implemented any annotations myself yet, so I can’t give you a very indepth explanation of why this behavior makes sense, I just know it is by-design.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JDK5 annotation code-assist

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