Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » RFE: Refactor property type
RFE: Refactor property type [message #655722] Tue, 22 February 2011 07:57
David  Balažic is currently offline David Balažic
Messages: 127
Registered: July 2009
Senior Member
Continuing this thread: http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg0 4950.html

I suggest refactoring the type of a property.

- before:
private String foo;

public void setFoo(String foo){
this.foo = foo;
}

public String getFoo(){
return foo;
}


- action: select Refactor menu on the foo property definition (first line in example code) and select another desired type, eg. Long

- after:


private Long foo;

public void setFoo(Long foo){
this.foo = foo;
}

public Long getFoo(){
return foo;
}



Regards,
David
Previous Topic:Sorting (or grouping) options in JDT Explorer view
Next Topic:installing Eclipse pulsar android sdk on Windows 7 64
Goto Forum:
  


Current Time: Fri May 24 22:12:30 EDT 2013

Powered by FUDForum. Page generated in 0.01584 seconds