|
Lines 98-103
Link Here
|
| 98 |
* be provided, but not both. If a single IScannerInfo object is provided |
98 |
* be provided, but not both. If a single IScannerInfo object is provided |
| 99 |
* it will always be used. Otherwise the provider will be used. |
99 |
* it will always be used. Otherwise the provider will be used. |
| 100 |
*/ |
100 |
*/ |
|
|
101 |
@Deprecated |
| 101 |
protected IScannerInfo fScanner; |
102 |
protected IScannerInfo fScanner; |
| 102 |
|
103 |
|
| 103 |
/** |
104 |
/** |
|
Lines 158-163
Link Here
|
| 158 |
} |
159 |
} |
| 159 |
}; |
160 |
}; |
| 160 |
|
161 |
|
|
|
162 |
/** |
| 163 |
* @deprecated Its better to provide a scanner info provider instead. |
| 164 |
*/ |
| 165 |
@Deprecated |
| 161 |
public StandaloneIndexer(IWritableIndex index, boolean indexAllFiles, |
166 |
public StandaloneIndexer(IWritableIndex index, boolean indexAllFiles, |
| 162 |
ILanguageMapper mapper, IParserLogService log, IScannerInfo scanner) { |
167 |
ILanguageMapper mapper, IParserLogService log, IScannerInfo scanner) { |
| 163 |
fIndex = index; |
168 |
fIndex = index; |
|
Lines 217-223
Link Here
|
| 217 |
|
222 |
|
| 218 |
/** |
223 |
/** |
| 219 |
* Returns the IScannerInfo that provides include paths and defined symbols. |
224 |
* Returns the IScannerInfo that provides include paths and defined symbols. |
|
|
225 |
* @deprecated Should probably be using a IStandaloneScannerInfoProvider instead and |
| 226 |
* calling getScannerInfo(String). |
| 220 |
*/ |
227 |
*/ |
|
|
228 |
@Deprecated |
| 221 |
public IScannerInfo getScannerInfo() { |
229 |
public IScannerInfo getScannerInfo() { |
| 222 |
return fScanner; |
230 |
return fScanner; |
| 223 |
} |
231 |
} |
|
Lines 235-241
Link Here
|
| 235 |
|
243 |
|
| 236 |
return fScannerInfoProvider.getScannerInformation(path); |
244 |
return fScannerInfoProvider.getScannerInformation(path); |
| 237 |
} |
245 |
} |
| 238 |
|
246 |
|
|
|
247 |
|
| 248 |
/** |
| 249 |
* Returns the IStandaloneScannerInfoProvider or null if one was not provided. |
| 250 |
*/ |
| 251 |
public IStandaloneScannerInfoProvider getScannerInfoProvider() { |
| 252 |
return fScannerInfoProvider; |
| 253 |
} |
| 239 |
|
254 |
|
| 240 |
/** |
255 |
/** |
| 241 |
* Returns the ILanguageMapper that determines the ILanguage for a file. |
256 |
* Returns the ILanguageMapper that determines the ILanguage for a file. |