1
0
Fork 0
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:
Marc-Andre Laperle 2011-07-14 18:49:51 -04:00
parent be06f2dcda
commit 76a0e8f46e

View file

@ -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() {