org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter Java Examples
The following examples show how to use
org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContractConstraintsTableViewer.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
public void initialize(final IViewerController constraintController, final IMessageManager messageManager, final EMFDataBindingContext emfDataBindingContext) { this.messageManager = messageManager; this.constraintController = constraintController; this.emfDataBindingContext = emfDataBindingContext; final ProcessItemProviderAdapterFactory adapterFactory = new ProcessItemProviderAdapterFactory(); propertySourceProvider = new AdapterFactoryContentProvider(adapterFactory); adapterFactoryLabelProvider = new AdapterFactoryLabelProvider(adapterFactory); getTable().setHeaderVisible(true); getTable().setLinesVisible(true); setContentProvider(new ObservableListContentProvider()); final CellNavigationStrategy cellNavigationStrategy = new AddRowOnEnterCellNavigationStrategy(this, constraintController); final TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(this, new FocusCellOwnerDrawHighlighter( this), cellNavigationStrategy); TableViewerEditor.create(this, focusCellManager, new CharriageColumnViewerEditorActivationStrategy(this), ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION); ColumnViewerToolTipSupport.enableFor(this); createColumns(); configureTableLayout(); }
Example #2
Source File: ContractInputTreeViewer.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
public void initialize(final ContractInputController inputController, final IMessageManager messageManager, final EMFDataBindingContext emfDataBindingContext) { this.messageManager = messageManager; this.inputController = inputController; this.emfDataBindingContext = emfDataBindingContext; final ComposedAdapterFactory adapterFactory = new ComposedAdapterFactory( ComposedAdapterFactory.Descriptor.Registry.INSTANCE); propertySourceProvider = new ContractInputTypePropertyDescriptor(adapterFactory); adapterFactoryLabelProvider = new AdapterFactoryLabelProvider(adapterFactory); getTree().setHeaderVisible(true); getTree().setLinesVisible(true); addFilter(new ComplexTypeChildrenViewerFilter()); final ObservableListTreeContentProvider contentProvider = new ObservableListTreeContentProvider( new ContractInputObservableFactory(), new ContractInputTreeStructureAdvisor()); setContentProvider(contentProvider); final CellNavigationStrategy cellNavigationStrategy = new AddRowOnEnterCellNavigationStrategy(this, inputController); final TreeViewerFocusCellManager focusCellManager = new TreeViewerFocusCellManager(this, new FocusCellOwnerDrawHighlighter( this), cellNavigationStrategy); TreeViewerEditor.create(this, focusCellManager, new CharriageColumnViewerEditorActivationStrategy(this), ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION); ColumnViewerToolTipSupport.enableFor(this); createColumns(); configureTableLayout(); }