]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/EditSimulationContextAction.java
Salome HOME
Modifications to respect PMD rules.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / EditSimulationContextAction.java
index 31ec5a3ffff3a2764411cec9bf9fcb7e71c05d05..5ed1a7d23ead99480ab7fdc23d8175de37063f0a 100644 (file)
@@ -77,7 +77,7 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
 
        public String doInitialize() {
 
-               mystudy = getOpenStudy();
+               _openStudy = getOpenStudy();
                contype = getInvolvedContexts();
                
                setMenuProperty("study");
@@ -98,7 +98,7 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
        }
 
        public String doSelectContext() {
-               mystudy = getOpenStudy();
+               _openStudy = getOpenStudy();
                
                setMenuProperty("study");
                setTitleProperty("study");
@@ -127,7 +127,7 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
        public String doCreateContext() {
                // --------------------------------
                try {
-                       mystudy = getOpenStudy();
+                       _openStudy = getOpenStudy();
                        
                        setMenuProperty("study");
                        setTitleProperty("study");
@@ -142,7 +142,7 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
                        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();
@@ -156,7 +156,7 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
                        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);
@@ -179,19 +179,19 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
                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);
@@ -216,9 +216,9 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
                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;
 
@@ -245,7 +245,7 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
                                else
                                        contex = getStepService().addSimulationContext(step, cprop); // Re-indexes knowledges only
                        }
-                       mystudy.add(contex);
+                       _openStudy.add(contex);
                        contype = getInvolvedContexts();
 
 //                     transax.commit();
@@ -309,7 +309,7 @@ public class EditSimulationContextAction extends DisplayStudyStepAction {
        private List<SimulationContextType> getInvolvedContexts() {
                // ----------------------------------------------------------
                SimulationContextType.Properties sprop = new SimulationContextType.Properties()
-                               .setStep(mystudy.getSelectedStep().getStep());
+                               .setStep(_openStudy.getSelectedStep().getStep());
                List<SimulationContextType> contype = getSimulationContextService()
                                .selectTypesWhere(sprop);