mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 352172 - [Implement method] Automatically check method if there's
only one
This commit is contained in:
parent
be06f2dcda
commit
76a0e8f46e
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,11 @@ public class ImplementMethodData implements ITreeContentProvider{
|
|||
for (IASTSimpleDeclaration declaration : methodDeclarations) {
|
||||
this.methodDeclarations.add(new MethodToImplementConfig(declaration, new ParameterHandler(declaration)));
|
||||
}
|
||||
|
||||
// Only one declaration available, might as well check it
|
||||
if (this.methodDeclarations.size() == 1) {
|
||||
this.methodDeclarations.get(0).setChecked(true);
|
||||
}
|
||||
}
|
||||
|
||||
public List<MethodToImplementConfig> getMethodDeclarations() {
|
||||
|
|
Loading…
Add table
Reference in a new issue