mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-04 06:03:18 +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
|
// There is nothing persisted for the session, or saved in a file so
|
||||||
// create a build info object
|
// create a build info object
|
||||||
if (scannerInfo != null && cacheInfo == true) {
|
if (scannerInfo != null && cacheInfo == true) {
|
||||||
((IProject)project).setSessionProperty(scannerInfoProperty, scannerInfo);
|
project.setSessionProperty(scannerInfoProperty, scannerInfo);
|
||||||
}
|
}
|
||||||
return scannerInfo;
|
return scannerInfo;
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ public class MakeScannerProvider extends AbstractCExtension implements IScannerI
|
||||||
public IScannerInfo getScannerInformation(IResource resource) {
|
public IScannerInfo getScannerInformation(IResource resource) {
|
||||||
IScannerInfo info = null;
|
IScannerInfo info = null;
|
||||||
try {
|
try {
|
||||||
info = getMakeScannerInfo((IProject)resource, true);
|
info = getMakeScannerInfo(resource.getProject(), true);
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
}
|
}
|
||||||
return info;
|
return info;
|
||||||
|
@ -153,7 +153,7 @@ public class MakeScannerProvider extends AbstractCExtension implements IScannerI
|
||||||
*/
|
*/
|
||||||
public static void removeScannerInfo(IResource resource) {
|
public static void removeScannerInfo(IResource resource) {
|
||||||
try {
|
try {
|
||||||
resource.setSessionProperty(scannerInfoProperty, null);
|
resource.getProject().setSessionProperty(scannerInfoProperty, null);
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue