| Summary: | Provide "Override method" in the default proposals of a class body | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Mauro Molinari <mauromol> |
| Component: | PDT | Assignee: | Dawid Pakula <zulus> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | eclipse, zulus |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| See Also: |
https://git.eclipse.org/r/155097 https://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=c2a7a5c6b77844b7264270e5afa8add0b02c825a |
||
| Whiteboard: | |||
| Bug Depends on: | 480589 | ||
| Bug Blocks: | 149814 | ||
*** Bug 493620 has been marked as a duplicate of this bug. *** I'm taking care of this. I will have to rebuild PHPCompletionProposalCollector ;) New Gerrit change created: https://git.eclipse.org/r/155097 Gerrit change https://git.eclipse.org/r/155097 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=c2a7a5c6b77844b7264270e5afa8add0b02c825a |
Consider the following Java code: public class A { public void test(){ } } public class B extends A { | <= invoke code assist here } With JDT if you hit Ctrl+Space and the cursor is in the highlighted position within the body of class B, the default content assist proposals also show the possibility to override methods of the superclasses, i.e.: clone(): Object - Override method in 'Object' equals(): boolean - Override method in 'Object' ... test(): void - Override method in 'A' If you select, for instance, the last item, JDT writes for you: public class B extends A { @Override public void test() { // TODO Auto-generated method stub super.test(); } } It would be very useful if this worked in PDT, too, for instance: <?php class A { public function test(){ } } class B extends A { | <= invoke code assist here }