Package org.objectstyle.wolips.eomodeler.utils

Examples of org.objectstyle.wolips.eomodeler.utils.TableRefreshPropertyListener


  public EOArgumentsTableViewer(Composite _parent, int _style) {
    super(_parent, _style);
    setLayout(new FillLayout());
    myArgumentsTableViewer = TableUtils.createTableViewer(this, SWT.MULTI | SWT.FULL_SELECTION, "EOArgument", EOArgument.class.getName(), new EOArgumentsContentProvider(), new EOArgumentsLabelProvider(TableUtils.getColumnsForTableNamed(EOArgument.class.getName())), new TablePropertyViewerSorter(EOArgument.class.getName()));
    new DoubleClickNewAttributeHandler(myArgumentsTableViewer).attach();
    myArgumentsChangedRefresher = new TableRefreshPropertyListener("ArgumentsChanged", myArgumentsTableViewer);
    myTableRowRefresher = new TableRowRefreshPropertyListener(myArgumentsTableViewer);
    Table argumentsTable = myArgumentsTableViewer.getTable();
    argumentsTable.setLayoutData(new GridData(GridData.FILL_BOTH));

    // TableColumn allowNullColumn =
View Full Code Here


    super(_parent, _style);
    setLayout(new FillLayout());
    myAttributesTableViewer = TableUtils.createTableViewer(this, SWT.MULTI | SWT.FULL_SELECTION, "EOAttribute", EOAttribute.class.getName(), new EOAttributesContentProvider(), null, new EOAttributesViewerSorter(EOAttribute.class.getName()));
    myAttributesTableViewer.setLabelProvider(new EOAttributesLabelProvider(myAttributesTableViewer, EOAttribute.class.getName()));
    new DoubleClickNewAttributeHandler(myAttributesTableViewer).attach();
    myAttributesChangedRefresher = new TableRefreshPropertyListener("AttributesChanged", myAttributesTableViewer);
    myParentChangedRefresher = new TableRefreshPropertyListener("ParentChanged", myAttributesTableViewer);
    myTableRowRefresher = new TableRowRefreshPropertyListener(myAttributesTableViewer);
    Table attributesTable = myAttributesTableViewer.getTable();
    attributesTable.setLayoutData(new GridData(GridData.FILL_BOTH));

    TableColumn primaryKeyColumn = TableUtils.getColumn(myAttributesTableViewer, EOAttribute.class.getName(), EOAttribute.PRIMARY_KEY);
View Full Code Here

    setLayout(new FillLayout());
    mySelectionListeners = new LinkedList<ISelectionChangedListener>();
    myRelationshipsTableViewer = TableUtils.createTableViewer(this, SWT.MULTI | SWT.FULL_SELECTION, "EORelationship", EORelationship.class.getName(), new EORelationshipsContentProvider(), null, new EORelationshipsViewerSorter(EORelationship.class.getName()));
    myRelationshipsTableViewer.setLabelProvider(new EORelationshipsLabelProvider(myRelationshipsTableViewer, EORelationship.class.getName()));
    new DoubleClickNewRelationshipHandler(myRelationshipsTableViewer).attach();
    myRelationshipsChangedRefresher = new TableRefreshPropertyListener("RelationshipsChanged", myRelationshipsTableViewer);
    myParentChangedRefresher = new TableRefreshPropertyListener("EntityParentChanged", myRelationshipsTableViewer);
    myTableRowRefresher = new TableRowRefreshPropertyListener(myRelationshipsTableViewer);

    Table relationshipsTable = myRelationshipsTableViewer.getTable();
    relationshipsTable.setLayoutData(new GridData(GridData.FILL_BOTH));
View Full Code Here

    myPrefetchKeyPathsTableViewer = TableUtils.createTableViewer(topForm, "EOFetchSpecification", EOPrefetchingKeyPathsConstants.COLUMNS, new PrefetchingKeyPathsContentProvider(), new PrefetchingKeyPathsLabelProvider(EOPrefetchingKeyPathsConstants.COLUMNS), new PrefetchingKeyPathsViewerSorter(EOPrefetchingKeyPathsConstants.COLUMNS));
    GridData prefetchKeyPathsTableLayoutData = new GridData(GridData.FILL_BOTH);
    prefetchKeyPathsTableLayoutData.heightHint = 100;
    myPrefetchKeyPathsTableViewer.getTable().setLayoutData(prefetchKeyPathsTableLayoutData);
    myPrefetchKeyPathsTableViewer.addSelectionChangedListener(this);
    myPrefetchKeyPathsChangedRefresher = new TableRefreshPropertyListener("PrefetchKeyPathsChanged", myPrefetchKeyPathsTableViewer);

    myAddRemoveButtonGroup = new AddRemoveButtonGroup(topForm, new AddPrefetchKeyPathHandler(), new RemovePrefetchKeyPathHandler());
    myAddRemoveButtonGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
View Full Code Here

    }

    GridData sortOrderingsTableLayoutData = new GridData(GridData.FILL_BOTH);
    //sortOrderingsTableLayoutData.heightHint = 100;
    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);
