Community
Participate
Working Groups
if I have a method call: foo() and I select 'create method foo()', Eclipse generates private void foo() { } with 'private' and 'foo' in "boxes' that allow easy tabbing between and share edit changes (in the case of foo). 'void' should also be in tab-enabled box.
Created attachment 106267 [details] patch I stumbled across this several times so here is a patch. One concern which could be commented by the team: Current situation is that if the return type is void there is no return statement created which is perfectly ok. As the void is now linked too, it would maybe make sense to still create a return statement. Changing the return type trough the linked mode would lead to an error marker in both cases * case 1 without return -> marker to introduce return * case 2 with return -> marker that return has to return something :) Not sure what would be the better user expierence
I'm not sure if adding a 'return;' will be useful in the general case. A quick fix will help you add the missing return statement. So I think we leave things as they are. patch released > 20080702
Created attachment 106340 [details] copyright Martin, as good eclipse citizanships we need this patch too. Sorry that I forgot it the first time.
Verified in I20080805-0100. Released copyright as well (for next build).