Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.CheckboxCellEditor


    CellEditor[] cellA = new CellEditor[TABLE_DEF.length];
    cellA[INDEX_NAME] = null;
    cellA[INDEX_XPOS] = null;
    cellA[INDEX_YPOS] = null;
    cellA[INDEX_VISIBLE] = new CheckboxCellEditor(tree);
    cellA[INDEX_SELECTED] = new CheckboxCellEditor(tree);
    cellA[INDEX_SIZE] = new ComboBoxCellEditor(tree,
        Tools.toString(Size.values(), true));
    cellA[INDEX_COLOR] = new TextCellEditor(tree);

    nodeTreeView.getTreeViewer().setCellEditors(cellA);
View Full Code Here


        case T_String:
          _cellEdt = new TextCellEditor(table);
          break;

        case T_Boolean:
          _cellEdt = new CheckboxCellEditor(table);
          break;

        case T_Double:
          _cellEdt = new NumericCellEditor(table, SWT.SINGLE, T_Double);
          break;
View Full Code Here

        treeViewer.setColumnProperties( COLUMNS );

        ICellModifier cellModifier = new GrantsAndDenialsCellModifier();
        treeViewer.setCellModifier( cellModifier );
        CellEditor[] cellEditors = new CellEditor[]
            { null, new CheckboxCellEditor( tree ), null };
        treeViewer.setCellEditors( cellEditors );

        treeViewer.setContentProvider( new GrantsAndDenialsContentProvider() );
        treeViewer.setLabelProvider( new GrantsAndDenialsLabelProvider() );
        treeViewer.setInput( grantAndDenialCategories );
View Full Code Here

   * @see
org.eclipse.ui.views.properties.IPropertyDescriptor#createPropertyEditor(org.eclipse.swt.widgets.Composite)
   */
  @Override
  public CellEditor createPropertyEditor(Composite parent) {
    CellEditor editor = new CheckboxCellEditor(parent);
    if (getValidator() != null)
      editor.setValidator(getValidator());
    return editor;
  }
View Full Code Here

      nameColumn.setText("");
      nameColumn.setImage(Activator.getDefault().getImageRegistry().get(Activator.CHECK_ICON));
    }

    CellEditor[] cellEditors = new CellEditor[1];
    TableUtils.setCellEditor(EOFetchSpecification.class.getName(), EOFetchSpecification.SHARES_OBJECTS, new CheckboxCellEditor(myFetchSpecsViewer.getTable()), cellEditors);
    myFetchSpecsViewer.setCellModifier(new TablePropertyCellModifier(myFetchSpecsViewer));
    myFetchSpecsViewer.setCellEditors(cellEditors);
    GridData fetchSpecsLayoutData = new GridData(GridData.FILL_BOTH);
    fetchSpecsLayoutData.verticalIndent = 10;
    //fetchSpecsLayoutData.heightHint = 100;
View Full Code Here

      TableUtils.setCellEditor(EOAttribute.class.getName(), EOAttribute.PRIMARY_KEY, new TriStateCellEditor(attributesTable), _cellEditors);
      TableUtils.setCellEditor(EOAttribute.class.getName(), EOAttribute.CLASS_PROPERTY, new TriStateCellEditor(attributesTable), _cellEditors);
      TableUtils.setCellEditor(EOAttribute.class.getName(), EOAttribute.USED_FOR_LOCKING, new TriStateCellEditor(attributesTable), _cellEditors);
      TableUtils.setCellEditor(EOAttribute.class.getName(), AbstractEOArgument.ALLOWS_NULL, new TriStateCellEditor(attributesTable), _cellEditors);
    } else {
      TableUtils.setCellEditor(EOAttribute.class.getName(), EOAttribute.PRIMARY_KEY, new CheckboxCellEditor(attributesTable), _cellEditors);
      TableUtils.setCellEditor(EOAttribute.class.getName(), EOAttribute.CLASS_PROPERTY, new CheckboxCellEditor(attributesTable), _cellEditors);
      TableUtils.setCellEditor(EOAttribute.class.getName(), EOAttribute.USED_FOR_LOCKING, new CheckboxCellEditor(attributesTable), _cellEditors);
      TableUtils.setCellEditor(EOAttribute.class.getName(), AbstractEOArgument.ALLOWS_NULL, new CheckboxCellEditor(attributesTable), _cellEditors);
    }
  }
