Package org.eclipse.jface.fieldassist

Examples of org.eclipse.jface.fieldassist.DecoratedField.addFieldDecoration()


    DecoratedField methodField = new DecoratedField(nameGroup, SWT.SINGLE
        | SWT.BORDER, new TextControlCreator());
    FieldDecoration requiredFieldIndicator1 = FieldDecorationRegistry
        .getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
    methodField.addFieldDecoration(requiredFieldIndicator1, SWT.TOP
        | SWT.LEFT, true);
    methodText = (Text) methodField.getControl();
    data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    methodField.getLayoutControl().setLayoutData(data);
View Full Code Here


      // Create a decorated field with a required field decoration.
      DecoratedField beanField = new DecoratedField(nameGroup, SWT.SINGLE | SWT.BORDER,
          new TextControlCreator());
      FieldDecoration requiredFieldIndicator = FieldDecorationRegistry.getDefault()
          .getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
      beanField.addFieldDecoration(requiredFieldIndicator, SWT.TOP | SWT.LEFT, true);
      beanText = (Text) beanField.getControl();
      GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
      beanField.getLayoutControl().setLayoutData(data);

      if (this.action != null && this.action.getBean() != null) {
View Full Code Here

      // Create a decorated field with a required field decoration.
      DecoratedField methodField = new DecoratedField(nameGroup, SWT.SINGLE | SWT.BORDER,
          new TextControlCreator());
      FieldDecoration requiredFieldIndicator1 = FieldDecorationRegistry.getDefault()
          .getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
      methodField.addFieldDecoration(requiredFieldIndicator1, SWT.TOP | SWT.LEFT, true);
      methodText = (Text) methodField.getControl();
      data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
      methodField.getLayoutControl().setLayoutData(data);

      if (this.action != null && this.action.getMethod() != null) {
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.