summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel 2013-04-25 06:57:34 (EDT)
committer Dani Megert2013-04-25 06:57:34 (EDT)
commit8784c4cedca248ed848edd5edd1d7c2f3a7741e4 (patch)
tree439f7f3f694cc19a755fa96d664be8cb943c9dde
parent2d5bd8929f145ed59de22ea994964a0089c817e3 (diff)
downloadeclipse.jdt.ui-8784c4cedca248ed848edd5edd1d7c2f3a7741e4.zip
eclipse.jdt.ui-8784c4cedca248ed848edd5edd1d7c2f3a7741e4.tar.gz
eclipse.jdt.ui-8784c4cedca248ed848edd5edd1d7c2f3a7741e4.tar.bz2
Fixed bug 406463: [templates][content assist] Ctrl+Space without any starting letter shows to no templates
-rw-r--r--org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java
index d55dd94..7e6f0e9 100644
--- a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java
+++ b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Lars Vogel <lars.vogel@gmail.com> - [templates][content assist] Ctrl+Space without any starting letter shows to no templates - https://bugs.eclipse.org/406463
*******************************************************************************/
package org.eclipse.jdt.internal.corext.template.java;
@@ -216,7 +217,7 @@ public class JavaContext extends CompilationUnitContext {
return true;
String key= getKey();
- return key.length() != 0 && template.getName().toLowerCase().startsWith(key.toLowerCase());
+ return template.getName().toLowerCase().startsWith(key.toLowerCase());
}
private boolean hasCompatibleContextType(Template template) {