- 博客(13)
- 资源 (7)
- 收藏
- 关注
原创 Adding Controls to the Toolbar
Another common feature is to place SWT controls in the toolbar instead of just buttons. Again, the key here is to put an IContributionItem into the toolbar instead of an IAction. This works because To
2010-05-14 08:10:00
657
原创 Showing Images and Text in Toolbar
Showing both images and text for certain toolbar items is a common requirement. The text is generally placed either to the right or below the image for the action, as shown in Figure 17-3. This improv
2010-05-14 07:54:00
704
原创 TextEditor相关操作
1)取得当前编辑器(getEditor())。PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();2)得到文件的编辑器的方法: public static IEditorPart findEditor(IFile file){ IEditorRe
2010-05-01 11:28:00
1139
原创 如何使用Eclipse中对Web Browser的支持
try { IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport(); IWebBrowser browser = support.createBrowser("Some_ID"); browser.openURL(new URL(("http://www.eclipse.or
2010-05-01 11:26:00
2538
原创 如何在当前Eclipse的Console View中输出信息
// 新建一个MessageConsole MessageConsole console = new MessageConsole("My Console", null); // 通过ConsolePlugin得到ConsoleManager,并添加新的MessageConsole ConsolePlugin.getDefault().getConsoleManager().addConsole
2010-05-01 11:25:00
1771
原创 PermGen space error
PermGen space error might be avoided by starting the IDE with the option -vmargs -XX:PermSize=64M -XX:MaxPermSize=128M - under Linux. For Windows, the eclipse.ini settings apply. -vmargs-Xms256m
2010-05-01 11:19:00
571
原创 引用其它插件的图片
有时候需要引用其它插件的图标,比如,有一个插件叫: net.foreworld.rss2,它的 icons 目录下有 file.gif 图,如果想引用此图标,在另一个插件的 plugin.xml 中,修改 xml 代码:1.通过扩展点引用... icon="platform:/plugin/net.foreworld.rss2/icons/file.gif" ... />//
2010-05-01 11:14:00
565
原创 org.eclipse.swt.SWTException: Invalid thread access
在SWT程序中, SWT会自动创建一个用户界面线程,非用户界面线程不能直接操作用户界面线程要想在另外一个线程中尝试修改用户界面,应采用一下方法: // If this is the UI thread, then make the change. if (Display.getCurrent() != null) { // 修改界面的代码 return; } /
2010-05-01 11:12:00
1009
offer: 东南融通与中天科技
最近接到两个offer,1.东南融通:做华为外包的,好像是手机方面2.中天科技是做医疗方面软件的诸位,有没对这两家公司了解的,给点意见.
2010-04-19 19:51:33
196
原创 java实现shadow clone(浅克隆)与深克隆(deep clone)
最近在学习设计模式中的prototype(原型)模式,提出了浅克隆与深克隆,当时甚是不解.于是在网上找了些资料,研究一下,才顿开茅塞.以下是笔人的一点小经验,可提供大家参考,不到之处还请大家点评. 克隆就是复制一个对象的复本.但一个对象中可能有基本数据类型,如:int,long,float 等,也同时含有非基本数据类型如(数组,集合等)被克隆得到的对象基本类型的值修改了,原对象的值不
2008-11-11 17:09:00
13377
原创 1.singleton模式的的两种实现方式
单例模式: 保证一个类仅有一个实例,并提供一个访问它的全局访问点。适用性: 当类只能有一个实例而且客户可以从一个众所周知的访问点访问它时。 当这个唯一实例应该是通过子类化可扩展的,并且客户应该无需更改代码就能使用一个扩展的实例时。 实现1:Singleton1.javapackage lc.gof23.singleton;/** * * @au
2008-11-11 13:42:00
951
原创 javascript控制层
New Document "javascript"> function show() { var msg = document.getElementById("msg");//取得弹出的层 msg.style.display="block" ; //msg的初始
2008-11-11 09:12:00
695
原创 javascript实现动态增加行删除行.
"-//W3C//DTD HTML 4.0 Transitional//EN"> New Document "javascript"> function addRow() { //增加一行 var tr = modifyTable.insertRow(modifyTable.rows.length);
2008-11-11 08:53:00
732
SQL反模式pdf
2018-08-15
实战Dojo工具包.pdf
2008-12-08
Xdoclet介绍.doc
2008-12-08
JBPM用户指南.doc
2008-12-08
ant 配置文档
2008-12-08
日志记录(log4j等)介绍.doc
2008-12-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人