Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 SAP AG 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 Contributors: Lazar Kirchev, SAP AG - initial API and implementation /
package org.eclipse.equinox.console.completion;
This class provides completion for gogo session variables.
public class VariableNamesCompleter implements Completer {
		this. = session;
	public Map<StringIntegergetCandidates(String bufferint cursor) {
		// CommandSession.get(null) returns the names of all registered varialbes
		Set<StringvariableNames = (Set<String>) .get(null);
		StringsCompleter completer = new StringsCompleter(variableNamesfalse);
		return completer.getCandidates(buffercursor);
New to GrepCode? Check out our FAQ X