Package org.objectstyle.wolips.eomodeler.utils

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


    myShareFetchSpecsButton = new Button(topForm, SWT.RADIO);
    myShareFetchSpecsButton.setText(Messages.getString("EOEntity.shareFetchSpecs"));
    myShareFetchSpecsButton.addSelectionListener(new ShareFetchSpecsListener());

    myFetchSpecsViewer = TableUtils.createTableViewer(topForm, SWT.BORDER | SWT.FLAT | SWT.MULTI | SWT.FULL_SELECTION, "EOFetchSpecification", EOFetchSpecification.class.getName(), new EOFetchSpecsContentProvider(), new EOFetchSpecsLabelProvider(EOFetchSpecification.class.getName()), new TablePropertyViewerSorter(EOFetchSpecification.class.getName()));
    TableColumn nameColumn = TableUtils.getColumn(myFetchSpecsViewer, EOFetchSpecification.class.getName(), EOFetchSpecification.SHARES_OBJECTS);
    if (nameColumn != null) {
      nameColumn.setText("");
      nameColumn.setImage(Activator.getDefault().getImageRegistry().get(Activator.CHECK_ICON));
    }
View Full Code Here


  private TableRowRefreshPropertyListener myTableRowRefresher;

  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));
View Full Code Here

    myButtonUpdateListener = new ButtonUpdateListener();

    GridLayout layout = new GridLayout();
    setLayout(layout);

    myJoinsTableViewer = TableUtils.createTableViewer(this, SWT.BORDER | SWT.FLAT | SWT.MULTI | SWT.FULL_SELECTION, "EOJoin", EOJoin.class.getName(), new EOJoinsContentProvider(), new EOJoinsLabelProvider(EOJoin.class.getName()), new TablePropertyViewerSorter(EOJoin.class.getName()));

    CellEditor[] cellEditors = new CellEditor[TableUtils.getColumnsForTableNamed(EOJoin.class.getName()).length];
    TableUtils.setCellEditor(EOJoin.class.getName(), EOJoin.SOURCE_ATTRIBUTE_NAME, new KeyComboBoxCellEditor(myJoinsTableViewer.getTable(), new String[0], SWT.READ_ONLY), cellEditors);
    TableUtils.setCellEditor(EOJoin.class.getName(), EOJoin.DESTINATION_ATTRIBUTE_NAME, new KeyComboBoxCellEditor(myJoinsTableViewer.getTable(), new String[0], SWT.READ_ONLY), cellEditors);
    myJoinsTableViewer.setCellModifier(new EOJoinsCellModifier(myJoinsTableViewer));
View Full Code Here

    _rawSQLText.setLayoutData(nameLayoutData);

    _useStoredProcedureButton = new Button(topForm, SWT.RADIO);
    _useStoredProcedureButton.setText(Messages.getString("EOFetchSpecSQLEditorSection.useStoredProcedure")); //$NON-NLS-1$

    _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.TablePropertyViewerSorter

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.