mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
fixed class cast exception
This commit is contained in:
parent
7ce8f5c91e
commit
6a2b389c5f
1 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ public class MakeScannerProvider extends AbstractCExtension implements IScannerI
|
|||
// There is nothing persisted for the session, or saved in a file so
|
||||
// create a build info object
|
||||
if (scannerInfo != null && cacheInfo == true) {
|
||||
((IProject)project).setSessionProperty(scannerInfoProperty, scannerInfo);
|
||||
project.setSessionProperty(scannerInfoProperty, scannerInfo);
|
||||
}
|
||||
return scannerInfo;
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public class MakeScannerProvider extends AbstractCExtension implements IScannerI
|
|||
public IScannerInfo getScannerInformation(IResource resource) {
|
||||
IScannerInfo info = null;
|
||||
try {
|
||||
info = getMakeScannerInfo((IProject)resource, true);
|
||||
info = getMakeScannerInfo(resource.getProject(), true);
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
return info;
|
||||
|
@ -153,7 +153,7 @@ public class MakeScannerProvider extends AbstractCExtension implements IScannerI
|
|||
*/
|
||||
public static void removeScannerInfo(IResource resource) {
|
||||
try {
|
||||
resource.setSessionProperty(scannerInfoProperty, null);
|
||||
resource.getProject().setSessionProperty(scannerInfoProperty, null);
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue