Examples of replace()


Examples of com.intellij.psi.PsiImportList.replace()

        manager.commitDocument(document);
      }
      final PsiImportList oldImportList = ((PsiJavaFile) psiFile).getImportList();
      assert oldImportList != null;
      if (newImportList != null) {
        oldImportList.replace(newImportList);
      }
      manager.doPostponedOperationsAndUnblockDocument(document);
    } catch (IncorrectOperationException e) {
      LOG.error(e);
    }
View Full Code Here

Examples of com.intellij.psi.css.CssElement.replace()

                    {
                        // Priority not changed - only need to alter the value text.
                        CssElement navigationElement = getNavigationElement();
                        if (navigationElement instanceof CssTermList)
                        {
                            navigationElement.replace(CssUtils.createTermList(navigationElement.getProject(), value));
                        }
                        else if (navigationElement instanceof CssDeclaration)
                        {
                            ((CssDeclaration) navigationElement).setValue(value);
                        }
View Full Code Here

Examples of com.knowgate.addrbook.Meeting.replace()

          ResultSet oRst = oStm.executeQuery();         
          if (oRst.next()) {
            oMeet.load(oCon, oRst.getString(1));
                    oRst.close();
                    oStm.close();
                      if (null!=sDtStart) oMeet.replace(DB.dt_start, oFmt.parse(sDtStart));
                      if (null!=sDtEnd) oMeet.replace(DB.dt_end, oFmt.parse(sDtEnd));           
            if (null!=sDtStart && null!=sDtEnd)
              if (oFmt.parse(sDtStart).getTime()>oFmt.parse(sDtEnd).getTime())
                throw new IllegalArgumentException("Start date must be prior to end date");
            if (null!=request.getParameter("type"))
View Full Code Here

Examples of com.knowgate.crm.Contact.replace()

              oStmt.setString(1, sDirName);
              oStmt.setString(2, sDirName);
              oStmt.setString(3, sDirName);
              ResultSet oRSet = oStmt.executeQuery();
              if (oRSet.next()) {
                oCont.replace(DB.gu_contact , oRSet.getString(1));
                oCont.replace(DB.gu_workarea, oRSet.getString(2));
                oRSet.close();
                oCont.addAttachments(oConn, argv[2], aDirs[d].getAbsolutePath(), true);
                oConn.commit();
                aDirs[d].delete();
View Full Code Here

Examples of com.knowgate.dataobjs.DBPersist.replace()

               String sDtFmt = "";
               try {
                 if (iSpc > 0) {
                   sDtFmt = sSQLType.substring(++iSpc);
                   if (DebugFile.trace) DebugFile.writeln("date format is "+sDtFmt);
                   oDbp.replace(sKeyName, request.getParameter(sKey), new SimpleDateFormat(sDtFmt));
                 } else {
                   oDbp.replace(sKeyName, request.getParameter(sKey), DBColumn.getSQLType(sSQLType));
                 }
               } catch (ParseException pe) {
                 if (DebugFile.trace) DebugFile.decIdent();
View Full Code Here

Examples of com.knowgate.hipergate.Category.replace()

        if (iCompare>0)
          break;
        else if (iCompare==0) {
          oXML.append("<image><gu_image>"+img.getString(1,i)+"</gu_image>");

          oCurrentCat.replace(DB.gu_category, dbs.getString(0,c));

          try {
            oXML.append("<src_image>"+sWrkArGet+"/"+sWorkAreaId+"/apps/Shop/"+oCurrentCat.getPath(con)+"/"+img.getStringNull(3,i,"")+"</src_image>");
          }
          catch (SQLException sqle) {
View Full Code Here

Examples of com.knowgate.hipergate.Product.replace()

        oProd.put(DB.pct_tax_rate, 0f);
        oProd.put(DB.is_tax_included, (short) 1);
      } else {
        oProd = new Product(oConn, getString(DB.gu_acourse));
      } // fi
      oProd.replace(DB.id_status, getShort(DB.bo_active)==(short)1 ? Product.STATUS_ACTIVE : Product.STATUS_RETIRED);
      if (isNull(DB.gu_owner)) {
        if (DebugFile.trace) {
          DebugFile.writeln("NullPointerException gu_owner GUID from k_users table is required when storing an AcademicCourse that it is also a Product");
          DebugFile.decIdent();
        } // fi
View Full Code Here

Examples of com.knowgate.scheduler.Atom.replace()

                 oRst = oStm.executeQuery();
                 ResultSetMetaData oMdt = oRst.getMetaData();
                 boolean bHasNext = oRst.next();
                 while (bHasNext) {
                   Atom oAtm = new Atom(oRst, oMdt);
                   oAtm.replace(DB.id_format,sType);
                   try {                    
                     oSnd.process(oAtm);
                     oAtm.archive(oCon);                    
                     oCon.commit();
                     nSent++;
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage.replace()

      if(petItemId == 0 || !player.isMounted())
      {
        player.sendMessage("Ride your strider first...");
        NpcHtmlMessage html = new NpcHtmlMessage(1);
        html.setFile("data/html/fortress/wyvernmanager-explain.htm");
        html.replace("%count%", String.valueOf(10));
        player.sendPacket(html);
        html = null;
        return;
      }
      else if(player.isMounted() && petItem != null && petItem.getEnchantLevel() < 55)
View Full Code Here

Examples of com.liferay.maven.plugins.util.ContextReplace.replace()

    themeContextReplace.addValue("themes-path", null);

    String rootPath = GetterUtil.getString(
      themeElement.elementText("root-path"), "/");

    rootPath = themeContextReplace.replace(rootPath);

    themeContextReplace.addValue("root-path", rootPath);

    theme.setRootPath(rootPath);
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.