Examples of replace()


Examples of org.apache.yoko.orb.CORBA.Any.replace()

            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        Any any = _OB_currentAny();

        checkValue(any, org.omg.CORBA.TCKind.tk_boolean);

        any.replace(any.type(), Boolean.valueOf(value));

        notifyParent();
    }

    public synchronized void insert_octet(byte value)
View Full Code Here

Examples of org.beryl.gui.model.TableRow.replace()

      } else if (event.getName().equals("save")) {
        Frame frame = (Frame) event.getSource().getParentWidgetByClass(Frame.class);
        MapDataModel model = frame.getDataModel();
        model.removeModelChangeListener(this);
        TableRow source = (TableRow) model.removeValueByKey(null, "source");
        source.replace(model);
        frame.dispose();
      }
    } catch (GUIException e) {
      new MessageDialog(e);
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.replace()

        //                          +-------+   +--------+
        //

        // 1) create new concurrent execution (CCE-1) replacing the the active scope execution (e)
        PvmExecutionImpl replacingExecution = execution.createExecution();
        replacingExecution.replace(execution); // only copy tasks(?)
        replacingExecution.setActivity(execution.getActivity());
        replacingExecution.setActive(execution.isActive());
        replacingExecution.setScope(false);
        replacingExecution.setConcurrent(true);
View Full Code Here

Examples of org.cfeclipse.cfml.editors.ICFDocument.replace()

        StringBuffer currentIndent = XmlDocumentFormatter.getLeadingWhitespace(region.getOffset(), document);
        String formattedText = keyWordsToUpper(regionText);
        int lineOffset = document.getLineInformationOfOffset(region.getOffset()).getOffset();
        if (formattedText != null && !formattedText.equals(regionText)) {
          int newLength = region.getLength() + (region.getOffset() - lineOffset);
          document.replace(lineOffset, newLength, formattedText);
        }
      } catch (BadLocationException e) {
        e.printStackTrace();
      }
    } else {
View Full Code Here

Examples of org.codehaus.groovy.classgen.asm.OperandStack.replace()

                    // unbox
                    // GROOVY-6270
                    if (!os.getTopOperand().equals(type)) BytecodeHelper.doCast(mv, type);
                    mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Boolean", "booleanValue", "()Z", false);
                    mv.visitLabel(exit);
                    os.replace(ClassHelper.boolean_TYPE);
                    return;
                }
                ClassNode top = type;
                if (ClassHelper.isPrimitiveType(top)) {
                    expression.visit(visitor);
View Full Code Here

Examples of org.dspace.content.packager.PackageIngester.replace()

            // Whether or not to use the collection template
            params.setUseCollectionTemplate(ConfigurationManager.getBooleanProperty("mets.default.ingest.useCollectionTemplate", false));

      // ingest the item from the temp file
      DSpaceObject ingestedObject = pi.replace(context, item, depositFile, params);
      if (ingestedObject == null)
      {
        verboseDescription.append("Failed to ingest the package; throwing exception");
                throw new SwordError(DSpaceUriRegistry.UNPACKAGE_FAIL, "METS package ingester failed to unpack package");
      }
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IList.replace()

          if(!repl.getType().isList()){
            throw new UnexpectedType(rec.getType(), repl.getType(), __eval.__getEval().getCurrentAST());
          }
         
          __eval.__setValue(__eval.newResult(list, __eval.__getValue()));
          list = list.replace(firstIndex, secondIndex, endIndex, (IList) repl);
         
          result = org.rascalmpl.interpreter.result.ResultFactory
              .makeResult(rec.hasInferredType() ? rec.getType()
                  .lub(list.getType()) : rec.getType(), list,
                  __eval.__getEval());
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.INode.replace()

          if(!repl.getType().isList()){
            throw new UnexpectedType(rec.getType(), repl.getType(), __eval.__getEval().getCurrentAST());
          }

          __eval.__setValue(__eval.newResult(node, __eval.__getValue()));
          node = node.replace(firstIndex, secondIndex, endIndex, (IList) repl);

          result = org.rascalmpl.interpreter.result.ResultFactory
              .makeResult(rec.hasInferredType() ? rec.getType()
                  .lub(node.getType()) : rec.getType(), node,
                  __eval.__getEval());
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IString.replace()

          if(!repl.getType().isString()){
            throw new UnexpectedType(rec.getType(), repl.getType(), __eval.__getEval().getCurrentAST());
          }
         
          __eval.__setValue(__eval.newResult(str, __eval.__getValue()));
          str = str.replace(firstIndex, secondIndex, endIndex, (IString) repl);
         
          result = org.rascalmpl.interpreter.result.ResultFactory
              .makeResult(rec.hasInferredType() ? rec.getType()
                  .lub(str.getType()) : rec.getType(), str,
                  __eval.__getEval());
View Full Code Here

Examples of org.eclipse.jdt.core.IBuffer.replace()

      ISourceRange range = field.getSourceRange();
      IBuffer buf = cu.getBuffer();
      String originalContent = buf.getText(range.getOffset(), range.getLength());
      String formattedContent = CodeFormatterUtil.format(CodeFormatter.K_CLASS_BODY_DECLARATIONS, originalContent, 1, null,
          lineDelimiter, field.getJavaProject());
      buf.replace(range.getOffset(), range.getLength(), formattedContent);
      if (!cu.isWorkingCopy())
        buf.save(null, false);

      imports.create(needsSave, new SubProgressMonitor(monitor, 1));
      removeUnusedImports(cu, needsSave);
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.