Examples of IControlCreator


Examples of org.eclipse.jface.fieldassist.IControlCreator

    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.IControlCreator

          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;
        }     
View Full Code Here

Examples of org.eclipse.jface.fieldassist.IControlCreator

          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;
      }     
View Full Code Here

Examples of org.eclipse.jface.fieldassist.IControlCreator

        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.IControlCreator

            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);
                            }
                        });
                settingsTextDeco.addFieldDecoration(errorDecoration, SWT.TOP | SWT.LEFT, false);
View Full Code Here

Examples of org.eclipse.jface.fieldassist.IControlCreator

          String labelText, String textText, int style, int textWidthHint, int textHeightHint)
  {
      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;
        }     
View Full Code Here

Examples of org.eclipse.jface.fieldassist.IControlCreator

          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;
      }     
View Full Code Here

Examples of org.eclipse.jface.fieldassist.IControlCreator

        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.IControlCreator

        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.IControlCreator

            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);
                            }
                        });
                settingsTextDeco.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.