1 11 package org.eclipse.jdt.internal.debug.ui.contentassist; 12 13 import java.util.Arrays ; 14 15 import org.eclipse.jdt.core.CompletionProposal; 16 import org.eclipse.jdt.core.IJavaProject; 17 import org.eclipse.jdt.internal.debug.eval.ast.engine.ArrayRuntimeContext; 18 import org.eclipse.jdt.ui.text.java.CompletionProposalCollector; 19 20 26 public class JavaDebugCompletionProposalCollector extends CompletionProposalCollector { 27 28 private static final char[] fgHiddenLocal = ArrayRuntimeContext.ARRAY_THIS_VARIABLE.toCharArray(); 29 30 35 public JavaDebugCompletionProposalCollector(IJavaProject project) { 36 super(project); 37 } 38 39 42 protected boolean isFiltered(CompletionProposal proposal) { 43 if (proposal.getKind() == CompletionProposal.LOCAL_VARIABLE_REF) { 44 if (Arrays.equals(proposal.getName(), fgHiddenLocal)) { 45 return true; 46 } 47 } 48 return super.isFiltered(proposal); 49 } 50 51 52 } 53 | Popular Tags |