Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.ColumnViewerEditorActivationStrategy


      CellNavigationStrategy strategy = new CellNavigationStrategy();
    TableViewerFocusCellManager focusCellMgr = new TableViewerFocusCellManager(propertiesViewer,
          new FocusCellOwnerDrawHighlighter(propertiesViewer),
          strategy);
   
        ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(
                propertiesViewer){

            @Override
            protected boolean isEditorActivationEvent(
                    ColumnViewerEditorActivationEvent event) {
View Full Code Here


        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(
                    ColumnViewerEditorActivationEvent event) {
View Full Code Here

            }
           
        });
       
        viewer2.setColumnProperties(new String[] {"1",scaleColumn}); //$NON-NLS-1$
        ColumnViewerEditorActivationStrategy editorActivationStrategy = new ColumnViewerEditorActivationStrategy(viewer2);
        TableViewerEditor.create(viewer2, editorActivationStrategy, ColumnViewerEditor.TABBING_VERTICAL);
    }
View Full Code Here

      _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

    });

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

    ColumnViewerEditorActivationStrategy actStrategy = new ColumnViewerEditorActivationStrategy(
        tableViewer) {
      @Override
      protected boolean isEditorActivationEvent(
          ColumnViewerEditorActivationEvent event) {
        return event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL
View Full Code Here

    public void setCellEditingStrategy(final TableViewer tableViewer) {

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

        ColumnViewerEditorActivationStrategy activationStrategy =
                new ColumnViewerEditorActivationStrategy(tableViewer) {
                    @Override
                    protected boolean isEditorActivationEvent(
                            final ColumnViewerEditorActivationEvent event) {
                        boolean result = false;
View Full Code Here

  });
 
  v.setColumnProperties(new String[] {"1","2"});
//  v.setColumnProperties(new String[] {"Группа","Время","Дисциплина","Вид занятий","Преподователь","Кафедра"});
 
  ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(v) {
    protected boolean isEditorActivationEvent(ColumnViewerEditorActivationEvent event) {
      return event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL
          || event.eventType == ColumnViewerEditorActivationEvent.MOUSE_DOUBLE_CLICK_SELECTION
          || (event.eventType == ColumnViewerEditorActivationEvent.KEY_PRESSED && event.keyCode == SWT.CR);
    }
View Full Code Here

  });
 
  v.setColumnProperties(new String[] {"1","2"});
//  v.setColumnProperties(new String[] {"Группа","Время","Дисциплина","Вид занятий","Преподователь","Кафедра"});
 
  ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(v) {
    protected boolean isEditorActivationEvent(ColumnViewerEditorActivationEvent event) {
      return event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL
          || event.eventType == ColumnViewerEditorActivationEvent.MOUSE_DOUBLE_CLICK_SELECTION
          || (event.eventType == ColumnViewerEditorActivationEvent.KEY_PRESSED && event.keyCode == SWT.CR);
    }
View Full Code Here

    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)
            || ((event.eventType == ColumnViewerEditorActivationEvent.KEY_PRESSED) && (event.keyCode == SWT.CR))
View Full Code Here

    Table bindingsTable = _bindingsTableViewer.getTable();
    bindingsTable.setHeaderVisible(true);
    bindingsTable.setLinesVisible(true);

    ColumnViewerEditorActivationStrategy columnActivationStrategy = new ColumnViewerEditorActivationStrategy(_bindingsTableViewer) {
      protected boolean isEditorActivationEvent(ColumnViewerEditorActivationEvent event) {
        return event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL || event.eventType == ColumnViewerEditorActivationEvent.MOUSE_DOUBLE_CLICK_SELECTION || event.eventType == ColumnViewerEditorActivationEvent.PROGRAMMATIC;
      }
    };
View Full Code Here

TOP

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

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.