facebook

source generate getters/setters for fields with ‘f’ prefix

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

    davout
    Participant

    Am I missing a new editor configuration feature or what?

    But with the new r5.5 release the editor seems to have lost a smart feature where it took account of the ‘f’ prefix I use to demarcate all class data members.

    Hence, previously if I had a class like….

    
    public class myTest {
       private int fNumber = 0;
    }
    

    … then the ‘source/generate getters/setters menu option would strip the ‘f’ from the equivalent method names to add methods like….

    
    public int getNumber();
    public void setNumber(int number);
    

    With r5.5 this no longer appears to work. Now I’m getting methods that include the ‘f’ prefix, like…

    
    public int getFNumber();
    public void setFNumber(int number);
    

    A bug?

    #272377

    Loyal Water
    Member

    This is not a bug at all, and the editor (Java) is from the Eclipse JDT project, we don’t change that at all. It’s possible you had an auxiliary plugin installed previously that honored that, but the generate getter/setter implementation is literal and takes no naming scheme into account.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: source generate getters/setters for fields with ‘f’ prefix

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