Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarc-Andre Laperle2011-07-14 18:49:51 -0400
committerMarc-Andre Laperle2011-07-14 18:49:51 -0400
commit76a0e8f46ed5f4818e93e134a471755c20446bee (patch)
tree89ac985693af2ccfbc712cdc8cf4b916943b5857 /core
parentbe06f2dcda292eb492cee0c6444e0a24f0493826 (diff)
downloadorg.eclipse.cdt-76a0e8f46ed5f4818e93e134a471755c20446bee.tar.gz
org.eclipse.cdt-76a0e8f46ed5f4818e93e134a471755c20446bee.tar.xz
org.eclipse.cdt-76a0e8f46ed5f4818e93e134a471755c20446bee.zip
Bug 352172 - [Implement method] Automatically check method if there's
only one
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodData.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodData.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodData.java
index ed6d27f45b..c9794e8047 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodData.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/implementmethod/ImplementMethodData.java
@@ -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() {

Back to the top