File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
vcell-client/src/main/java/cbit/vcell/client/desktop/biomodel
vcell-core/src/main/java/cbit/vcell/resource Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 45
45
import cbit .vcell .mapping .SimulationContext .Application ;
46
46
import cbit .vcell .mapping .SimulationContext .MathMappingCallback ;
47
47
import cbit .vcell .mapping .SimulationContext .NetworkGenerationRequirements ;
48
+ import cbit .vcell .resource .PropertyLoader ;
48
49
import cbit .vcell .solver .Simulation ;
49
50
import cbit .vcell .xml .XmlHelper ;
50
51
import cbit .vcell .xml .XmlParseException ;
@@ -355,7 +356,10 @@ private javax.swing.JPopupMenu getNewAppPopupMenu() {
355
356
appsPopupMenu .add (appNewDeterministicApp );
356
357
appsPopupMenu .add (appNewStochApp );
357
358
appsPopupMenu .add (appNewRulebasedApp );
358
- appsPopupMenu .add (appNewSpringSaLaDApp );
359
+ String enableSpringSaLaD = PropertyLoader .getProperty (PropertyLoader .enableSpringSaLaD , "false" );
360
+ if ("true" .equals (enableSpringSaLaD )) {
361
+ appsPopupMenu .add (appNewSpringSaLaDApp );
362
+ }
359
363
// user code begin {1}
360
364
// user code end
361
365
} catch (java .lang .Throwable ivjExc ) {
Original file line number Diff line number Diff line change 72
72
import cbit .vcell .desktop .MathModelMetaDataPanel ;
73
73
import cbit .vcell .mapping .SimulationContext ;
74
74
import cbit .vcell .mathmodel .MathModel ;
75
+ import cbit .vcell .resource .PropertyLoader ;
75
76
import cbit .vcell .xml .gui .MiriamTreeModel .LinkNode ;
76
77
/**
77
78
* Insert the type's description here.
@@ -720,7 +721,10 @@ private void construcutPopupMenu() {
720
721
addNewAppMenu .add (addNewAppDeterministicMenuItem );
721
722
addNewAppMenu .add (addNewAppStochasticMenuItem );
722
723
addNewAppMenu .add (addNewAppRulebasedMenuItem );
723
- addNewAppMenu .add (addNewAppSpringSaLaDMenuItem );
724
+ String enableSpringSaLaD = PropertyLoader .getProperty (PropertyLoader .enableSpringSaLaD , "false" );
725
+ if ("true" .equals (enableSpringSaLaD )) {
726
+ addNewAppMenu .add (addNewAppSpringSaLaDMenuItem );
727
+ }
724
728
}
725
729
popupMenu .add (addNewAppMenu );
726
730
}
Original file line number Diff line number Diff line change @@ -248,6 +248,8 @@ public class PropertyLoader {
248
248
249
249
public static final String cliWorkingDir = record ("cli.workingDir" , ValueType .DIR );
250
250
251
+ public static final String enableSpringSaLaD = record ("vcell.enableSpringSaLaD" , ValueType .BOOL );
252
+
251
253
/**
252
254
* native library directory, server side
253
255
*/
You can’t perform that action at this time.
0 commit comments