Examples of IAbstractComponentInfo


Examples of org.eclipse.wb.core.model.IAbstractComponentInfo

  protected Command getResizeCommand(final ChangeBoundsRequest request) {
    return new EditCommand(m_canvas) {
      @Override
      protected void executeEdit() throws Exception {
        for (EditPart editPart : request.getEditParts()) {
          IAbstractComponentInfo widget = (IAbstractComponentInfo) editPart.getModel();
          Rectangle bounds = widget.getModelBounds();
          WidgetInfo component = (WidgetInfo) widget;
          CanvasInfo boundsCanvas = getBoundsCanvas(component);
          if (boundsCanvas != null) {
            m_canvas.command_BOUNDS(boundsCanvas, bounds.getLocation(), bounds.getSize());
          }
View Full Code Here

Examples of org.eclipse.wb.core.model.IAbstractComponentInfo

  protected Command getResizeCommand(final ChangeBoundsRequest request) {
    return new EditCommand(m_layout) {
      @Override
      protected void executeEdit() throws Exception {
        for (EditPart editPart : request.getEditParts()) {
          IAbstractComponentInfo widget = (IAbstractComponentInfo) editPart.getModel();
          Rectangle bounds = widget.getModelBounds();
          m_layout.command_BOUNDS((WidgetInfo) widget, bounds.getLocation(), bounds.getSize());
        }
      }
    };
  }
View Full Code Here

Examples of org.eclipse.wb.core.model.IAbstractComponentInfo

  }

  @Override
  protected void doPasteComponent(Point pasteLocation, PastedComponentInfo pastedWidget)
      throws Exception {
    IAbstractComponentInfo component = pastedWidget.getComponent();
    if (component instanceof FormItemInfo) {
      FormItemInfo item = (FormItemInfo) component;
      // create
      m_form.command_CREATE(item, null);
      Rectangle widgetBounds = pastedWidget.getBounds();
View Full Code Here

Examples of org.eclipse.wb.core.model.IAbstractComponentInfo

  protected Command getResizeCommand(final ChangeBoundsRequest request) {
    return new EditCommand(m_form) {
      @Override
      protected void executeEdit() throws Exception {
        for (EditPart editPart : request.getEditParts()) {
          IAbstractComponentInfo widget = (IAbstractComponentInfo) editPart.getModel();
          Rectangle bounds = widget.getModelBounds();
          if (widget instanceof FormItemInfo) {
            m_form.command_BOUNDS((FormItemInfo) widget, bounds.getLocation(), bounds.getSize());
          }
          if (widget instanceof CanvasInfo) {
            m_form.command_BOUNDS(
                (FormItemInfo) widget.getUnderlyingModel().getParent(),
                bounds.getLocation(),
                bounds.getSize());
          }
        }
      }
View Full Code Here

Examples of org.eclipse.wb.core.model.IAbstractComponentInfo

  protected Command getResizeCommand(final ChangeBoundsRequest request) {
    return new EditCommand(m_layout) {
      @Override
      protected void executeEdit() throws Exception {
        for (EditPart editPart : request.getEditParts()) {
          IAbstractComponentInfo widget = (IAbstractComponentInfo) editPart.getModel();
          Rectangle bounds = widget.getModelBounds();
          m_layout.command_BOUNDS((WidgetInfo) widget, bounds.getLocation(), bounds.getSize());
        }
      }
    };
  }
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.