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
6957166c28
commit
7c49b1c157
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,11 @@ public class ImplementMethodData implements ITreeContentProvider{
|
||||||
for (IASTSimpleDeclaration declaration : methodDeclarations) {
|
for (IASTSimpleDeclaration declaration : methodDeclarations) {
|
||||||
this.methodDeclarations.add(new MethodToImplementConfig(declaration, new ParameterHandler(declaration)));
|
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() {
|
public List<MethodToImplementConfig> getMethodDeclarations() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue