Examples of observe()


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

      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

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

      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

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

      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

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

          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

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

          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

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

        }
        {
          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

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

        }
        {
          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

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

      {
        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

Examples of org.eclipse.jface.databinding.viewers.IViewerValueProperty.observe()

      ComboViewer v = new ComboViewer( container, SWT.READ_ONLY );
      v.setLabelProvider( new LabelProvider() );
      v.setContentProvider( ArrayContentProvider.getInstance() );
      v.setInput( IconType.VALUES );
      IEMFValueProperty prop = EMFEditProperties.value( editingDomain, ICON__KIND );
      dbContext.bindValue( selProp.observe( v ), prop.observe( o ), new EMFUpdateValueStrategy( EMFUpdateValueStrategy.POLICY_ON_REQUEST ),
          new EMFUpdateValueStrategy() );
    }

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

Examples of org.eclipse.jface.databinding.viewers.IViewerValueProperty.observe()

      v.setLabelProvider( new LabelProvider() );
      v.setContentProvider( ArrayContentProvider.getInstance() );
      // TODO not hard coded here
      v.setInput( new String[] { "8", "24", "32" } );
      IEMFValueProperty prop = EMFEditProperties.value( editingDomain, ICON__DEPTH );
      dbContext.bindValue( selProp.observe( v ), prop.observe( o ), new EMFUpdateValueStrategy( EMFUpdateValueStrategy.POLICY_ON_REQUEST ),
          new EMFUpdateValueStrategy() );
    }

    {
      Label l = new Label( container, SWT.NONE );
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.