Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 125-131
Link Here
|
125 |
/** |
125 |
/** |
126 |
* @see ISourceElementRequestor |
126 |
* @see ISourceElementRequestor |
127 |
*/ |
127 |
*/ |
128 |
public void acceptImport(int declarationStart, int declarationEnd, char[][] tokens, boolean onDemand, int modifiers) { |
128 |
public void acceptImport(int declarationStart, int declarationEnd, int nameSourceStart, int nameSourceEnd, char[][] tokens, boolean onDemand, int modifiers) { |
129 |
JavaElement parentHandle= (JavaElement) this.handleStack.peek(); |
129 |
JavaElement parentHandle= (JavaElement) this.handleStack.peek(); |
130 |
if (!(parentHandle.getElementType() == IJavaElement.COMPILATION_UNIT)) { |
130 |
if (!(parentHandle.getElementType() == IJavaElement.COMPILATION_UNIT)) { |
131 |
Assert.isTrue(false); // Should not happen |
131 |
Assert.isTrue(false); // Should not happen |
Lines 148-153
Link Here
|
148 |
ImportDeclarationElementInfo info = new ImportDeclarationElementInfo(); |
148 |
ImportDeclarationElementInfo info = new ImportDeclarationElementInfo(); |
149 |
info.setSourceRangeStart(declarationStart); |
149 |
info.setSourceRangeStart(declarationStart); |
150 |
info.setSourceRangeEnd(declarationEnd); |
150 |
info.setSourceRangeEnd(declarationEnd); |
|
|
151 |
info.setNameSourceStart(nameSourceStart); |
152 |
info.setNameSourceEnd(nameSourceEnd); |
151 |
info.setFlags(modifiers); |
153 |
info.setFlags(modifiers); |
152 |
|
154 |
|
153 |
addToChildren(this.importContainerInfo, handle); |
155 |
addToChildren(this.importContainerInfo, handle); |
Lines 184-189
Link Here
|
184 |
AnnotatableInfo info = new AnnotatableInfo(); |
186 |
AnnotatableInfo info = new AnnotatableInfo(); |
185 |
info.setSourceRangeStart(importReference.declarationSourceStart); |
187 |
info.setSourceRangeStart(importReference.declarationSourceStart); |
186 |
info.setSourceRangeEnd(importReference.declarationSourceEnd); |
188 |
info.setSourceRangeEnd(importReference.declarationSourceEnd); |
|
|
189 |
info.setNameSourceStart(importReference.sourceStart); |
190 |
info.setNameSourceEnd(importReference.sourceEnd); |
187 |
|
191 |
|
188 |
addToChildren(parentInfo, handle); |
192 |
addToChildren(parentInfo, handle); |
189 |
this.newElements.put(handle, info); |
193 |
this.newElements.put(handle, info); |