附件有org.eclipse.jface.snippets,就是官网上面的,现在需要GIT,低版本的eclipse没有把GIT集成在eclipse中,需要自己手动安装。
自己对这些例子简直看看了。
1.1 Snippet012DialogWithImageButtons(button with image)
2 Layout
2.1 Snippet013GridLayoutFactory(done)
2.2 Snippet016TableLayout(done)
2.3 Snippet027TreeLayout(tree table)
3 Viewers
3.1 Snippet001TableViewer(done)
3.2 Snippet002TreeViewer(ITreeContentProvider)
3.3 Snippet003TableLabelProvider(ITableLabelProvider.getColumnImage)
3.4 Snippet004HideSelection(Snippet that hides the selection when nothing is selected.)
3.5 Snippet005TreeCustomMenu(Customized context menu based on TreeItem-Selection)
3.6 Snippet006TableMultiLineCells(OwnerDrawLabelProvider)
3.7 Snippet007FullSelection(CellEditor, ICellModifier)
3.8 Snippet008RevealElement(AbstractTableViewer.reveal())
3.9 Snippet009CellEditors(CellEditor, ICellModifier)
3.10 Snippet010OwnerDraw(OwnerDrawLabelProvider)
3.11 Snippet011CustomTooltips(CellLabelProvider, to custom Tooltip for cell.)
3.12 Snippet013TableViewerNoMandatoryLabelProvider(ITableFontProvider, ITableColorProvider)
3.13 Snippet014TreeViewerNoMandatoryLabelProvider(ITableFontProvider, ITableColorProvider)
3.14 Snippet015CustomTooltipsForTree(CellLabelProvider, to cuton tooltip for cell)
3.15 Snippet017TableViewerHideShowColumns(dynamic hide column, using setting column's width.)
3.16 Snippet018TableViewerAddRemoveColumnsWithEditing (add and remove column)
3.17 Snippet019TableViewerAddRemoveColumnsWithEditingNewAPI(done)
3.18 Snippet021CellEditorsOnDoubleClick (disable mouse down listen)
3.19 Snippet022TableViewerRefreshNoScroll (done)
3.20 Snippet024TableViewerExploreNewAPI(AbstractEditingSupport)
3.21 Snippet025TabEditing(org.eclipse.jface.viewers.TableViewerEditor key tab to tranverse editor cell.)
3.22 Snippet026TreeViewerTabEditing ('tab' to tranverse editor cell)
3.23 Snippet027ComboBoxCellEditors (ComboBoxCell-Editor)
3.24 Snippet029VirtualTableViewer (Virtual TableViewer)
3.25 Snippet030VirtualLazyTableViewer (Virtual Lazy TableViewer)
3.26 Snippet031TableViewerCustomTooltipsMultiSelection (custom tooltips)
3.27 Snippet032TableTreeViewer (TableTreeViewer editor)
3.28 Snippet033CellEditorPerRowPre33 (different CellEditors within one column)
3.29 Snippet034CellEditorPerRowNewAPI (different CellEditors within one column)
3.30 Snippet035TableCursorCellHighlighter (TableCursorCellHighlighter)
3.31 Snippet036FocusBorderCellHighlighter (FocusBorderCellHighlighter)
3.32 Snippet037FancyCustomTooltips (FancyCustomTooltips)
3.33 Snippet038TreeViewerInlinelEditingOldAPI (TreeViewerInlinelEditingOldAPI)
3.34 Snippet039ListViewer (ListViewer)
3.35 Snippet040TableViewerSorting (TableViewerSorting)
3.36 Snippet041TableViewerAlternatingColors (TableViewerAlternatingColors)
3.37 Snippet042ToolTipSupportFor32API (ToolTips with the OLD viewer API)
3.38 Snippet043NoColumnTreeViewerKeyboardEditing (keyboard-editing support in a TreeViewer)
3.39 Snippet044NoColumnTableViewerKeyboardEditing (keyboard-editing support in a TableViewer)
3.40 Snippet045TableViewerFillFromBackgroundThread (FillFromBackgroundThread)
3.41 Snippet046UpdateViewerFromBackgroundThread (UpdateViewerFromBackgroundThread)
3.42 Snippet047VirtualLazyTreeViewer (VirtualLazyTreeViewer)
3.43 Snippet048TreeViewerTabWithCheckboxFor3_3 (TAB-Traversal and Checkbox)
3.44 Snippet049StyledCellLabelProvider (StyledCellLabelProvider)
3.45 Snippet050DelegatingStyledCellLabelProvider (DelegatingStyledCellLabelProvider)
3.46 Snippet051TableCenteredImage( how to center an image using an owner draw label provider)
3.47 Snippet052DouleClickCellEditor (how to setup a Viewer to start cell editing on double click)
3.48 Snippet053StartEditorWithContextMenu (StartEditorWithContextMenu)
Snippet054NativeControlsInViewers54(NativeControlsInViewers, such as can editor 3 radio)
3.49 Snippet055HideShowColumn (HideShowColumn)
3.50 Snippet056BooleanCellEditor (BooleanCellEditor, image and text)
3.51 Snippet057TableViewerSkipHiddenCells (how easy cell-navigation with hidden cells)
3.52 Snippet058CellNavigationIn34 (full feature cell navigation)
3.53 Snippet059CellNavigationIn33 (full feature cell navigation)
3.54 Snippet060TextCellEditorWithContentProposal (how to attach content assist to a text cell editor.)
3.55 Snippet061FakedNativeCellEditor (FakedNativeCellEditor)
Snippet62TextAndDialogCellEditor (TextAndDialogCellEditor me has bug)
4 Window
4.1 Snippet020CustomizedControlTooltips (custom toolstips for controls)
4.2 Snippet023TreeViewerCustomTooltips (TreeViewerCustomTooltips)
4.3 Snippet031TableStaticTooltip.java (TableStaticTooltip)
5 Wizard
5.1 Snippet047WizardWithLongRunningOperation (open wizard demonstrate how to load data from a background thread into a TableViewer)
本文将指导您如何在低版本Eclipse中手动安装并使用org.eclipse.jface.snippets中的Git集成插件,包括创建对话框、网格布局、表格布局等示例,并详细介绍各种视图器和编辑器的用法。
496

被折叠的 条评论
为什么被折叠?



