aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2013-03-20 04:33:34 (EDT)
committerzzhongwei2013-03-20 04:35:31 (EDT)
commitff5d379a457b702d879c2497ecb2c2eaa4a3cfe7 (patch)
tree4ea9c0322537813f1f877e1f9dd2359145a003f4
parent47b4ddd531545ba52c5db1462270bfb3b2016905 (diff)
downloadorg.eclipse.pdt-ff5d379a457b702d879c2497ecb2c2eaa4a3cfe7.zip
org.eclipse.pdt-ff5d379a457b702d879c2497ecb2c2eaa4a3cfe7.tar.gz
org.eclipse.pdt-ff5d379a457b702d879c2497ecb2c2eaa4a3cfe7.tar.bz2
398974: 'Open Type Hieracrchy action' occurs very frequently while
editing PHP source code https://bugs.eclipse.org/bugs/show_bug.cgi?id=398974
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/PHPSelectionEngine.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/PHPSelectionEngine.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/PHPSelectionEngine.java
index 5c1e318..e5c8a2a 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/PHPSelectionEngine.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/PHPSelectionEngine.java
@@ -1002,7 +1002,7 @@ public class PHPSelectionEngine extends ScriptSelectionEngine {
fieldSet.addAll(Arrays.asList(PHPModelUtils
.getSuperTypeHierarchyField(type, hierarchy, prefix,
exactName, monitor)));
- IField[] temp = fieldSet.toArray(new IField[fields.size()]);
+ IField[] temp = fieldSet.toArray(new IField[fieldSet.size()]);
for (IField field : temp) {
fields.add(field);
}