Package com.dbxml.util

Examples of com.dbxml.util.Stopwatch.stop()


               if ( info instanceof HasDocWrapper ) {
                  e.consume();
                  setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                  Stopwatch sw = new Stopwatch("Document Retrieval", true);
                  DocWrapper dw = ((HasDocWrapper)info).getDocWrapper();
                  sw.stop();
                  admin.setStatus(sw.toString());
                  admin.editDocument(dw);
                  setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
               }
               break;
View Full Code Here


         if ( info instanceof HasDocWrapper ) {
            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            Stopwatch sw = new Stopwatch("Document Retrieval", true);
            DocWrapper dw = ((HasDocWrapper)info).getDocWrapper();
            sw.stop();
            statusBar.setText(sw.toString());
            editDocument(dw);
            setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
         }
      }
View Full Code Here

      if ( ne.deactivate() ) {
         store.storeDocWrapper(doc);
         ne.activate(readOnly);
         nodeEditor = ne;
      }
      sw.stop();
      statusBar.setText(sw.toString());

      DefaultMutableTreeNode refreshNode = null;
      if ( nodes[nodes.length-1] == refresh )
         refreshNode = (DefaultMutableTreeNode)components[nodes.length-1];
View Full Code Here

      if ( ne.deactivate() ) {
         doc.store();
         ne.activate(readOnly);
         nodeEditor = ne;
      }
      sw.stop();
      statusBar.setText(sw.toString());
      return true;
   }

   public void fileSave_actionPerformed(ActionEvent e) {
View Full Code Here

               case 2:  style = XSLTQueryResolver.STYLE_XSLT;         break;
               default: style = XUpdateQueryResolver.STYLE_XUPDATE;   break;
            }
            ResultSetClient rs = col.queryCollection(style, query, cfg.getNamespaceMap());

            sw.stop();
            statusBar.setText(sw.toString());

            Document doc = DOMHelper.newDocument();
            Element root = doc.createElementNS(Query.NSURI, Query.PREFIX+":"+ResultSetWrapper.RESULTS);
            String colName = rs.getCollection().getCanonicalName();
View Full Code Here

                  if ( info != null ) {
                     if ( isPropertyTrue(INTERACTIVE) )
                        out.println();
                     Stopwatch sw = new Stopwatch("Execution", true);
                     info.command.process();
                     sw.stop();
                     if ( isPropertyTrue(DURATIONS) )
                        out.println("(" + sw.toString() + ")");
                     if ( isPropertyTrue(INTERACTIVE) )
                        out.println();
                  }
View Full Code Here

         case ACTION_EDIT:
            admin.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            Stopwatch sw = new Stopwatch("Document Retrieval", true);
            DocWrapper dw = getDocWrapper();
            sw.stop();
            admin.setStatus(sw.toString());
            admin.editDocument(dw);
            admin.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
            break;
View Full Code Here

                     catch ( Exception e ) {
                        error++;
                        admin.addMessage("Couldn't import '" + docName + "': "+e.getMessage());
                     }
                  }
                  sw.stop();
                  if ( error > 0 )
                     admin.addMessage(count+" Document(s) imported ("+error+" errors): "+sw.toString());
                  else
                     admin.setStatus(count+" Document(s) imported: "+sw.toString());
                  admin.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
View Full Code Here

         case ACTION_EDIT:
            admin.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            Stopwatch sw = new Stopwatch("Document Retrieval", true);
            DocWrapper dw = getDocWrapper();
            sw.stop();
            admin.setStatus(sw.toString());
            admin.editDocument(dw);
            admin.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
            break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.