mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 11:25:35 +02:00
Changed base class storage in CTag Indexer to use INamedEntry
This commit is contained in:
parent
ad66a43cd2
commit
e2a5a6dbef
1 changed files with 10 additions and 4 deletions
|
@ -265,11 +265,17 @@ class CTagEntry{
|
||||||
StringTokenizer tokenizer = new StringTokenizer(access, ","); //$NON-NLS-1$
|
StringTokenizer tokenizer = new StringTokenizer(access, ","); //$NON-NLS-1$
|
||||||
LinkedList list = new LinkedList();
|
LinkedList list = new LinkedList();
|
||||||
while (tokenizer.hasMoreTokens()){
|
while (tokenizer.hasMoreTokens()){
|
||||||
list.add(tokenizer.nextToken().toCharArray());
|
list.add(tokenizer.nextToken());
|
||||||
}
|
}
|
||||||
INamedEntry[] inherits = new INamedEntry[0];
|
|
||||||
inherits = (INamedEntry[]) list.toArray(inherits);
|
String[] inherits = new String[0];
|
||||||
return inherits;
|
inherits = (String []) list.toArray(inherits);
|
||||||
|
INamedEntry[] inherits2 = new INamedEntry[inherits.length];
|
||||||
|
for (int i=0; i<inherits.length; i++){
|
||||||
|
NamedEntry tempEntry = new NamedEntry(IIndex.FIELD, IIndex.REFERENCE, inherits[i], 1, 1);
|
||||||
|
inherits2[i] = tempEntry;
|
||||||
|
}
|
||||||
|
return inherits2;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue