mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix problem encountered while trying to reproduce 70063
This commit is contained in:
parent
db30e1599c
commit
1b940db018
1 changed files with 1 additions and 8 deletions
|
@ -327,7 +327,7 @@ public class IndexManager extends JobManager implements IIndexConstants {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean isIndexEnabled(IProject project) {
|
public boolean isIndexEnabled(IProject project) {
|
||||||
if( project == null || !project.exists() )
|
if( project == null || !project.exists() || !project.isOpen() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Boolean indexValue = null;
|
Boolean indexValue = null;
|
||||||
|
@ -335,8 +335,6 @@ public class IndexManager extends JobManager implements IIndexConstants {
|
||||||
try {
|
try {
|
||||||
indexValue = (Boolean) project.getSessionProperty(activationKey);
|
indexValue = (Boolean) project.getSessionProperty(activationKey);
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (indexValue != null)
|
if (indexValue != null)
|
||||||
|
@ -354,12 +352,7 @@ public class IndexManager extends JobManager implements IIndexConstants {
|
||||||
indexValue = new Boolean(true);
|
indexValue = new Boolean(true);
|
||||||
project.setSessionProperty(IndexManager.activationKey, indexValue);
|
project.setSessionProperty(IndexManager.activationKey, indexValue);
|
||||||
return indexValue.booleanValue();
|
return indexValue.booleanValue();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch (CoreException e1) {
|
} catch (CoreException e1) {
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e1.printStackTrace();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue