1 <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2 pageEncoding="ISO-8859-1"%>
3 <%@ taglib prefix="s" uri="/struts-tags"%>
5 <s:url id="properties" namespace="/" action="select">
6 <s:param name="menu">configuration</s:param>
8 <s:url id="scenario" namespace="/study" action="add-scenario"></s:url>
9 <s:url id="idea" namespace="/study" action="notyetimplemented"></s:url>
10 <s:url id="back" namespace="/study" action="step-study"></s:url>
12 <table width=100% border=0 cellspacing=0 cellpadding=0>
13 <tr height=30 valign=middle>
15 <s:if test="toolBarSettings.isToolStudy">
16 <td width=30 align=left><s:if test="toolBarSettings.canUserEdit">
17 <s:a href="%{#properties}">
18 <img src="<s:url value="/skin/tool.property.png"/>" border="none"
19 title="<s:text name="tooltip.property"/>" />
22 <s:a href="%{#properties}">
23 <img src="<s:url value="/skin/tool.property.png"/>" border="none"
24 title="<s:text name="tooltip.details"/>" />
27 <td width=30 align=left><s:if
28 test="toolBarSettings.isEnabledScript">
29 <s:a href="%{#scenario}">
30 <img src="<s:url value="/skin/tool.scenario.png"/>" border="none"
31 title="<s:text name="tooltip.scenario"/>" />
34 <img src="<s:url value="/skin/disabled.scenario.png"/>"
35 border="none" title="" />
37 <%-- URL for refreshing scenario view after checkin --%>
38 <s:url id="refresh" forceAddSchemeHostAndPort="true"
39 namespace="/study" action="open-%{#entitype}">
40 <s:param name="selection" value="titleBarSettings.selectionState" />
43 src="<s:url value="/skin/image.vseparator.png"/>" border="none" />
45 test="openStudy.selectedStepRights.canCreateDocument() && (openStudy.moduleBar != null)">
46 <applet name="perform" id="perform"
47 code="org.splat.launcher.ToolbarApplet"
48 archive="../jap/splat-signedlauncher.jar"
49 width=<s:property value="openStudy.moduleBar.width"/>
50 height=<s:property value="openStudy.moduleBar.height"/>> <%-- Generate applet parameters for each tool button --%>
51 <s:iterator var="tool" value="openStudy.moduleBar.items"
53 <s:set var="arg" value="#tool.argument" />
54 <param name="icon<s:property value="#stat.index" />"
55 value="<s:property value="#tool.icon" />" />
56 <param name="tool<s:property value="#stat.index" />"
57 value="<s:property value="#tool.action" />" />
58 <s:if test="#tool.action == 'runSalome'">
60 --siman --siman-study=s --siman-scenario=sc --siman-user=u -k
62 <s:set var="arg">--siman --siman-study=<s:property
63 value="openStudy.index" /> --siman-scenario=<s:property
64 value="openStudy.selectedScenarioId" /> --siman-user=<s:property
65 value="connectedUser.username" /> -k</s:set>
67 <s:if test="#arg != null">
68 <param name="file<s:property value="#stat.index" />"
69 value="<s:property value="#arg" />" />
72 <param name="refresh" value="<s:property value="%{refresh}"/>">
75 <td width=30 align=right><s:a href="%{#idea}">
76 <img src="<s:url value="/skin/icon.idea.png"/>" border="none"
77 title="<s:text name="tooltip.search"/>" />
81 <s:elseif test="toolBarSettings.isToolStandard">
82 <td width=30 align=left><s:a href="%{#properties}">
83 <img src="<s:url value="/skin/tool.property.png"/>" border="none"
84 title="<s:text name="tooltip.details"/>" />
88 <s:elseif test="toolBarSettings.isToolBack">
89 <td width=30 align=left><s:a href="%{#back}">
90 <img src="<s:url value="/skin/icon.back.png"/>" border="none"
91 title="<s:text name="tooltip.back"/>" />