Examples of FocusCellOwnerDrawHighlighter


Examples of org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter

      propertiesTable.setHeaderVisible(true);
      propertiesTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 2));
     
      CellNavigationStrategy strategy = new CellNavigationStrategy();
    TableViewerFocusCellManager focusCellMgr = new TableViewerFocusCellManager(propertiesViewer,
          new FocusCellOwnerDrawHighlighter(propertiesViewer),
          strategy);
   
        ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(
                propertiesViewer){
View Full Code Here

Examples of org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter

        };
        tableParent.setLayout(tableLayout);
       
        viewer = new TableViewer(tableParent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER | SWT.HIDE_SELECTION | SWT.FULL_SELECTION);
        TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(
                viewer, new FocusCellOwnerDrawHighlighter(viewer), new CellNavigationStrategy());
        ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(
                viewer){

            @Override
            protected boolean isEditorActivationEvent(
View Full Code Here

Examples of org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter

      _columnProp[attr.getDisplayOrder()] = attr.getColName();
      _mapIdx[attr.getDisplayOrder()] = i;
      }

    // Transversal TAB key Management - Tested OK
    TableViewerFocusCellManager tvfcm = new TableViewerFocusCellManager(this, new FocusCellOwnerDrawHighlighter(this));
    ColumnViewerEditorActivationStrategy cveas = new ColumnViewerEditorActivationStrategy(this);
    TableViewerEditor.create(this, tvfcm, cveas, ColumnViewerEditor.TABBING_HORIZONTAL
        | ColumnViewerEditor.TABBING_CYCLE_IN_ROW);
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter

        return cellEditor;
      }
    });

    final TableViewerFocusCellManager focusCellMgr = new TableViewerFocusCellManager(
        tableViewer, new FocusCellOwnerDrawHighlighter(tableViewer));

    ColumnViewerEditorActivationStrategy actStrategy = new ColumnViewerEditorActivationStrategy(
        tableViewer) {
      @Override
      protected boolean isEditorActivationEvent(
View Full Code Here

Examples of org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter

    }

    public void setCellEditingStrategy(final TableViewer tableViewer) {

        TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(tableViewer,
                new FocusCellOwnerDrawHighlighter(tableViewer));

        ColumnViewerEditorActivationStrategy activationStrategy =
                new ColumnViewerEditorActivationStrategy(tableViewer) {
                    @Override
                    protected boolean isEditorActivationEvent(
View Full Code Here

Examples of org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter

    viewer.setContentProvider(new ArrayContentProvider());
    getSite().setSelectionProvider(viewer);
   
    // Enable table cell navigation
    focusCellManager =
      new TableViewerFocusCellManager(viewer, new FocusCellOwnerDrawHighlighter(viewer));
    ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(viewer) {
      @Override
      protected boolean isEditorActivationEvent(ColumnViewerEditorActivationEvent event) {
        return (event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL)
            || (event.eventType == ColumnViewerEditorActivationEvent.MOUSE_DOUBLE_CLICK_SELECTION)
View Full Code Here

Examples of org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter

  public PropertyListEditor(Composite parent, boolean rootVisible, boolean canEditRootType, Set<String> filteredKeyPaths) {
    _propertyListTree = new TreeViewer(parent, SWT.BORDER | SWT.FULL_SELECTION | SWT.BACKGROUND | SWT.SINGLE | SWT.NO_SCROLL | SWT.V_SCROLL);
    _propertyListTree.getTree().setHeaderVisible(true);
    _propertyListTree.getTree().setLinesVisible(true);
    _propertyListTree.setAutoExpandLevel(2);
    TreeViewerFocusCellManager focusCellManager = new TreeViewerFocusCellManager(_propertyListTree, new FocusCellOwnerDrawHighlighter(_propertyListTree), new WOTreeCellNavigationStrategy());
    ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(_propertyListTree) {
      protected boolean isEditorActivationEvent(ColumnViewerEditorActivationEvent event) {
        ViewerCell cell = (ViewerCell) event.getSource();
        boolean isEditorActivationEvent;
        if (cell.getColumnIndex() == 1) {
View Full Code Here

Examples of org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter

   * Q: teh fuck is this?
   * A: http://bingjava.appspot.com/snippet.jsp?id=2213
   */
  private void addEditorSupport(TableViewer tv) {
    final CellNavigationStrategy cellNavigation = createCellNavigationStrategy(tv);
    final TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(tv, new FocusCellOwnerDrawHighlighter(tv), cellNavigation);
    final ColumnViewerEditorActivationStrategy activationStrategy = createEditorActivationStrategy(tv);
    TableViewerEditor.create(tv, focusCellManager, activationStrategy,
        ColumnViewerEditor.TABBING_HORIZONTAL
        | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR
        | ColumnViewerEditor.TABBING_VERTICAL
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.