@@ -63,7 +63,7 @@ public class SloeberProject extends Common {
63
63
private Map <String , Map <String , String >> myEnvironmentVariables = new HashMap <>();
64
64
private TxtFile myCfgFile = null ;
65
65
private IProject myProject = null ;
66
- private boolean isInMemory = false ;
66
+ private boolean myIsInMemory = false ;
67
67
private boolean myIsDirty = false ; // if anything has changed
68
68
private boolean myNeedToPersist = false ; // Do we need to write data to disk
69
69
private boolean myNeedsClean = false ; // is there old sloeber data that needs cleaning
@@ -121,7 +121,7 @@ public void run(IProgressMonitor internalMonitor) throws CoreException {
121
121
sloeberProject .setOtherDescription (RELEASE , new OtherDescription ());
122
122
// we failed to read from disk so we set opourselfves some values
123
123
// faking the stuf is in memory
124
- sloeberProject .isInMemory = true ;
124
+ sloeberProject .myIsInMemory = true ;
125
125
}
126
126
String configName = sloeberProject .myBoardDescriptions .keySet ().iterator ().next ();
127
127
BoardDescription boardDescriptor = sloeberProject .getBoardDescription (configName , true );
@@ -403,7 +403,7 @@ public synchronized boolean configure(ICProjectDescription prjCDesc, boolean prj
403
403
try {
404
404
myIsConfiguring = true ;
405
405
406
- if (isInMemory ) {
406
+ if (myIsInMemory ) {
407
407
if (myIsDirty ) {
408
408
createSloeberConfigFiles (prjCDesc );
409
409
setAllEnvironmentVars (prjCDesc );
@@ -605,7 +605,7 @@ private boolean readConfig(ICProjectDescription prjCDesc, boolean prjDescWritabl
605
605
projDescNeedsWriting = true ;
606
606
}
607
607
}
608
- isInMemory = true ;
608
+ myIsInMemory = true ;
609
609
return projDescNeedsWriting ;
610
610
}
611
611
@@ -885,6 +885,10 @@ public OtherDescription getOtherDescription(String confDescName, boolean allowNu
885
885
* @return
886
886
*/
887
887
public String getDecoratedText (String text ) {
888
+ String pleaseWait = "Please wait" ; //$NON-NLS-1$
889
+ if (!myIsInMemory || myIsConfiguring ) {
890
+ return pleaseWait ;
891
+ }
888
892
ICProjectDescription prjDesc = CoreModel .getDefault ().getProjectDescription (myProject );
889
893
if (prjDesc != null ) {
890
894
ICConfigurationDescription confDesc = prjDesc .getActiveConfiguration ();
@@ -995,7 +999,7 @@ public void sloeberCfgChanged() {
995
999
CCorePlugin cCorePlugin = CCorePlugin .getDefault ();
996
1000
ICProjectDescription projDesc = cCorePlugin .getProjectDescription (myProject );
997
1001
ICConfigurationDescription activeConfig = projDesc .getActiveConfiguration ();
998
- isInMemory = false ;
1002
+ myIsInMemory = false ;
999
1003
boolean projDescNeedsSaving = configure (projDesc , true );
1000
1004
Helpers .deleteBuildFolder (myProject , activeConfig .getName ());
1001
1005
projDescNeedsSaving = projDescNeedsSaving || setActiveConfig (activeConfig );
@@ -1058,7 +1062,7 @@ private static String getConfigKey(ICConfigurationDescription configDesc) {
1058
1062
* @return true if the data is available and up to date
1059
1063
*/
1060
1064
private boolean needsconfiguring () {
1061
- return myIsDirty || !isInMemory ;
1065
+ return myIsDirty || !myIsInMemory ;
1062
1066
}
1063
1067
1064
1068
public Map <String , String > getEnvironmentVariables (String configKey ) {
0 commit comments