Examples of SapphireSequenceLayoutConstraint


Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayoutConstraint

    if (layoutDef instanceof SequenceLayoutDef)
    {
      if (((SequenceLayoutDef)layoutDef).getOrientation().content() != SequenceLayoutOrientation.STACKED)
      {
        SequenceLayoutConstraintDef def = (SequenceLayoutConstraintDef)childShapePresentation.getLayoutConstraint();
        layoutConstraint = new SapphireSequenceLayoutConstraint(def);
      }
      else
      {
        SapphireStackLayoutConstraint constraint = null;
        if (childShapePresentation.getLayoutConstraint() != null)
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayoutConstraint

    if (layoutDef instanceof SequenceLayoutDef)
    {
      if (((SequenceLayoutDef)layoutDef).getOrientation().content() != SequenceLayoutOrientation.STACKED)
      {
        SequenceLayoutConstraintDef def = (SequenceLayoutConstraintDef)childShapePresentation.getLayoutConstraint();
        layoutConstraint = new SapphireSequenceLayoutConstraint(def);
      }
      else
      {
        SapphireStackLayoutConstraint constraint = null;
        if (childShapePresentation.getLayoutConstraint() != null)
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayoutConstraint

    super(source, textPart, locator, label);
   
    if (parentFigure.getLayoutManager() instanceof SapphireSequenceLayout)
    {
      SapphireSequenceLayout sequenceLayout = (SapphireSequenceLayout)parentFigure.getLayoutManager();
      SapphireSequenceLayoutConstraint constraint = (SapphireSequenceLayoutConstraint)sequenceLayout.getConstraint(textFigure);
      this.initMinWidth = constraint.minWidth;
    }
   
    initCellEditorListener();
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayoutConstraint

  protected void bringDown()
  {
    if (parentFigure.getLayoutManager() instanceof SapphireSequenceLayout)
    {
      SapphireSequenceLayout sequenceLayout = (SapphireSequenceLayout)parentFigure.getLayoutManager();
      SapphireSequenceLayoutConstraint constraint = (SapphireSequenceLayoutConstraint)sequenceLayout.getConstraint(textFigure);
      constraint.minWidth = this.initMinWidth;
    }
    super.bringDown();
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireSequenceLayoutConstraint

  private void fitComboCellEditor()
  {
    if (parentFigure.getLayoutManager() instanceof SapphireSequenceLayout)
    {
      SapphireSequenceLayout sequenceLayout = (SapphireSequenceLayout)parentFigure.getLayoutManager();
      SapphireSequenceLayoutConstraint constraint = (SapphireSequenceLayoutConstraint)sequenceLayout.getConstraint(textFigure);
      CellEditor.LayoutData layoutData = getCellEditor().getLayoutData();
      ZoomManager zoomMgr = (ZoomManager) this.diagramEditor.getGraphicalViewer()
          .getProperty(ZoomManager.class.toString());
      constraint.minWidth = (int)(layoutData.minimumWidth / zoomMgr.getZoom());
    }   
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.