View Full Code Here

    new StayEditingCellEditorListener(myEntitiesTableViewer, EOEntity.class.getName(), EOEntity.NAME);
    new StayEditingCellEditorListener(myEntitiesTableViewer, EOEntity.class.getName(), EOEntity.EXTERNAL_NAME);
    new StayEditingCellEditorListener(myEntitiesTableViewer, EOEntity.class.getName(), EOEntity.CLASS_NAME);
    new StayEditingCellEditorListener(myEntitiesTableViewer, EOEntity.class.getName(), EOEntity.PARENT);

    myTableRefresher = new TableRefreshPropertyListener("EntitiesChanged", myEntitiesTableViewer);
    myTableRowRefresher = new TableRowRefreshPropertyListener(myEntitiesTableViewer);
  }
View Full Code Here

    myRawRowKeyPathsTableViewer = TableUtils.createTableViewer(topForm, "EOFetchSpecification", EORawRowKeyPathsConstants.COLUMNS, new RawRowKeyPathsContentProvider(), new RawRowKeyPathsLabelProvider(EORawRowKeyPathsConstants.COLUMNS), new RawRowKeyPathsViewerSorter(EORawRowKeyPathsConstants.COLUMNS));
    GridData rawRowKeyPathsTableLayoutData = new GridData(GridData.FILL_BOTH);
    rawRowKeyPathsTableLayoutData.heightHint = 100;
    myRawRowKeyPathsTableViewer.getTable().setLayoutData(rawRowKeyPathsTableLayoutData);
    myRawRowKeyPathsTableViewer.addSelectionChangedListener(this);
    myRawRowKeyPathsChangedRefresher = new TableRefreshPropertyListener("RawRowKeyPathsChanged", myRawRowKeyPathsTableViewer);

    myAddRemoveButtonGroup = new AddRemoveButtonGroup(topForm, new AddRawRowKeyPathHandler(), new RemoveRawRowKeyPathHandler());
    myAddRemoveButtonGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
View Full Code Here

    _storedProcedureTableViewer = TableUtils.createTableViewer(topForm, "EOStoredProcedure", EOStoredProceduresConstants.COLUMNS, new EOStoredProceduresContentProvider(), new TablePropertyLabelProvider(EOStoredProceduresConstants.COLUMNS), new TablePropertyViewerSorter(EOStoredProceduresConstants.COLUMNS));
    GridData rawRowKeyPathsTableLayoutData = new GridData(GridData.FILL_BOTH);
    rawRowKeyPathsTableLayoutData.heightHint = 100;
    _storedProcedureTableViewer.getTable().setLayoutData(rawRowKeyPathsTableLayoutData);
    _storedProcedureTableViewer.addSelectionChangedListener(this);
    _storedProcedureChangedRefresher = new TableRefreshPropertyListener("StoredProcedureChanged", _storedProcedureTableViewer);
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eomodeler.utils.TableRefreshPropertyListener

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.