Examples of clone()


Examples of com.dubture.getcomposer.core.objects.Person.clone()

    }
  }
 
  private void handleEdit() {
    Person author = (Person)((StructuredSelection)authorViewer.getSelection()).getFirstElement();
    PersonDialog diag = new PersonDialog(authorViewer.getTable().getShell(), author.clone());
    if (diag.open() == Dialog.OK) {
      author.setName(diag.getPerson().getName());
      author.setEmail(diag.getPerson().getEmail());
      author.setHomepage(diag.getPerson().getHomepage());
      author.setRole(diag.getPerson().getRole());
View Full Code Here

Examples of com.dubture.getcomposer.core.repositories.Repository.clone()

    }
  }
 
  private void handleEdit() {
    Repository repo = (Repository)((StructuredSelection)repositoryViewer.getSelection()).getFirstElement();
    RepositoryDialog diag = new RepositoryDialog(repositoryViewer.getTable().getShell(), repo.clone());
    if (diag.open() == Dialog.OK) {
      Repository newRepo = diag.getRepository();
      repo.setName(newRepo.getName());
      repo.setUrl(newRepo.getUrl());
    }
View Full Code Here

Examples of com.ericsson.ssa.sip.AddressImpl.clone()

                        throw new SipRoutingException("Malformed Contact", e);
                    }

                    URIImpl contactUri = ((URIImpl) contactAddress.getURI());

                    contactAddress = ((AddressImpl) contactAddress.clone(true, true));
                    contactUri = (URIImpl) contactUri.clone();
                    contactUri.encodeBeKey(hashkey);
                    // Allow writes on cloned Address object
                    contactAddress.setReadOnly(false);
                    contactAddress.setURI(contactUri);
View Full Code Here

Examples of com.ericsson.ssa.sip.URIImpl.clone()

                    }

                    URIImpl contactUri = ((URIImpl) contactAddress.getURI());

                    contactAddress = ((AddressImpl) contactAddress.clone(true, true));
                    contactUri = (URIImpl) contactUri.clone();
                    contactUri.encodeBeKey(hashkey);
                    // Allow writes on cloned Address object
                    contactAddress.setReadOnly(false);
                    contactAddress.setURI(contactUri);
                    contactHeader.setReadOnly(false);
View Full Code Here

Examples of com.eteks.sweethome3d.model.Camera.clone()

    float z = camera.getZ();
    float yaw = camera.getYaw();
    float pitch = camera.getPitch();
    float fieldOfView = camera.getFieldOfView();
    long  time = camera.getTime();
    videoFramesPath.add(camera.clone());
   
    for (int i = 1; i < cameraPath.size(); i++) {
      camera = cameraPath.get(i);                 
      float newX = camera.getX();
      float newY = camera.getY();
View Full Code Here

Examples of com.extentech.formats.XLS.formulas.Ptg.clone()

        if (ptg instanceof PtgRefN){
          ptg = ((PtgRefN)ptg).convertToPtgRef(f);
        }else if (ptg instanceof PtgAreaN){
          ptg = ((PtgAreaN)ptg).convertToPtgArea(f);
        } else {
          ptg = (Ptg) ptg.clone();
            ptg.setParentRec( f );
        }
       
        out.add( ptg );
      }
View Full Code Here

Examples of com.fasterxml.uuid.EthernetAddress.clone()

        // For EthernetAddress, this test will check that all the above
        // ARE true in the case of EthernetAddress clone() because it is
        // the desired behavior.
        EthernetAddress x = new EthernetAddress(VALID_ETHERNET_ADDRESS_STRING);
        assertTrue("x.clone() != x did not return true",
                    x.clone() != x);
        assertTrue("x.clone().getClass() == x.getClass() did not return true",
                    x.clone().getClass() == x.getClass());
        assertTrue("x.clone().equals(x) did not return true",
                    x.clone().equals(x));
    }
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.clone()

     * @return the current item in the collection
     */
    public Object jsxFunction_item() {
        if (!jsxFunction_atEnd()) {
            SimpleScriptable scriptable = (SimpleScriptable) collection_.get(index_, collection_);
            scriptable = scriptable.clone();
            scriptable.setCaseSensitive(false);
            return scriptable;
        }
        return Undefined.instance;
    }
View Full Code Here

Examples of com.google.api.services.genomics.model.Dataset.clone()

    Dataset expectedDataset = new Dataset().setName("dataset")
        .setProjectNumber(5L).setIsPublic(false);

    Mockito.when(datasets.create(expectedDataset)).thenReturn(datasetCreate);
    Mockito.when(datasetCreate.execute()).thenReturn(expectedDataset.clone().setId("id"));

    command.handleRequest(genomics);

    Map<String,String> previousDatasets = command.getPreviousDatasets();
    assertEquals(1, previousDatasets.size());
View Full Code Here

Examples of com.google.caja.lexer.CharProducer.clone()

    CharProducer testInput = fromResource("amazon.com.html");
    InputSource is = testInput.getSourceBreaks(0).source();
    MessageQueue mq = DevNullMessageQueue.singleton();
    long t0 = System.nanoTime();
    for (int i = nRuns; --i >= 0;) {
      HtmlLexer lexer = new HtmlLexer(testInput.clone());
      lexer.setTreatedAsXml(false);
      TokenQueue<HtmlTokenType> tq = new TokenQueue<HtmlTokenType>(
          lexer, is, DomParser.SKIP_COMMENTS);
      DomParser p = new DomParser(tq, false, mq);
      p.setNeedsDebugData(false);
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.