- 博客(16)
- 问答 (1)
- 收藏
- 关注
原创 JFace snippet
附件有org.eclipse.jface.snippets,就是官网上面的,现在需要GIT,低版本的eclipse没有把GIT集成在eclipse中,需要自己手动安装。 自己对这些例子简直看看了。1.1 Snippet012DialogWithImageButtons(button with image)2 Layout2.1 Snippet013GridLayoutFactory(...
2013-01-31 11:00:45 207
原创 WorkbenchPart.getAdapter(Class adapter)
WorkbenchPart.getAdapter(Class adapter)就是适配器模式,接受的是你想要对象的类名,返回这个类名的实际对象或者空。 如,文本编辑器调用getAdapter,传入的class是org.eclipse.swt.custom.StyledText,放回的就是文本编辑器的控件StyledText对象。...
2013-01-28 13:33:30 124
原创 关于volatile
Volatile修饰的成员变量在每次被线程访问时,都强迫从共享内存中重读该成员变量的值。而且,当成员变量发生变化时,强迫线程将变化值回写到共享内存。这样在任何时刻,两个不同的线程总是看到某个成员变量的同一个值。Java语言规范中指出:为了获得最佳速度,允许线程保存共享成员变量的私有拷贝,而且只当线程进入或者离开同步代码块时才与共享成员变量的原始值对比。这样当多个线程同时与某个对象交互时,就必须要注...
2013-01-28 13:24:13 103
原创 基类Object中都有什么方法
protected Object clone() 创建并返回此对象的一个副本。 boolean equals(Object obj) 指示某个其他对象是否与此对象“相等”。 protected void finalize() 当垃圾回收器确定不存在对该对象的更多引用时,由对象的垃圾回收器调用此方法。 Class<? exten...
2013-01-28 13:18:36 229
原创 Java SWT TableViewer 的目录列表
使用swt table实现表格http://xmind.iteye.com/blog/1774129 [sample] tableview + arrayContentProvide + default labelProvide(org.eclipse.jface.viewers.LabelProvider, ctrl+shift+t)http://xmind.iteye.com/blog/17...
2013-01-24 11:07:31 178
原创 [sample] tableview + arrayContentProvide + default labelProvide + IColorProvider
[sample] tableview + arrayContentProvide + default labelProvide + IColorProviderpublic class TableViewer5 { public static void creatShellArae(Shell shell) { Table table = new Table(s...
2013-01-24 11:02:23 106
原创 [sample] tableview + arrayContentProvide + default labelProvide + IFontProvider
[sample] tableview + arrayContentProvide + default labelProvide + IFontProviderpublic class TableViewer6 { public static void creatShellArae(Shell shell) { Table table = new Table(sh...
2013-01-24 11:02:13 179
原创 [sample] tableview + arrayContentProvide + default labelProvide + filter
[sample] tableview + arrayContentProvide + default labelProvide + filterpublic class TableViewer7 { public static void creatShellArae(Shell shell) { Table table = new Table(shell, ...
2013-01-24 11:00:56 89
原创 [sample] tableview + arrayContentProvide + default labelProvide + sorter
[sample] tableview + arrayContentProvide + default labelProvide + sorterpublic class TableViewer8 { public static void creatShellArae(Shell shell) { Table table = new Table(shell, ...
2013-01-24 11:00:35 66
原创 [sample] tableview + property listens(databinding) + default labelprovide
[sample] tableview + property listens(databinding) + default labelprovidepublic class TableViewer4 { public static void creatShellArae(Shell shell) { Table table = new Table(shell, ...
2013-01-23 09:49:39 80
原创 [sample] tableview + arrayContentProvide + custom labelprovide
[sample] tableview + arrayContentProvide + custom labelprovidepublic class TableViewer3 { static String[] columnProperties = {"col1","col2","col3"}; static Display display = Display...
2013-01-23 09:48:59 82
原创 [sample] tableview + customContentProvide + defualt labelprovide
[sample] tableview + customContentProvide + defualt labelprovidepublic class TableViewer2 { public static void creatShellArae(Shell shell) { Table table = new Table(shell, SWT.BORDE...
2013-01-23 09:48:10 89
原创 tableview + arrayContentProvide + default labelProvide
[sample] tableview + arrayContentProvide + default labelProvide(org.eclipse.jface.viewers.LabelProvider, ctrl+shift+t)public class TableViewer1 { public static void creatShellArae(Shell shel...
2013-01-23 09:47:38 128
原创 使用swt table实现表格
使用Tablepublic class Table1 { public static void creatShellArae(Shell shell) { Table table = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION); table.setHeaderVisible(true);...
2013-01-23 09:45:45 634
原创 eclipse中任务进度的使用
转自:http://lggege.iteye.com/blog/232964 public class XmindTest { public static void main(String[] args) { Display.getDefault(); ProgressMonitorDialog progressDialog = new P...
2013-01-10 17:09:45 373
原创 direct 图,改变图像的饱和度和亮度
public class PaletteDirectExample { static Display display; public Image createIndexImage() { // *** PaletteData(redMask, greenMask, blueMask) Palet...
2013-01-10 15:35:40 166
空空如也
是否需要getAbsoluteFile,getAbsoluteFile的作用?
2014-05-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人