use of com.opensymphony.xwork2.config.Configuration in project benchmarx by eMoflon.
the class MediniQVTFamiliesToPersonsConfig method launchFWD.
private void launchFWD() {
Configuration configuration = (Configuration) config.getContents().get(0);
// Set direction in the configuration model
configuration.setFromPersonsToFamilies(false);
launch(fwdDir);
}
use of com.opensymphony.xwork2.config.Configuration in project benchmarx by eMoflon.
the class MediniQVTFamiliesToPersonsConfig method launchBWD.
private void launchBWD() {
Configuration configuration = (Configuration) config.getContents().get(0);
// Set direction in the configuration model
configuration.setFromPersonsToFamilies(true);
// Copy configuration parameters into configuration model
boolean preferCreatingParentToChild = configurator.decide(Decisions.PREFER_CREATING_PARENT_TO_CHILD);
configuration.setPreferParentToChild(preferCreatingParentToChild);
boolean preferExistingFamilyToNew = configurator.decide(Decisions.PREFER_EXISTING_FAMILY_TO_NEW);
configuration.setPreferExistingToNewFamily(preferExistingFamilyToNew);
launch(bwdDir);
}
Aggregations