Package org.eclipse.wb.core.model.broadcast

Examples of org.eclipse.wb.core.model.broadcast.GenericPropertySetValue


  /**
   * Attempts to generate optimal code for setting "height" properties.
   */
  private void trackHeightProperties() {
    addBroadcastListener(new GenericPropertySetValue() {
      public void invoke(GenericPropertyImpl property, Object[] value, boolean[] shouldSetValue)
          throws Exception {
        if (property.getJavaInfo() == RowLayoutDataInfo.this && !m_changingHeight) {
          String title = property.getTitle();
          Object val = value[0];
View Full Code Here


      faceProperty.setProperties(face.getProperties());
      faceProperty.setCategory(PropertyCategory.system(100 + m_faces.size()));
      m_faceProperties.add(faceProperty);
    }
    // when any face property is about to set, reset other properties
    face.addBroadcastListener(new GenericPropertySetValue() {
      public void invoke(GenericPropertyImpl property, Object[] value, boolean[] shouldSetValue)
          throws Exception {
        if (property.getJavaInfo() == face) {
          face.delete();
        }
View Full Code Here

          collectBoundsProperty(item, properties);
        }
      }
    });
    // don't allow spaces in "name" property
    addBroadcastListener(new GenericPropertySetValue() {
      public void invoke(GenericPropertyImpl property, Object[] value, boolean[] shouldSetValue)
          throws Exception {
        if (property.getJavaInfo() == m_this
            && property.getTitle().equals("name")
            && value[0] instanceof String) {
View Full Code Here

TOP

Related Classes of org.eclipse.wb.core.model.broadcast.GenericPropertySetValue

Copyright © 2018 www.massapicom. 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.