Package org.objectstyle.wolips.baseforuiplugins.utils

Examples of org.objectstyle.wolips.baseforuiplugins.utils.WOTextCellEditor


  public class BindingNameEditingSupport extends EditingSupport {
    private TextCellEditor _nameEditor;

    public BindingNameEditingSupport(TableViewer viewer) {
      super(viewer);
      _nameEditor = new WOTextCellEditor(viewer.getTable());
    }
View Full Code Here


  public class BindingValueEditingSupport extends EditingSupport {
    private TextCellEditor _valueEditor;

    public BindingValueEditingSupport(TableViewer viewer) {
      super(viewer);
      _valueEditor = new WOTextCellEditor(viewer.getTable());
    }
View Full Code Here

  public PropertyListValueEditingSupport(TreeViewer viewer, IPropertyListChangeListener listener) {
    super(viewer);
    _listener = listener;
    _treeViewer = viewer;
    _textCellEditor = new WOTextCellEditor(_treeViewer.getTree());
  }
View Full Code Here

  public PropertyListKeyEditingSupport(TreeViewer viewer, IPropertyListChangeListener listener) {
    super(viewer);
    _listener = listener;
    _treeViewer = viewer;
    _textCellEditor = new WOTextCellEditor(_treeViewer.getTree());
  }
View Full Code Here

    // allowNullColumn.setAlignment(SWT.CENTER);
    //
    TableUtils.sort(myArgumentsTableViewer, AbstractEOArgument.NAME);

    CellEditor[] cellEditors = new CellEditor[TableUtils.getColumnsForTableNamed(EOArgument.class.getName()).length];
    TableUtils.setCellEditor(EOArgument.class.getName(), AbstractEOArgument.NAME, new WOTextCellEditor(argumentsTable), cellEditors);
    TableUtils.setCellEditor(EOArgument.class.getName(), AbstractEOArgument.COLUMN_NAME, new WOTextCellEditor(argumentsTable), cellEditors);
    String[] argumentDirectionNames = new String[EOArgumentDirection.ARGUMENT_DIRECTIONS.length];
    for (int argumentDirectionNum = 0; argumentDirectionNum < argumentDirectionNames.length; argumentDirectionNum++) {
      argumentDirectionNames[argumentDirectionNum] = EOArgumentDirection.ARGUMENT_DIRECTIONS[argumentDirectionNum].getName();
    }
    TableUtils.setCellEditor(EOArgument.class.getName(), EOArgument.DIRECTION, new KeyComboBoxCellEditor(argumentsTable, argumentDirectionNames), cellEditors);
View Full Code Here

    CellEditor[] cellEditors = new CellEditor[TableUtils.getColumnsForTableNamed(EOAttribute.class.getName()).length];
    KeyComboBoxCellEditor prototypeCellEditor = new KeyComboBoxCellEditor(attributesTable, new String[0], SWT.READ_ONLY);
    prototypeCellEditor.getComboBox().setVisibleItemCount(10);
    TableUtils.setCellEditor(EOAttribute.class.getName(), EOAttribute.PROTOTYPE, prototypeCellEditor, cellEditors);
    TableUtils.setCellEditor(EOAttribute.class.getName(), AbstractEOArgument.NAME, new WOTextCellEditor(attributesTable), cellEditors);
    TableUtils.setCellEditor(EOAttribute.class.getName(), AbstractEOArgument.COLUMN_NAME, new WOTextCellEditor(attributesTable), cellEditors);
    updateCellEditors(cellEditors);
    myAttributesTableViewer.setCellModifier(new EOAttributesCellModifier(myAttributesTableViewer, cellEditors));
    myAttributesTableViewer.setCellEditors(cellEditors);
   
    new StayEditingCellEditorListener(myAttributesTableViewer, EOAttribute.class.getName(), EOAttribute.PROTOTYPE);
View Full Code Here

    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

    mySortOrderingsTableViewer.addSelectionChangedListener(this);
    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);
View Full Code Here

    Table entitiesTable = myEntitiesTableViewer.getTable();
    entitiesTable.setLayoutData(new GridData(GridData.FILL_BOTH));
    TableUtils.sort(myEntitiesTableViewer, EOEntity.NAME);

    CellEditor[] cellEditors = new CellEditor[TableUtils.getColumnsForTableNamed(EOEntity.class.getName()).length];
    TableUtils.setCellEditor(EOEntity.class.getName(), EOEntity.NAME, new WOTextCellEditor(entitiesTable), cellEditors);
    TableUtils.setCellEditor(EOEntity.class.getName(), EOEntity.EXTERNAL_NAME, new WOTextCellEditor(entitiesTable), cellEditors);
    TableUtils.setCellEditor(EOEntity.class.getName(), EOEntity.CLASS_NAME, new WOTextCellEditor(entitiesTable), cellEditors);
    TableUtils.setCellEditor(EOEntity.class.getName(), EOEntity.PARENT, new KeyComboBoxCellEditor(entitiesTable, new String[0], SWT.READ_ONLY), cellEditors);
    myEntitiesTableViewer.setCellModifier(new EOEntitiesCellModifier(myEntitiesTableViewer, cellEditors));
    myEntitiesTableViewer.setCellEditors(cellEditors);
   
    new StayEditingCellEditorListener(myEntitiesTableViewer, EOEntity.class.getName(), EOEntity.NAME);
View Full Code Here

public class EOModelOutlineEditingSupport extends EditingSupport {
  private TextCellEditor _nameEditor;

  public EOModelOutlineEditingSupport(TreeViewer viewer) {
    super(viewer);
    _nameEditor = new WOTextCellEditor(viewer.getTree());
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.baseforuiplugins.utils.WOTextCellEditor

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.