misc changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / codeassist / complete / CompletionOnQualifiedClassReference.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v0.5 
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v05.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  ******************************************************************************/
11 package net.sourceforge.phpdt.internal.codeassist.complete;
12
13 public class CompletionOnQualifiedClassReference extends CompletionOnQualifiedTypeReference {
14 public CompletionOnQualifiedClassReference(char[][] previousIdentifiers, char[] completionIdentifier, long[] positions) {
15         super(previousIdentifiers, completionIdentifier, positions);
16 }
17 public String toStringExpression(int tab) {
18
19         StringBuffer buffer = new StringBuffer();
20         buffer. append("<CompleteOnClass:"); //$NON-NLS-1$
21         for (int i = 0; i < tokens.length; i++) {
22                 buffer.append(tokens[i]);
23                 buffer.append("."); //$NON-NLS-1$
24         }
25         buffer.append(completionIdentifier).append(">"); //$NON-NLS-1$
26         return buffer.toString();
27 }
28 }