void setUIText() { wUseSSL.setSelection( sslEnabled ); sslTable.setEnabled( sslEnabled ); sslTable.table.setEnabled( sslEnabled ); sslTable.table.select( 0 ); sslTable.table.showSelection(); }
private void setUIText() { wCheckBox.setSelection( isEnabled ); propertiesTable.setEnabled( isEnabled ); propertiesTable.table.setEnabled( isEnabled ); propertiesTable.table.select( 0 ); propertiesTable.table.showSelection(); }
wPackages.table.showSelection();
@Override protected void doShowSelection() { table.showSelection(); }
@Override protected void doShowSelection() { table.showSelection(); }
protected void doShowSelection() { table.showSelection(); }
@Override void showSelection() { getTable().showSelection(); }
/** * Shows the selection. * <p> * If there is no selection or the selection * is already visible, this method does nothing. * If the selection is scrolled out of view, * the top index of the widget is changed such * that selection becomes visible. * * @exception SWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed * </ul> */ public void showSelection () { checkWidget(); table.showSelection(); } }
/** * Shows the selection. * <p> * If there is no selection or the selection * is already visible, this method does nothing. * If the selection is scrolled out of view, * the top index of the widget is changed such * that selection becomes visible. * * @exception SWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed * </ul> */ public void showSelection () { checkWidget(); table.showSelection(); } }
/** * Shows the selection. * <p> * If there is no selection or the selection * is already visible, this method does nothing. * If the selection is scrolled out of view, * the top index of the widget is changed such * that selection becomes visible. * * @exception SWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed * </ul> */ public void showSelection () { checkWidget(); table.showSelection(); } }
/** * Shows the selection. * <p> * If there is no selection or the selection * is already visible, this method does nothing. * If the selection is scrolled out of view, * the top index of the widget is changed such * that selection becomes visible. * * @exception SWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed * </ul> */ public void showSelection () { checkWidget(); table.showSelection(); } }
/** * Shows the selection. * <p> * If there is no selection or the selection * is already visible, this method does nothing. * If the selection is scrolled out of view, * the top index of the widget is changed such * that selection becomes visible. * * @exception SWTException <ul> * <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed * </ul> */ public void showSelection () { checkWidget(); table.showSelection(); } }
private void selectProposal(int index) { Assert .isTrue(index >= 0, "Proposal index should never be negative"); //$NON-NLS-1$ if (!isValid() || proposals == null || index >= proposals.length) { return; } proposalTable.setSelection(index); proposalTable.showSelection(); showProposalDescription(); }
private void selectProposal(int index) { Assert .isTrue(index >= 0, "Proposal index should never be negative"); //$NON-NLS-1$ if (!isValid() || proposals == null || index >= proposals.length) { return; } proposalTable.setSelection(index); proposalTable.showSelection(); showProposalDescription(); }
private void selectProposal(int index) { Assert .isTrue(index >= 0, "Proposal index should never be negative"); //$NON-NLS-1$ if (!isValid() || proposals == null || index >= proposals.length) { return; } proposalTable.setSelection(index); proposalTable.showSelection(); showProposalDescription(); }
/** * Selects the item at the given zero-relative index in the receiver. * The current selection is first cleared, then the new item is selected. * * @param index the index of the item to select * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see Table#deselectAll() * @see Table#select(int) */ public void setSelection( int index ) { checkWidget(); deselectAll(); select( index ); setFocusIndex( index ); showSelection(); }
/** * Selects the item at the given zero-relative index in the receiver. * The current selection is first cleared, then the new item is selected, * and if necessary the receiver is scrolled to make the new selection visible. * * @param index the index of the item to select * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see Table#deselectAll() * @see Table#select(int) */ public void setSelection (int index) { checkWidget (); boolean fixColumn = showFirstColumn (); deselectAll (); selectFocusIndex (index); showSelection (); if (fixColumn) hideFirstColumn (); }
/** * Selects the entry with the given index in the proposal selector and feeds * the selection to the additional info controller. * * @param index the index in the list * @param smartToggle <code>true</code> if the smart toogle key has been pressed * @since 2.1 */ private void selectProposal(int index, boolean smartToggle) { ICompletionProposal oldProposal= getSelectedProposal(); if (oldProposal instanceof ICompletionProposalExtension2) ((ICompletionProposalExtension2) oldProposal).unselected(fViewer); ICompletionProposal proposal= fFilteredProposals[index]; if (proposal instanceof ICompletionProposalExtension2) ((ICompletionProposalExtension2) proposal).selected(fViewer, smartToggle); fLastProposal= proposal; fProposalTable.setSelection(index); fProposalTable.showSelection(); if (fAdditionalInfoController != null) fAdditionalInfoController.handleTableSelectionChanged(); }
/** * Selects the entry with the given index in the proposal selector and feeds * the selection to the additional info controller. * * @param index the index in the list * @param smartToggle <code>true</code> if the smart toogle key has been pressed * @since 2.1 */ private void selectProposal(int index, boolean smartToggle) { ICompletionProposal oldProposal= getSelectedProposal(); if (oldProposal instanceof ICompletionProposalExtension2) ((ICompletionProposalExtension2) oldProposal).unselected(fViewer); ICompletionProposal proposal= fFilteredProposals[index]; if (proposal instanceof ICompletionProposalExtension2) ((ICompletionProposalExtension2) proposal).selected(fViewer, smartToggle); fLastProposal= proposal; fProposalTable.setSelection(index); fProposalTable.showSelection(); if (fAdditionalInfoController != null) fAdditionalInfoController.handleTableSelectionChanged(); }
public void navigateNext(boolean forward) { int itemCount = fViewer.getTable().getItemCount(); if (itemCount == 0) return; int[] selection = fViewer.getTable().getSelectionIndices(); int nextIndex = 0; if (selection.length > 0) { if (forward) { nextIndex = selection[selection.length - 1] + 1; if (nextIndex >= itemCount) nextIndex = 0; } else { nextIndex = selection[0] - 1; if (nextIndex < 0) nextIndex = itemCount - 1; } } fViewer.getTable().setSelection(nextIndex); fViewer.getTable().showSelection(); } }