Examples of NumericalTechnicalProperty


Examples of org.emftrace.metamodel.QUARCModel.Constraints.NumericalTechnicalProperty

     
      @Override
      public void focusGained(FocusEvent e) {
      }
    });
    NumericalTechnicalProperty property = ((NumericalTechnicalProperty)constraint.getTechnicalProperty());
   
    String unitLabelStr = property.getUnit();
    unitLabel = new Label(bodyComposite, SWT.NONE);


    if (unitLabelStr != null)
      unitLabel.setText("["+unitLabelStr+"]");
    else
      unitLabel.setText("");   

    unitLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true));
   
    unitLabel.setBackground(unitLabel.getParent().getBackground());
   
    String unitDescriptionStr = property.getUnitDescription();
    if (unitDescriptionStr == null)
      unitLabel.setToolTipText("no description avalible");
    else
      unitLabel.setToolTipText(unitDescriptionStr);
   
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.