View Full Code Here

    mySortOrderingsChangedRefresher = new TableRefreshPropertyListener("SortOrderingsChanged", mySortOrderingsTableViewer);
    myTableRowRefresher = new TableRowRefreshPropertyListener(mySortOrderingsTableViewer);

    CellEditor[] cellEditors = new CellEditor[TableUtils.getColumnsForTableNamed(EOSortOrdering.class.getName()).length];
    TableUtils.setCellEditor(EOSortOrdering.class.getName(), EOSortOrdering.KEY, new WOTextCellEditor(mySortOrderingsTableViewer.getTable()), cellEditors);
    TableUtils.setCellEditor(EOSortOrdering.class.getName(), EOSortOrdering.ASCENDING, new CheckboxCellEditor(mySortOrderingsTableViewer.getTable()), cellEditors);
    TableUtils.setCellEditor(EOSortOrdering.class.getName(), EOSortOrdering.CASE_INSENSITIVE, new CheckboxCellEditor(mySortOrderingsTableViewer.getTable()), cellEditors);
    mySortOrderingsTableViewer.setCellEditors(cellEditors);
    mySortOrderingsTableViewer.setCellModifier(new TablePropertyCellModifier(mySortOrderingsTableViewer));
    mySortOrderingsTableViewer.getTable().setLayoutData(sortOrderingsTableLayoutData);

    new StayEditingCellEditorListener(mySortOrderingsTableViewer, EOSortOrdering.class.getName(), EOSortOrdering.KEY);
View Full Code Here

    }

    TableUtils.sort(myRelationshipsTableViewer, EORelationship.NAME);

    CellEditor[] cellEditors = new CellEditor[TableUtils.getColumnsForTableNamed(EORelationship.class.getName()).length];
    TableUtils.setCellEditor(EORelationship.class.getName(), EORelationship.TO_MANY, new CheckboxCellEditor(), cellEditors);
    TableUtils.setCellEditor(EORelationship.class.getName(), EORelationship.CLASS_PROPERTY, new CheckboxCellEditor(), cellEditors);
    TableUtils.setCellEditor(EORelationship.class.getName(), EORelationship.OPTIONAL, new CheckboxCellEditor(), cellEditors);
    TableUtils.setCellEditor(EORelationship.class.getName(), EORelationship.NAME, new WOTextCellEditor(relationshipsTable), cellEditors);
    myRelationshipsTableViewer.setCellModifier(new EORelationshipsCellModifier(myRelationshipsTableViewer));
    myRelationshipsTableViewer.setCellEditors(cellEditors);

    new StayEditingCellEditorListener(myRelationshipsTableViewer, EORelationship.class.getName(), EORelationship.NAME);
View Full Code Here

    this.viewer = viewer;
  }

  @Override
  protected CellEditor getCellEditor(Object element) {
    return new CheckboxCellEditor(null, SWT.CHECK);// | SWT.READ_ONLY);
  }
View Full Code Here

    column3.pack();
   
    viewer = new TableViewer(table);
   
    CellEditor[] editors = new CellEditor[3];
    editors[0] = new CheckboxCellEditor(table);
    editors[1] = new CheckboxCellEditor(table);
    editors[2] = new TextCellEditor(table);
               
    viewer.setColumnProperties(COLUMNS);
    viewer.setUseHashlookup(true);
    viewer.setCellEditors(editors);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.CheckboxCellEditor

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.