Examples of Preview


Examples of com.lightcrafts.model.Preview

    }

    TemplatePreview(Engine engine) {
        this();
        this.engine = engine;
        Preview preview = engine.getPreviews().iterator().next();
        add(preview);
    }
View Full Code Here

Examples of com.lightcrafts.model.Preview

    void showNormalPreview() {
        if (editControls == null) {
            return;
        }
        disposeEditControls();
        Preview preview = engine.getPreviews().iterator().next();
        removeAll();
        add(preview);
        validate();
        repaint();
    }
View Full Code Here

Examples of com.lightcrafts.model.Preview

        }
        revalidate();
    }

    void setDropper(Point p) {
        Preview preview = getPreview();
        if (preview != null) {
            preview.setDropper(p);
        }
    }
View Full Code Here

Examples of com.psddev.cms.db.Preview

                    automaticallySavedDraftIds.add(id);
                }
            }

            // Preview for looking glass.
            Preview preview = new Preview();
            UUID currentPreviewId = user.getCurrentPreviewId();

            if (currentPreviewId == null) {
                saveUser = true;
                currentPreviewId = preview.getId();

                user.setCurrentPreviewId(currentPreviewId);
            }

            Map<String, Object> values = state.getSimpleValues();

            preview.getState().setId(currentPreviewId);
            preview.setCreateDate(new Date());
            preview.setObjectType(state.getType());
            preview.setObjectId(state.getId());
            preview.setObjectValues(values);
            preview.setSite(page.getSite());
            preview.save();
            AuthenticationFilter.Static.setCurrentPreview(page.getRequest(), page.getResponse(), preview);
            user.saveAction(page.getRequest(), object);

            if (saveUser) {
                user.save();
View Full Code Here

Examples of com.psddev.cms.db.Preview

                    INSECURE_TOOL_USER_ATTRIBUTE,
                    INSECURE_TOOL_USER_CHECKED_ATTRIBUTE);
        }

        public static Preview getCurrentPreview(HttpServletRequest request) {
            Preview preview;

            if (Boolean.TRUE.equals(request.getAttribute(PREVIEW_CHECKED_ATTRIBUTE))) {
                preview = (Preview) request.getAttribute(PREVIEW_ATTRIBUTE);

            } else {
View Full Code Here

Examples of com.psddev.cms.db.Preview

        Object content = Query.
                from(Object.class).
                where("_id = ?", action.getContentId()).
                first();

        Preview preview = Query.
                from(Preview.class).
                where("_id = ?", user.getCurrentPreviewId()).
                first();

        String mirrorUrl = StringUtils.addQueryParameters(preview != null && ObjectUtils.equals(action.getContentId(), preview.getObjectId()) ?
                JspUtils.getAbsolutePath(page.getRequest(), "/_preview", "_cms.db.previewId", preview.getId()) :
                action.getUrl(), "_mirror", true);

        doRenderAction(page, content, mirrorUrl);
    }
View Full Code Here

Examples of org.opoo.press.support.Preview

    if(skipPreview){
      getLog().info( "op.preview.skip = true: Skipping preview" );
      return;
    }
   
    Preview preview = new Preview(siteManager, site, port, interval);
    try {
      preview.start();
    } catch (Exception e) {
      throw new MojoExecutionException(e.getMessage());
    }
  }
View Full Code Here

Examples of org.tmatesoft.hg.internal.Preview

    try {
      is = f.newInputChannel();
//      ByteBuffer fb = ByteBuffer.allocate(min(1 + data.length * 2 /*to fit couple of lines appended; never zero*/, 8192));
      ByteBuffer fb = ByteBuffer.allocate(8192); // FIXME temp fix to ensure big enough buffer for KeywordFilter
      FilterByteChannel filters = new FilterByteChannel(check, repo.getFiltersFromWorkingDirToRepo(p));
      Preview preview = Adaptable.Factory.getAdapter(filters, Preview.class, null);
      if (preview != null) {
        while (is.read(fb) != -1) {
          fb.flip();
          preview.preview(fb);
          fb.clear();
        }
        // reset channel to read once again
        try {
          is.close();
View Full Code Here

Examples of org.tmatesoft.hg.internal.Preview

    public void next(int revisionNumber, int actualLen, int baseRevision, int linkRevision, int parent1Revision, int parent2Revision, byte[] nodeid, DataAccess da) {
      try {
        prepare(revisionNumber, da); // XXX perhaps, prepare shall return DA (sliced, if needed)
        final ProgressSupport progressSupport = ProgressSupport.Factory.get(sink);
        ByteBuffer buf = ByteBuffer.allocate(actualLen > 8192 ? 8192 : actualLen);
        Preview p = Adaptable.Factory.getAdapter(sink, Preview.class, null);
        if (p != null) {
          progressSupport.start(2 * da.length());
          while (!da.isEmpty()) {
            checkCancelled();
            da.readBytes(buf);
            p.preview(buf);
            buf.clear();
          }
          da.reset();
          prepare(revisionNumber, da);
          progressSupport.worked(da.length());
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.