Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2008 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 http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.internal.codeassist.select;
/*
 * Selection node build by the parser in any case it was intending to
 * reduce a qualified name reference containing the assist identifier.
 * e.g.
 *
 *	class X {
 *    Y y;
 *    void foo() {
 *      y.fred.[start]ba[end]
 *    }
 *  }
 *
 *	---> class X {
 *         Y y;
 *         void foo() {
 *           <SelectOnName:y.fred.ba>
 *         }
 *       }
 *
 */
public SelectionOnQualifiedNameReference(char[][] previousIdentifierschar[] selectionIdentifierlong[] positions) {
	super(
		CharOperation.arrayConcat(previousIdentifiersselectionIdentifier),
		positions,
		(int) (positions[0] >>> 32),
		(intpositions[positions.length - 1]);
public StringBuffer printExpression(int indentStringBuffer output) {
	output.append("<SelectOnName:"); //$NON-NLS-1$
	for (int i = 0, length = this..lengthi < lengthi++) {
		if (i > 0) output.append('.');
		output.append(this.[i]);
	}
	return output.append('>');
	// it can be a package, type, member type, local variable or field
	this. = scope.getBinding(this.this);
	if (!this..isValidBinding()) {
		if (this. instanceof ProblemFieldBinding) {
			// tolerate some error cases
				throw new SelectionNodeFound(this.);
			}
else if (this. instanceof ProblemReferenceBinding || this. instanceof MissingTypeBinding) {
			// tolerate some error cases
				throw new SelectionNodeFound(this.);
			}
else {
		}
		throw new SelectionNodeFound();
	}
	throw new SelectionNodeFound(this.);
New to GrepCode? Check out our FAQ X