Package org.eclipse.jface.databinding.swt

Examples of org.eclipse.jface.databinding.swt.IWidgetValueProperty.observe()


      l.setText( "Name*:" );

      tName = new Text( container, SWT.BORDER );
      tName.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
      IEMFValueProperty prop = EMFEditProperties.value( editingDomain, PARAM__NAME );
      dbContext.bindValue( tProp.observe( tName ), prop.observe( o ), new EMFUpdateValueStrategy(
          EMFUpdateValueStrategy.POLICY_ON_REQUEST ), new EMFUpdateValueStrategy() );
    }

    {
      Label l = new Label( container, SWT.NONE );
View Full Code Here


      l.setText( "Value*:" );

      tValue = new Text( container, SWT.BORDER );
      tValue.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
      IEMFValueProperty prop = EMFEditProperties.value( editingDomain, PARAM__VALUE );
      dbContext.bindValue( tProp.observe( tValue ), prop.observe( o ), new EMFUpdateValueStrategy(
          EMFUpdateValueStrategy.POLICY_ON_REQUEST ), new EMFUpdateValueStrategy() );
    }
    return area;
  }

View Full Code Here

      Label l = new Label(parent, SWT.NONE);
      l.setText("Name");

      nameField = new Text(parent, SWT.BORDER);
      nameField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      dbc.bindValue(textProp.observe(nameField), BeanProperties.value("name", String.class).observe(clazz));

      new Label(parent, SWT.NONE);
    }

    {
View Full Code Here

      Label l = new Label(parent, SWT.NONE);
      l.setText("Name");

      nameField = new Text(parent, SWT.BORDER);
      nameField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      dbc.bindValue(textProp.observe(nameField), BeanProperties.value("name", String.class).observe(clazz));

      new Label(parent, SWT.NONE);
    }

    {
View Full Code Here

          c.getCombo().setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, 3, 1 ) );
          c.setContentProvider( new ArrayContentProvider() );
          c.setInput( ApplicationToolkitType.VALUES );
          IEMFValueProperty prop = EMFEditProperties.value( editingDomain,
              FeaturePath.fromList( ANT_TASK__DEPLOY, DEPLOY__APPLICATION, APPLICATION__TOOLKIT ) );
          dbc.bindValue( selChange.observe( c.getCombo() ), prop.observeDetail( bean ) );
        }
        {
          toolkit.createLabel( sectionClient, "Packaging Format:" ).setLayoutData( new GridData( GridData.BEGINNING, GridData.BEGINNING, false, false ) );
          ComboViewer c = new ComboViewer( sectionClient );
          c.getCombo().setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, 3, 1 ) );
View Full Code Here

          ComboViewer c = new ComboViewer( sectionClient );
          c.getCombo().setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, 3, 1 ) );
          c.setContentProvider( new ArrayContentProvider() );
          c.setInput( PackagingFormat.VALUES );
          IEMFValueProperty prop = EMFEditProperties.value( editingDomain, FeaturePath.fromList( ANT_TASK__DEPLOY, DEPLOY__PACKAGING_FORMAT ) );
          dbc.bindValue( selChange.observe( c.getCombo() ), prop.observeDetail( bean ) );
        }
        {
          Button b = toolkit.createButton( sectionClient, "Convert CSS into binary form", SWT.CHECK );
          b.setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, 4, 1 ) );
          IEMFValueProperty prop = EMFEditProperties.value( editingDomain, FeaturePath.fromList( ANT_TASK__CSS_TO_BIN ) );
View Full Code Here

        }
        {
          Button b = toolkit.createButton( sectionClient, "Convert CSS into binary form", SWT.CHECK );
          b.setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, 4, 1 ) );
          IEMFValueProperty prop = EMFEditProperties.value( editingDomain, FeaturePath.fromList( ANT_TASK__CSS_TO_BIN ) );
          dbc.bindValue( selChange.observe( b ), prop.observeDetail( bean ) );
        }
        {
          Button b = toolkit.createButton( sectionClient, "Enable verbose build mode (Not recommended)", SWT.CHECK );
          b.setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, 4, 1 ) );
          IEMFValueProperty prop = EMFEditProperties.value( editingDomain, FeaturePath.fromList( ANT_TASK__DEPLOY, DEPLOY__VERBOSE ) );
View Full Code Here

        }
        {
          Button b = toolkit.createButton( sectionClient, "Enable verbose build mode (Not recommended)", SWT.CHECK );
          b.setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, 4, 1 ) );
          IEMFValueProperty prop = EMFEditProperties.value( editingDomain, FeaturePath.fromList( ANT_TASK__DEPLOY, DEPLOY__VERBOSE ) );
          dbc.bindValue( selChange.observe( b ), prop.observeDetail( bean ) );
        }
      }

      section.setClient( sectionClient );
    }
View Full Code Here

      {
        Button b = toolkit.createButton( sectionClient, "Embed JNLP", SWT.CHECK );
        b.setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, COLUMN_COUNT, 1 ) );
        IEMFValueProperty prop = EMFEditProperties.value( editingDomain, FeaturePath.fromList( ANT_TASK__DEPLOY, DEPLOY__EMBEDJNLP ) );
        dbc.bindValue( selChange.observe( b ), prop.observeDetail( bean ) );
      }

      {
        Button b = toolkit.createButton( sectionClient, "Treat files as extensions", SWT.CHECK );
        b.setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, COLUMN_COUNT, 1 ) );
View Full Code Here

      {
        Button b = toolkit.createButton( sectionClient, "Treat files as extensions", SWT.CHECK );
        b.setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, COLUMN_COUNT, 1 ) );
        IEMFValueProperty prop = EMFEditProperties.value( editingDomain, FeaturePath.fromList( ANT_TASK__DEPLOY, DEPLOY__EXTENSION ) );
        dbc.bindValue( selChange.observe( b ), prop.observeDetail( bean ) );
      }

      {
        Button b = toolkit.createButton( sectionClient, "Include deployment toolkit", SWT.CHECK );
        b.setLayoutData( new GridData( GridData.FILL, GridData.CENTER, true, false, COLUMN_COUNT, 1 ) );
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.