![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SWT/JFACE/RCP
丁天才
这个作者很懒,什么都没留下…
展开
-
如何做RCP里的图片资源管理
这里我写了一中读取资源图片管理的方法,这个方法的好处就是,加载过的图片把它放在MAP里,下次再用的时候不用重新加载。1.在这个plugin的最顶层目录下创建 icons文件,然后把图片放在这个文件夹里。2.在这个plugin 里的Activator(默认是这个类名,一般自己会改成其他和PLUGIN相关的名字)里写static方法,这方法能根据图片所在地路径名字取得图片...2010-04-12 14:38:52 · 121 阅读 · 0 评论 -
Rcp的一些配置
[code="java"] [/code]category 的作用是把这个类放在打开视图的show view里面。开发时候,如果在A的plugin.xml里面 add dependency 里add了另一个plugin B。那么启动A时候必须在RUN CONFIGUREATION里把plugin B勾上。否者会报错,无法启动。...2010-04-16 14:36:46 · 166 阅读 · 0 评论 -
table的列宽自动矫正。resize.
1.在第一个类来写[code="java"] protected void createTableColumns(Table table) { List columnNames = new ArrayList(); TableLayout tableLayout = new AutoResizeTableLayout(table); ...2010-04-20 13:40:25 · 807 阅读 · 0 评论 -
WIZARD 内容
[color=darkblue]Wizard has 3 layers.[/color]The first layer.IDialogPage:is the base interface for the pages in any multipage dialog. The interface privider mehtods to configure all the attribute...2010-04-29 11:29:51 · 119 阅读 · 0 评论 -
SWT JFACE 关于Tree上加celleditor的代码摘录
[size=large][color=brown]这里是摘录一些 SWT/JFACE RCP项目中 比较有用的小代码。[/color][/size]右键复杂菜单[code="java"]final MenuManager menuMgr = new MenuManager("#popupMenu"); menuMgr.setRemoveAllWhenShown(t...2010-02-11 11:32:39 · 126 阅读 · 0 评论