Package org.eclipse.jface.databinding.viewers

Examples of org.eclipse.jface.databinding.viewers.ObservableListContentProvider


    final Button delete = new Button(panel, SWT.PUSH | SWT.BORDER);
    delete.setText("Delete");
    // delete.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));

    final ListViewer viewer = new ListViewer(panel, SWT.BORDER);
    viewer.setContentProvider(new ObservableListContentProvider());

    final Control control = viewer.getControl();
    control.setLayoutData(new GridData(GridData.FILL_BOTH));
    if (control instanceof org.eclipse.swt.widgets.List) {
      org.eclipse.swt.widgets.List list = (org.eclipse.swt.widgets.List) control;
View Full Code Here


        Group group = createGroup(parent, "Properties", 2, true);
        propertiesTableViewer = new TableViewer(group, SWT.BORDER | SWT.V_SCROLL);
        propertiesTableViewer.getTable().setLinesVisible(true);
        propertiesTableViewer.getTable().setHeaderVisible(true);
        propertiesTableViewer.getTable().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 3));
        propertiesTableViewer.setContentProvider(new ObservableListContentProvider());
        propertiesTableViewer.setInput(propertyList);

        TableViewerColumn propertyColumn = new TableViewerColumn(propertiesTableViewer, SWT.LEFT);
        propertyColumn.getColumn().setWidth(200);
        propertyColumn.getColumn().setText("Property");
View Full Code Here

        Group group = createGroup(parent, "Class aliases", 2, true);
        classAliasesTableViewer = new TableViewer(group, SWT.BORDER | SWT.V_SCROLL);
        classAliasesTableViewer.getTable().setLinesVisible(true);
        classAliasesTableViewer.getTable().setHeaderVisible(true);
        classAliasesTableViewer.getTable().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 3));
        classAliasesTableViewer.setContentProvider(new ObservableListContentProvider());
        classAliasesTableViewer.setInput(classAliases);

        TableViewerColumn classNameColumn = new TableViewerColumn(classAliasesTableViewer, SWT.LEFT);
        classNameColumn.getColumn().setWidth(200);
        classNameColumn.getColumn().setText("Class");
View Full Code Here

   
    return observableList;
  }
 
  private void bindList(ILazyObserving parent, String mainElementName, String elementName, final AbstractTableViewer view) {
    view.setContentProvider(new ObservableListContentProvider() {
     
      @Override
      public Object[] getElements(Object inputElement) {
        Object[] returnValue = super.getElements(inputElement);
       
View Full Code Here

        comboViewer.setSelection(new StructuredSelection(convertedText));
      }
     
    });   
   
    comboViewer.setContentProvider(new ObservableListContentProvider());
    comboViewer.setLabelProvider(new LabelProvider() {

      @Override
      public Image getImage(Object element) {
        //FIXME never gets invoced, as a CCombo only shows text
View Full Code Here

        comboViewer.setSelection(new StructuredSelection(convertedText));
      }
     
    });   
   
    comboViewer.setContentProvider(new ObservableListContentProvider());
    comboViewer.setLabelProvider(new LabelProvider() {

      @Override
      public Image getImage(Object element) {
        //FIXME never gets invoced, as a CCombo only shows text
View Full Code Here

TOP

Related Classes of org.eclipse.jface.databinding.viewers.ObservableListContentProvider

Copyright © 2018 www.massapicom. 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.