]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Fix of "Config study" popup menu item.
authorrkv <rkv@opencascade.com>
Fri, 1 Feb 2013 11:37:44 +0000 (11:37 +0000)
committerrkv <rkv@opencascade.com>
Fri, 1 Feb 2013 11:37:44 +0000 (11:37 +0000)
Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java
Workspace/Siman/src/org/splat/simer/ApplicationSettings.java

index 425381eea67525a38a7c4a20efd2a2f89c58b525..122892593aaffa36f41b229841537a9a7e82681d 100644 (file)
@@ -34,12 +34,12 @@ import org.splat.dal.bo.som.Publication;
 import org.splat.dal.bo.som.Scenario;
 import org.splat.dal.bo.som.SimulationContext;
 import org.splat.dal.bo.som.Study;
-import org.splat.dal.bo.som.Study.Properties;
 import org.splat.dal.bo.som.ValidationCycle;
-import org.splat.dal.bo.som.ValidationCycle.Actor;
 import org.splat.dal.bo.som.ValidationCycleRelation;
 import org.splat.dal.bo.som.ValidationStep;
 import org.splat.dal.bo.som.Visibility;
+import org.splat.dal.bo.som.Study.Properties;
+import org.splat.dal.bo.som.ValidationCycle.Actor;
 import org.splat.dal.dao.som.IDBuilderDAO;
 import org.splat.dal.dao.som.ScenarioDAO;
 import org.splat.dal.dao.som.StudyDAO;
@@ -409,6 +409,7 @@ public class StudyServiceImpl implements StudyService {
         *            a study to promote
         * @return true if the demotion succeeded.
         */
+       @Transactional
        public boolean promote(final Study aStudy) {
                if (aStudy.getProgressState() == ProgressState.inWORK) {
                        aStudy.setProgressState(ProgressState.inDRAFT);
index 397dc825c0ef219e9fdbd07384eb624b16e63c4c..8a437cf28fc99cf3ccb1e0481106015a1f72d611 100644 (file)
@@ -504,7 +504,7 @@ public class ApplicationSettings {
                        /* addItem(MNU_PROMOTE, new PopupItem("menu.archive")); */
                        addSeparator();
                        addItem(MNU_EDIT, new PopupItem("menu.properties").icon(
-                                       "icon.ed.png").action("../select?menu=properties"));
+                                       "icon.ed.png").action("../select?menu=configuration&item=prop-general"));
                        addSeparator();
                        addItem(MNU_SCRIPT, new PopupItem(MNU_NAME_SCRIPT)
                                        .action("add-scenario"));