public String doInitialize() {
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
contype = getInvolvedContexts();
setMenuProperty("study");
}
public String doSelectContext() {
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
setMenuProperty("study");
setTitleProperty("study");
public String doCreateContext() {
// --------------------------------
try {
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
setMenuProperty("study");
setTitleProperty("study");
if (newtype.length() == 0 || value.length() == 0)
return INPUT;
- Step step = mystudy.getSelectedStep();
+ Step step = _openStudy.getSelectedStep();
ProjectElement owner = step.getOwner();
SimulationContext.Properties cprop = new SimulationContext.Properties();
else
contex = getStepService().addSimulationContext(step, cprop); // Re-indexes knowledges only
- mystudy.add(contex);
+ _openStudy.add(contex);
return SUCCESS;
} catch (RuntimeException saverror) {
LOG.error("Reason:", saverror);
initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
try {
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
- Step step = mystudy.getSelectedStep();
+ Step step = _openStudy.getSelectedStep();
ProjectElement owner = step.getOwner();
SimulationContext context = step.getSimulationContext(Integer
- .valueOf(myindex));
+ .valueOf(_myindex));
if (owner instanceof Study)
getStudyService()
.removeProjectContext(((Study) owner), context); // Re-indexes knowledges and the study
else
getStepService().removeSimulationContext(step, context); // Re-indexes knowledges only
- mystudy.remove(context);
+ _openStudy.remove(context);
return SUCCESS;
} catch (RuntimeException saverror) {
LOG.error("Reason:", saverror);
initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
try {
- mystudy = getOpenStudy();
+ _openStudy = getOpenStudy();
- Step step = mystudy.getSelectedStep();
+ Step step = _openStudy.getSelectedStep();
ProjectElement owner = step.getOwner();
SimulationContext contex = null;
else
contex = getStepService().addSimulationContext(step, cprop); // Re-indexes knowledges only
}
- mystudy.add(contex);
+ _openStudy.add(contex);
contype = getInvolvedContexts();
// transax.commit();
private List<SimulationContextType> getInvolvedContexts() {
// ----------------------------------------------------------
SimulationContextType.Properties sprop = new SimulationContextType.Properties()
- .setStep(mystudy.getSelectedStep().getStep());
+ .setStep(_openStudy.getSelectedStep().getStep());
List<SimulationContextType> contype = getSimulationContextService()
.selectTypesWhere(sprop);