RCP
iteye_15448
这个作者很懒,什么都没留下…
展开
-
SWT组件Table 的排序
[code="java"]/** * This util calss provides some general RCP methods * * @author Louis */public class RcpUtils { /** * Add sorter to the specified column, compares using Collator...2008-02-28 15:58:57 · 576 阅读 · 0 评论 -
Add a new Row when click table blank row
[code="java"]/** * Add a new Row when click on the blank row of the table */void addNewRow(MouseEvent e, Table mTable) { TableItem item = mTable.getItem(new Point(e.x, e.y)); if (item ...2008-08-21 15:26:32 · 130 阅读 · 0 评论 -
Change background for new or changed records
TableViewer: Change background for new or changed records1) //override hashCode() of the class that displayed in the table.[code="java"]/** * Calculate these fields that affect the object stat...2008-08-20 15:43:32 · 103 阅读 · 0 评论 -
RCP resources
http://wiki.eclipse.org/JFaceSnippets2008-08-20 12:42:31 · 93 阅读 · 0 评论 -
JFace Snippets
[code="java"]Color COLOR_RED = Display.getDefault().getSystemColor(SWT.COLOR_RED);Color COLOR_GREEN = Display.getDefault().getSystemColor(SWT.COLOR_GREEN);Color COLOR_BLUE = Display.getDefault().g...2008-08-20 00:01:34 · 99 阅读 · 0 评论 -
Drag and Drop in a Tree
[code="java"]public class TreeDragDropTest { private static Display display; private static Shell shell; public static void main(String[] args) { display = new Display(); ...2009-04-06 18:05:20 · 76 阅读 · 0 评论 -
SWT Menu background
[code="java"]invoke("setBackground", menuBar, new Class[] { Color.class }, new Color[] { bg });invoke("setBackground", menu1, new Class[] { Color.class }, new Color[] { bg });invoke("setBackground...2009-04-04 18:00:49 · 164 阅读 · 0 评论 -
StyledText sample
[code="java"]StyledText text1 = new StyledText(parent, SWT.V_SCROLL | SWT.BORDER);String msg = "Hello";text1.append(msg);StyleRange styleRange = new StyleRange();styleRange.foreground = Disp...2009-03-23 22:42:49 · 198 阅读 · 0 评论 -
JFace - TreeViewer
1) TreeNode[code="java"]/** * It's used by TreeViewer * TreeNode root = new TreeNode("Root"); * treeViewer = new TreeViewer(container, SWT.BORDER); * treeViewer.setLabelProvider(new TreeLabl...2009-03-21 23:48:56 · 115 阅读 · 0 评论 -
Create fake tooltips for items in a SWT table
1)[code="java"]/** * Table that provides fake tooltips for items in a SWT table */public class TooltipTable extends Table { private TooltipTableListener tableListener; protected ...2009-03-19 13:54:42 · 70 阅读 · 0 评论 -
To show a custom area for toolbar.
To show a custom area for toolbar.[code="java"]public void postWindowOpen() { //...}//Add to postWindowOpen()final IWorkbenchWindow window = getWindowConfigurer().getWindow();List...2009-05-11 16:10:33 · 75 阅读 · 0 评论