svn commit: r639784 - in /ofbiz/trunk/framework/webtools: config/WebtoolsUiLabels.xml src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java widget/ArtifactInfoScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r639784 - in /ofbiz/trunk/framework/webtools: config/WebtoolsUiLabels.xml src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java widget/ArtifactInfoScreens.xml

jonesde
Author: jonesde
Date: Fri Mar 21 13:04:13 2008
New Revision: 639784

URL: http://svn.apache.org/viewvc?rev=639784&view=rev
Log:
Some i18n, started anyway, and filled in a few methods

Modified:
    ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml
    ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java
    ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java
    ofbiz/trunk/framework/webtools/widget/ArtifactInfoScreens.xml

Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml?rev=639784&r1=639783&r2=639784&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml (original)
+++ ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml Fri Mar 21 13:04:13 2008
@@ -324,6 +324,9 @@
         <value xml:lang="th">ทั้งหมด</value>
         <value xml:lang="zh">全部</value>
     </property>
+    <property key="WebtoolsArtifactInfo">
+        <value xml:lang="en">Artifact Info</value>
+    </property>
     <property key="WebtoolsAsync">
         <value xml:lang="en">ASYNC</value>
         <value xml:lang="it">Asincrono</value>

Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java?rev=639784&r1=639783&r2=639784&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ArtifactInfoFactory.java Fri Mar 21 13:04:13 2008
@@ -95,6 +95,7 @@
     public Map<String, Set<ServiceEcaArtifactInfo>> allServiceEcaInfosReferringToServiceName = FastMap.newInstance();
     public Map<String, Set<ServiceArtifactInfo>> allServiceInfosReferringToServiceName = FastMap.newInstance();
     public Map<String, Set<FormWidgetArtifactInfo>> allFormInfosReferringToServiceName = FastMap.newInstance();
+    public Map<String, Set<FormWidgetArtifactInfo>> allFormInfosBasedOnServiceName = FastMap.newInstance();
     public Map<String, Set<ScreenWidgetArtifactInfo>> allScreenInfosReferringToServiceName = FastMap.newInstance();
     public Map<String, Set<ControllerRequestArtifactInfo>> allRequestInfosReferringToServiceName = FastMap.newInstance();
     

Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java?rev=639784&r1=639783&r2=639784&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/artifactinfo/ServiceArtifactInfo.java Fri Mar 21 13:04:13 2008
@@ -260,9 +260,8 @@
     }
     
     public Set<ServiceArtifactInfo> getServicesCalledByServiceEcas() {
-        Set<ServiceArtifactInfo> serviceList = FastSet.newInstance();
-        // TODO: implement this
-        return serviceList;
+        // TODO: implement this sometime, not really necessary
+        return FastSet.newInstance();
     }
     
     public Set<ServiceEcaArtifactInfo> getServiceEcaRulesTriggeredByService() {
@@ -270,31 +269,24 @@
     }
     
     public Set<ServiceArtifactInfo> getServicesCallingServiceByEcas() {
-        Set<ServiceArtifactInfo> serviceList = FastSet.newInstance();
-        // TODO: implement this
-        return serviceList;
+        // TODO: implement this sometime, not really necessary
+        return FastSet.newInstance();
     }
     
     public Set<ServiceEcaArtifactInfo> getServiceEcaRulesCallingService() {
-        return aif.allServiceEcaInfosReferringToServiceName.get(this.modelService.name);
+        return this.aif.allServiceEcaInfosReferringToServiceName.get(this.modelService.name);
     }
     
     public Set<FormWidgetArtifactInfo> getFormsCallingService() {
-        Set<FormWidgetArtifactInfo> formSet = FastSet.newInstance();
-        // TODO: implement this
-        return formSet;
+        return this.aif.allFormInfosReferringToServiceName.get(this.modelService.name);
     }
     
     public Set<FormWidgetArtifactInfo> getFormsBasedOnService() {
-        Set<FormWidgetArtifactInfo> formSet = FastSet.newInstance();
-        // TODO: implement this
-        return formSet;
+        return this.aif.allFormInfosBasedOnServiceName.get(this.modelService.name);
     }
     
     public Set<ScreenWidgetArtifactInfo> getScreensCallingService() {
-        Set<ScreenWidgetArtifactInfo> screenSet = FastSet.newInstance();
-        // TODO: implement this
-        return screenSet;
+        return this.aif.allScreenInfosReferringToServiceName.get(this.modelService.name);
     }
     
     public Set<ControllerRequestArtifactInfo> getRequestsWithEventCallingService() {

Modified: ofbiz/trunk/framework/webtools/widget/ArtifactInfoScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/widget/ArtifactInfoScreens.xml?rev=639784&r1=639783&r2=639784&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/widget/ArtifactInfoScreens.xml (original)
+++ ofbiz/trunk/framework/webtools/widget/ArtifactInfoScreens.xml Fri Mar 21 13:04:13 2008
@@ -26,7 +26,7 @@
                 <if-has-permission permission="ARTIFACT_INFO_VIEW"/>
             </condition>
             <actions>
-                <set field="titleProperty" value="WebtoolsServiceReference"/>
+                <set field="titleProperty" value="WebtoolsArtifactInfo"/>
                 <set field="headerItem" value="ArtifactInfo"/>
                 <script location="component://webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.bsh"/>
             </actions>