Examples of DecoratedField


Examples of org.eclipse.jface.fieldassist.DecoratedField

    {
        final RdnLine rdnLine = new RdnLine();

        final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
        rdnLine.rdnNameComboField = new DecoratedField( rdnComposite, SWT.NONE, new IControlCreator()
        {
            public Control createControl( Composite parent, int style )
            {
                Combo combo = new Combo( parent, SWT.DROP_DOWN | SWT.BORDER );
                GridData gd = new GridData();
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

    public void createWidget( final Composite parent )
    {
        // filter combo with field decoration
        final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
        filterComboField = new DecoratedField( parent, SWT.NONE, new IControlCreator()
        {
            public Control createControl( Composite parent, int style )
            {
                Combo combo = BaseWidgetUtils.createCombo( parent, new String[0], -1, 1 );
                GridData gd = new GridData( GridData.FILL_HORIZONTAL );
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

          boolean grabH, int indentLeft)
  {
      Label label = toolkit.createLabel(parent, labelText);
      label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
     
      DecoratedField field = new DecoratedField(parent, style, new IControlCreator() {

        public Control createControl(Composite parent1, int controlStyle) {
          Text t = toolkit.createText(parent1, "", controlStyle);
          return t;
        }     
      });
      ((Text) field.getControl()).setText(textText);
      toolkit.adapt(field.getLayoutControl(), false, false);

      fillIntoGridOrTableLayout (parent, label, field.getLayoutControl(),
          textWidthHint, textHeightHint, grabH, indentLeft);
     
      return field;
  } // createLabelAndDecoratedText
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

          String labelText, int numColumns, int marginWidth, int marginHeight )
  {
    Label label = toolkit.createLabel(parent, labelText);
    label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
   
    DecoratedField field = new DecoratedField(parent, SWT.WRAP, new IControlCreator() {

      public Control createControl(Composite parent1, int controlStyle) {
        Composite container = toolkit.createComposite(parent1, controlStyle);
        return container;
      }     
    });
    Composite container = (Composite) field.getControl();
    GridLayout layout   = new GridLayout();
    layout.numColumns = numColumns;
    layout.marginWidth  = marginWidth;
    layout.marginHeight = marginHeight;
    container.setLayout(layout)
    toolkit.adapt(field.getLayoutControl(), false, false);

    FormSection.fillIntoGridOrTableLayout (parent, label, field.getLayoutControl(), 0, 0);
   
    return field;
  } // createLabelAndGridLayoutDecoratedContainer   
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

        this.project = project;

        errorDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_ERROR);

        ivyFilePathTextDeco = new DecoratedField(this, SWT.LEFT | SWT.TOP, new IControlCreator() {
            public Control createControl(Composite parent, int style) {
                return new Text(parent, SWT.SINGLE | SWT.BORDER);
            }
        });
        ivyFilePathTextDeco.addFieldDecoration(errorDecoration, SWT.TOP | SWT.LEFT, false);
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

            protected Text createText(Composite parent) {
                errorDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
                    FieldDecorationRegistry.DEC_ERROR);

                settingsTextDeco = new DecoratedField(parent, SWT.LEFT | SWT.TOP,
                        new IControlCreator() {
                            public Control createControl(Composite p, int s) {
                                return new Text(p, SWT.SINGLE | SWT.BORDER);
                            }
                        });
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

          String labelText, int numColumns, int marginWidth, int marginHeight )
  {
    Label label = toolkit.createLabel(parent, labelText);
    label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
   
    DecoratedField field = new DecoratedField(parent, SWT.WRAP, new IControlCreator() {

      public Control createControl(Composite parent1, int controlStyle) {
        Composite container = toolkit.createComposite(parent1, controlStyle);
        return container;
      }     
    });
    Composite container = (Composite) field.getControl();
    GridLayout layout   = new GridLayout();
    layout.numColumns = numColumns;
    layout.marginWidth  = marginWidth;
    layout.marginHeight = marginHeight;
    container.setLayout(layout)
    toolkit.adapt(field.getLayoutControl(), false, false);

    FormSection.fillIntoGridOrTableLayout (parent, label, field.getLayoutControl(), 0, 0);
   
    return field;
  } // createLabelAndGridLayoutDecoratedContainer   
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

        label.setText("Ivy settings path:");

        errorDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_ERROR);

        settingsTextDeco = new DecoratedField(this, SWT.LEFT | SWT.TOP, new IControlCreator() {
            public Control createControl(Composite parent, int style) {
                return new Text(parent, SWT.SINGLE | SWT.BORDER);
            }
        });
        settingsTextDeco.addFieldDecoration(errorDecoration, SWT.TOP | SWT.LEFT, false);
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

    glayout.marginHeight = 0;
    glayout.marginTop = BORDER_MARGIN;
    glayout.marginBottom = BORDER_MARGIN;
    container.setLayout(glayout);

    messageField = new DecoratedField(container, SWT.READ_ONLY | style,
        new TextControlCreator());
    setFont(JFaceResources.getDialogFont());

    GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    int lineHeight = ((Text) messageField.getControl()).getLineHeight();
View Full Code Here

Examples of org.eclipse.jface.fieldassist.DecoratedField

        this.project = project;

        errorDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_ERROR);

        ivyFilePathTextDeco = new DecoratedField(this, SWT.LEFT | SWT.TOP, new IControlCreator() {
            public Control createControl(Composite parent, int style) {
                return new Text(parent, SWT.SINGLE | SWT.BORDER);
            }
        });
        ivyFilePathTextDeco.addFieldDecoration(errorDecoration, SWT.TOP | SWT.LEFT, false);
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.