diff options
| author | Lars Vogel | 2013-04-25 10:57:34 +0000 |
|---|---|---|
| committer | Dani Megert | 2013-04-25 10:57:34 +0000 |
| commit | 8784c4cedca248ed848edd5edd1d7c2f3a7741e4 (patch) | |
| tree | 439f7f3f694cc19a755fa96d664be8cb943c9dde | |
| parent | 2d5bd8929f145ed59de22ea994964a0089c817e3 (diff) | |
| download | eclipse.jdt.ui-8784c4cedca248ed848edd5edd1d7c2f3a7741e4.tar.gz eclipse.jdt.ui-8784c4cedca248ed848edd5edd1d7c2f3a7741e4.tar.xz eclipse.jdt.ui-8784c4cedca248ed848edd5edd1d7c2f3a7741e4.zip | |
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.java | 5 |
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 d55dd940ff..7e6f0e998e 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) { |
