Examples of translate()


Examples of org.eclipse.draw2d.geometry.PrecisionRectangle.translate()

    IFigure feedback = getDragSourceFeedbackFigure();

    PrecisionRectangle rect = new PrecisionRectangle(
        getInitialFeedbackBounds().getCopy());
    getHostFigure().translateToAbsolute(rect);
    rect.translate(request.getMoveDelta());
    rect.resize(request.getSizeDelta());

    // to avoid enlarge feedback pane.
    // when draging a editpart inside designer to move/copy it, we do not
    // want to
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Rectangle.translate()

    public void relocate(CellEditor celleditor) {
        Text text = (Text) celleditor.getControl();
        Rectangle rect = label.getClientArea().getCopy();
        label.translateToAbsolute(rect);
        org.eclipse.swt.graphics.Rectangle trim = text.computeTrim(0, 0, 0, 0);
        rect.translate(trim.x, trim.y);
        rect.width += trim.width;
        rect.height += trim.height;
        text.setBounds(rect.x, rect.y, rect.width, rect.height);
    }
}
View Full Code Here

Examples of org.eclipse.jface.text.templates.TemplateTranslator.translate()

        if (ErlTemplateCompletionPreferences.getIndentCode()) {
            template = indentTemplatePattern(template, indentFrom0);
        }

        final TemplateTranslator translator = new TemplateTranslator();
        final TemplateBuffer buffer = translator.translate(template);

        getContextType().resolve(buffer, this);

        return buffer;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.databaseaccess.DatabaseCall.translate()

        //the query object has to be set in order to access to the platform and login objects
        call.setQuery(writeQuery);
        // prepare it
        call.prepare(session);
        //finally do the translation
        call.translate(writeQuery.getTranslationRow(), writeQuery.getModifyRow(), session);
        return call;
    }

    // Building of SELECT statements is no longer done in DatabaseAccessor.basicExecuteCall
    // for updates because DatabaseCall.isUpdateCall() can't recognize update in case
View Full Code Here

Examples of org.eclipse.persistence.internal.databaseaccess.DatasourceCall.translate()

        // For CR 2923 must move to session we will execute call on now
        // so correct DatasourcePlatform used by translate.
        AbstractSession sessionToUse = getQuery().getExecutionSession();
        DatasourceCall clonedCall = (DatasourceCall)databaseCall.clone();
        clonedCall.setQuery(getQuery());
        clonedCall.translate(getTranslationRow(), getModifyRow(), sessionToUse);
        return sessionToUse.executeCall(clonedCall, getTranslationRow(), getQuery());
    }

    /**
     * Execute a non selecting call.
View Full Code Here

Examples of org.eclipse.swt.graphics.Transform.translate()

           
            Point bounds = ((Canvas) e.widget).getSize();
            offsetX = (bounds.x - mapValues.getSize()) / 2;
            offsetY = (bounds.y - mapValues.getSize()) / 2;
            Transform t = new Transform(device);
            t.translate(offsetX, offsetY);
            gc.setTransform(t);
           
            this.paintMap(mapValues, gc);
           
            t.dispose();
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Point.translate()

    // check creation flow
    if (location != null && useCreationFlow()) {
      // force set new translated bounds
      Insets insets = container.getClientAreaInsets();
      Point location_ = location.getCopy();
      location_.translate(insets);
      AbsoluteLayoutCreationFlowSupport.checkBounds(widget, location_, size);
      // apply creation flow
      AbsoluteLayoutCreationFlowSupport.apply(
          container,
          container.getChildrenWidgets(),
View Full Code Here

Examples of org.eclipse.wb.draw2d.geometry.Rectangle.translate()

   */
  public Rectangle getButtonBarBounds() {
    Object buttonBar = ReflectionUtils.invokeMethodEx(getObject(), "getButtonBar()");
    Object buttonBarElement = getUIObjectUtils().getElement(buttonBar);
    Rectangle bounds = getState().getAbsoluteBounds(buttonBarElement);
    bounds.translate(getModelBounds().getLocation().getNegated());
    return bounds;
  }

  /**
   * @return {@link ButtonInfo}-s added using <code>addButton()</code>.
View Full Code Here

Examples of org.eurekastreams.server.action.execution.notification.translator.NotificationTranslator.translate()

        if (translator == null)
        {
            // exit if notification request type is disabled
            return Boolean.FALSE;
        }
        NotificationBatch batch = translator.translate(currentRequest);
        if (batch == null || batch.getRecipients().isEmpty())
        {
            return Boolean.TRUE;
        }
View Full Code Here

Examples of org.exist.util.Base64Decoder.translate()

    if ("1".equals(response.getAttribute("success"))) {
      DebuggingSourceImpl source = new DebuggingSourceImpl(this, fileURI);

      Base64Decoder dec = new Base64Decoder();
      dec.translate(response.getText());
      byte[] c = dec.getByteArray();
      String s = new String(c);

      source.setText(s);
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.