]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Promote, Demote, Validate... operations are available without refresh operation.
authormka <mka@opencascade.com>
Wed, 3 Apr 2013 15:00:27 +0000 (15:00 +0000)
committermka <mka@opencascade.com>
Wed, 3 Apr 2013 15:00:27 +0000 (15:00 +0000)
Workspace/Siman/src/org/splat/simer/DisplayStudyStepAction.java
Workspace/Siman/src/struts.xml

index 8d377558d3712d7680b29c8b2a657b946a6bae08..7e35326812ea6fcc66280549fff167d36c3ee585 100644 (file)
@@ -48,11 +48,11 @@ public class DisplayStudyStepAction extends AbstractDisplayAction {
                if (_myindex == null) {
                        if (_selection == null) { // Opening a study just newed
                                _selection = _openStudy.getSelection(); // Default selection
-                       } else { // Re-opening (refreshing) the currently open study
-                               _openStudy = open(getStudyService().selectStudy(
-                                               _openStudy.getIndex())); // Closes the previously open study
-                               _openStudy.setSelection(_selection);
-                       }
+                       } 
+                       // Re-opening (refreshing) the currently open study
+                       _openStudy = open(getStudyService().selectStudy(
+                                       _openStudy.getIndex())); // Closes the previously open study
+                       _openStudy.setSelection(_selection);
                } else {
                        try { // Opening a study from the search result
                                int index = Integer.valueOf(_myindex);
index 23c10e367f9d112d2060f44d11a4072ee3850682..965f780801b7668b2f33e1edd4c0dd50fd4fefc1 100644 (file)
                </action>
                <action name="login" class="connectionAction" method="login">
                        <result name="none" type="tiles">page.home</result>
+            <result name="create" type="tiles">page.home</result>
                        <result name="open" type="redirectAction">
                                select?menu=search
                        </result>
                        <result name="study" type="redirectAction">
-                               study/step-study
+                               study/open-study
                        </result>
                        <result name="knowledge" type="redirectAction">
                                study/step-knowledge
                        <result name="sysadmin" type="tiles">page.home</result>
                </action>
                <action name="select" class="menuAction" method="selectItem">
-            <result name="new-empty" type="redirectAction">
-                study/new-empty
-            </result>
+                       <result name="new-empty" type="redirectAction">
+                               study/new-empty
+                       </result>
             <result name="new-copy" type="redirectAction">
                 study/new-copy
             </result>
                        <result name="success">/study/jsonCheckoutRes.jsp</result>
                </action>
 
-        <!-- Creation of a study
-        -->
-        <action name="new-empty" class="newStudyAction"
-            method="initialize">
-            <result name="success" type="tiles">page.newstudy</result>
-        </action>
-        <action name="valid-new" class="newStudyAction"
-            method="create">
-            <!--interceptor-ref name="siman-validation" /-->
-            <result name="success" type="redirectAction">
-                open-study?selection=0.1
-            </result>
-            <result name="input" type="tiles">page.newstudy</result>
-            <result name="error" type="tiles">page.home</result>
-        </action>
+               <!-- Creation of a study
+               -->
+               <action name="new-empty" class="newStudyAction"
+                       method="initialize">
+                       <result name="success" type="tiles">page.newstudy</result>
+               </action>
+               <action name="valid-new" class="newStudyAction"
+                       method="create">
+                       <!--interceptor-ref name="siman-validation" /-->
+                       <result name="success" type="redirectAction">
+                               open-study?selection=0.1
+                       </result>
+                       <result name="input" type="tiles">page.newstudy</result>
+                       <result name="error" type="tiles">page.home</result>
+               </action>
 
         <!-- Creation of a new study from existing one
         -->