details:   /erp/devel/pi/rev/ab7d3751a0f6
changeset: 10869:ab7d3751a0f6
user:      Stefan Hühner <stefan.huehner <at> openbravo.com>
date:      Thu Feb 24 15:25:43 2011 +0100
summary:   Improve performance of view generation by removing unneded dal flush 
calls.

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
 |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 59fa75de3bca -r ab7d3751a0f6 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
       Thu Feb 24 14:44:31 2011 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
       Thu Feb 24 15:25:43 2011 +0100
@@ -144,7 +144,7 @@
     if (!ActivationKey.getInstance().isActive() || 
tab.getTable().isFullyAudited()) {
       IconButton auditBtn = new IconButton();
       auditBtn.type = "audit";
-      auditBtn.label = Utility.messageBD(new DalConnectionProvider(), 
"AuditTrail", OBContext
+      auditBtn.label = Utility.messageBD(new DalConnectionProvider(false), 
"AuditTrail", OBContext
           .getOBContext().getLanguage().getLanguage());
       auditBtn.action = "OB.ToolbarUtils.showAuditTrail(this.view);";
       iconButtons.add(auditBtn);
@@ -154,7 +154,7 @@
     if (tab.isTreeIncluded()) {
       IconButton treeBtn = new IconButton();
       treeBtn.type = "tree";
-      treeBtn.label = Utility.messageBD(new DalConnectionProvider(), "Tree", 
OBContext
+      treeBtn.label = Utility.messageBD(new DalConnectionProvider(false), 
"Tree", OBContext
           .getOBContext().getLanguage().getLanguage());
       treeBtn.action = "OB.ToolbarUtils.showTree(this.view);";
       iconButtons.add(treeBtn);
@@ -172,7 +172,7 @@
     if (printBtn.hasEmail) {
       IconButton emailBtn = new IconButton();
       emailBtn.type = "email";
-      emailBtn.label = Utility.messageBD(new DalConnectionProvider(), "Email", 
OBContext
+      emailBtn.label = Utility.messageBD(new DalConnectionProvider(false), 
"Email", OBContext
           .getOBContext().getLanguage().getLanguage());
       emailBtn.action = printBtn.action.replace("print.html", "send.html");
       btns.add(emailBtn);
@@ -613,7 +613,7 @@
       type = "print";
       action = "OB.ToolbarUtils.print(this.view, '" + processUrl + "', " + 
process.isDirectPrint()
           + ");";
-      label = Utility.messageBD(new DalConnectionProvider(), "Print", 
OBContext.getOBContext()
+      label = Utility.messageBD(new DalConnectionProvider(false), "Print", 
OBContext.getOBContext()
           .getLanguage().getLanguage());
     }
   }

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to