Beispiel #1
0
 public IRuntimeFactory getRuntimeFactory(String scriptText) {
   Map<String, Object> fixtureProperties =
       ScriptModelClientPart.getModel().getFixtureProperties(scriptText);
   if (fixtureProperties == null || fixtureProperties.size() == 0) return runtimeFactory;
   if (state == State.STOPPED_WITH_APP_OPEN) reuseFixture = true;
   else reuseFixture = Boolean.valueOf((String) fixtureProperties.get(Constants.FIXTURE_REUSE));
   String launcherModel = (String) fixtureProperties.get(Constants.PROP_PROJECT_LAUNCHER_MODEL);
   IRuntimeLauncherModel lm = LauncherModelHelper.getLauncherModel(launcherModel);
   if (lm == null) return runtimeFactory;
   return lm.getRuntimeFactory();
 }
Beispiel #2
0
 private String getFixtureHeader() {
   return ScriptModelClientPart.getModel().getFixtureHeader(fixture);
 }