Examples of copy()


Examples of org.timepedia.chronoscope.client.util.Interval.copy()

    final Interval visibleDomain = this.visDomain;

    animationTimer = view.createTimer(new PortableTimerTask() {
      final double destDomainMid = destDomain.midpoint();

      final Interval srcDomain = visibleDomain.copy();

      // Ratio of destination domain to current domain
      final double zoomFactor = destDomain.length() / srcDomain.length();

      double startTime = 0;
View Full Code Here

Examples of org.tmatesoft.hg.internal.FileUtils.copy()

      String relPath = next.getAbsolutePath().substring(srcPrefix.length());
      File dest = new File(testRepoLoc, relPath);
      if (next.isDirectory()) {
        dest.mkdir();
      } else {
        fu.copy(next, dest);
        dest.setLastModified(next.lastModified());
      }
    }
    return testRepoLoc;
  }
View Full Code Here

Examples of org.togglz.core.repository.FeatureState.copy()

        // no cache hit
        FeatureState featureState = delegate.getFeatureState(feature);

        // cache the result (may be null)
        cache.put(feature.name(), new CacheEntry(featureState != null ? featureState.copy() : null));

        // return the result
        return featureState;

    }
View Full Code Here

Examples of org.uberfire.io.IOService.copy()

        CherryPickCopyOption copyOption = new CherryPickCopyOption(orderedCommits);
        String outcome = "unknown";
        try {
            logger.debug("Cherry pick command execution");
            ioService.copy(fromBranchPath, toBranchPath, copyOption);

            outcome = "success";
        } catch (Exception e) {
            outcome = "failure : " + e.getMessage();
            logger.error("Error when cherry picking commits from {} to {}", fromBranchName, toBranchName, e);
View Full Code Here

Examples of org.uberfire.java.nio.file.spi.FileSystemProvider.copy()

        checkNotNull( "source", source );
        checkNotNull( "target", target );

        final FileSystemProvider provider = providerOf( source );
        if ( providerOf( target ) == provider ) {
            provider.copy( source, target, options );
            return target;
        }

        throw new UnsupportedOperationException( "can't copy from different providers" );
    }
View Full Code Here

Examples of org.uberfire.java.nio.fs.file.SimpleFileSystemProvider.copy()

        final Path source = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), userSourcePath, false );
        final Path dest = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), userDestPath, false );
        fsProvider.createDirectory( source );

        fsProvider.copy( source, dest );

        assertThat( dest.toFile().exists() ).isTrue();
        assertThat( source.toFile().exists() ).isTrue();

        source.toFile().delete();
View Full Code Here

Examples of org.vosao.entity.ContentEntity.copy()

  private void copyContent(PageEntity src, PageEntity dst) {
    List<ContentEntity> contents = getDao().getPageDao().getContents(
        src.getId());
    for (ContentEntity content : contents) {
      ContentEntity newContent = new ContentEntity();
      newContent.copy(content);
      newContent.setId(null);
      newContent.setParentKey(dst.getId());
      getDao().getContentDao().save(newContent);
      getBusiness().getSystemService().getPageCache().remove(
          dst.getFriendlyURL());
View Full Code Here

Examples of org.vosao.entity.PageEntity.copy()

      }
    }
    PageEntity page = getDao().getPageDao().getByUrlVersion(url,
        newPage.getVersion());
    if (page != null) {
      page.copy(newPage);
    } else {
      page = newPage;
    }
    getDaoTaskAdapter().pageSave(page);
    readContents(pageElement, page);
View Full Code Here

Examples of org.wso2.carbon.registry.core.jdbc.Repository.copy()

        }

        String nextPhase = phases[i + 1];
        String newResourcePath = "/" + nextPhase + originalPath;

        repository.copy(new ResourcePath(resource.getPath()), new ResourcePath(newResourcePath));
        Resource newResource = repository.get(newResourcePath);
        newResource.setProperty(PHASE_PROPERTY, nextPhase);
        repository.put(newResourcePath,  newResource);
    }
View Full Code Here

Examples of org.xlightweb.IHttpResponseHeader.copy()

                       
                       
                        @Override
                        public void onComplete() {
                            try {
                                IHttpResponse responseCopy = new HttpResponse(responseHeader.copy(), responseBodyCopy);
                                interaction.setResponse(responseCopy);
                               
                            } catch (IOException ioe) {
                                if (LOG.isLoggable(Level.FINE)) {
                                    LOG.fine("error occured by creating/registering cachedResponse " + ioe.toString());
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.