自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

原创 How to Debug and Detect Deadlocks

Deadlocks in 2 minutesDeadlocks are software bugs where multiple threads (typically one of them being the main thread) wait indefinitely on common synchronization primitives (locks) beca...

2010-12-01 15:04:14 191

原创 Run FindBugs from your Eclipse RCP headless build

Running FindBugs from Eclipse RCP headless build is pretty much simple:1. Add the following target to your customTargets.xml (replace "com.yourcompany" with your package/plug-in prefix): cl...

2010-12-01 14:53:24 210

原创 Markers and Annotations in Eclipse for Error Feedback(forward)

Motto: Ninety per cent of most magic merely consists of knowing one extra fact.Terry Pratchett, Night WatchDevelopment in Eclipse keeps fascinating me, as there are a lot of very tho...

2010-12-01 14:39:28 189

原创 Testing declarative Eclipse expressions(forward)

Our Eclipse-based product plugs into the platform debug support. And we have a large number of launch shortcuts which have enablement expressions specified in plugin.xml. And they are a huge pain ...

2010-11-19 08:32:11 100

原创 Release engineer vs dependency management: Basing RCP Product and headless build

http://www.bonitasoft.org/blog/uncategorized/release-engineer-vs-dependency-management-basing-rcp-product-and-headless-build-from-plugins-to-features/

2010-11-02 23:32:54 114

原创 eclipse headless

java -jar <eclipse-installation-path>\plugins\org.eclipse.equinox.launcher_<version><qualifier>.jar -application org.eclipse.ant.core.antRunner -buildfile <eclipse-workspace...

2010-06-16 17:37:35 262

原创 Generating p2 meta data from command line

Many times when working with Eclipse RCP I had to generate ad-hoc updatesites (usually containing some 3rd party plug-ins). What I usually did to achieve this (with Eclipse IDE):create new fe...

2010-06-11 12:08:49 107

原创 Opening files in Eclipse from the command line(转发)

I ran a query to see all the bugs fixed in the Eclipse Platform in 3.6; it is a long list (4309 and counting). Felipe gets credit for the oldest bug fixed (raised in 2001), but in a close se...

2010-06-11 12:08:07 165

SWT: Drop an Outlook Email(转发)

I wanted to drop an outlook email to my RCP application and as always I asked google to help me. You don't find much on this, an older post washttp://www.eclipse.org/forums/index.php?t=msg&&am...

2010-03-18 14:43:56 275

终于成为eclipse的committer了

虽然以前也是committer,但是是个非常小的工程还是卵化期,代码都没放到eclipse上,现在终于成为pdt(php开发工具)的committer。加油!

2010-03-16 16:33:07 498

原创 source. and output.

The source and output properties in build.properties control the folders to be compiled and where to place the resulting output. The eclipse help briefly talks about it. * source.<lib...

2009-11-23 09:11:02 248

原创 Default launch configuration for Eclipse plugin / RCP development

Eclipse shows errors during a launch via the log views in both the host and the target system and on the file system. In addition the developer can specify the flag “-consoleLog” in the launch c...

2009-11-23 08:52:39 91

原创 dltk & php

dltk code Completionorg.eclipse.dltk.ui.text.completion.ScriptCompletionProposalComputer#computeCompletionProposalsthe Language specific proposals is on top of Template proposals  if want to c...

2009-10-16 13:09:10 379

原创 Remember the State

As a rule of thumb, your application should try to remember thestate across sessions. So when a user hits the close button and thenopens it after few mins/days, it should present exactly in the sa...

2009-09-16 12:32:32 150

原创 some basic conceptions

Every Eclipse plugin developer has to deal with Shell and Window, butsometimes doesn't understand the difference between these two. In thistip, I'm trying to explain the basic things: Display, S...

2009-09-16 11:35:19 101

原创 about action

   <extension         point="org.eclipse.ui.actionSets">         <action               definitionId="org.eclipse.dltk.ui.edit.text.script.open.type.hierarchy"               label="%Op...

2009-09-15 19:39:16 138

原创 关于gmf copy/paste 的解决方案

代码都是从bmpn那里复制过来的,删除了一些代码,在我这里运行是好用的,所以就把代码传上来了。 因为看到gmf新闻组里很多人遇到这个问题,而且都没有很好的解决...

2009-07-27 12:05:23 151

原创 gmf特殊connection删除的问题

昨天一哥们碰到一个问题,他用gmf做的编辑器有个connection,这个connection很特殊,它的source和target都是connection,这个connection删除的时候只是不显示了,下次打开diagram的时候还是存在的,经观察,点击右键的时候有两个删除选项分别是:delete From Diagram(别的点完之后这个是disable的)和delete From ...

2009-07-23 09:48:43 148

原创 template

   <extension         point="org.eclipse.ui.editors.templates">      <contextType            name="java"            class="org.eclipse.jdt.internal.corext.template.java.JavaContextType"      ...

2009-05-22 18:11:04 97

原创 eclipse debug

JDIModelPresentationIDebugModelPresentation#getEditorInput方法得到editinput org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility#lookup方法里通过 if (presentation != null) {     edit...

2009-05-15 16:53:29 154

原创 org.eclipse.core.expressions.propertyTesters

   <extension point="org.eclipse.core.expressions.propertyTesters">      <propertyTester        id="org.eclipse.jdt.core.javaElementPropertyTester"        class="org.eclipse.jdt.interna...

2009-05-13 23:17:21 394

原创 给control加右键菜单

首先让某个类实现 IMenuListener 接口,这个是向邮件事件里加action可以采用如下实现    public void menuAboutToShow(IMenuManager menu) {        RemoveSelectColumnAction removeColumnAction = new RemoveSelectColumnAction(this);       ...

2009-04-08 09:15:15 321

原创 CellEditor

CellEditor的doSetValue的参数可能是行的对象也可能是CellEditor编辑后的值传行的对象的值的时候是为了设置CellEditor中要编辑的值,而编辑后的值是为了保存编辑后的值到CellEditor中,在对应的ICellModifier的modify中会用到。...

2009-04-02 16:43:32 293

原创 emf生成代码类型

同事上周问我个问题说为什么别的ecore文件生成的代码返回的是List,而他自己写的却生成EList,我也不知道为什么,今天debug一下代码生成那部分,在GenTypedElementImpl的public String getType(GenClass context)方法里设了断点,跟进去后发现GenModelImpl的isSuppressEMFTypes方法返回值觉得是返回List还是EL...

2009-03-27 16:13:39 143

原创 一些问题

下面都是从新闻组看到的一些东西,留作以后查看 1.could not creat linkOk. If "true" is returned from XXXCreateCommand.canExecute() then you can try placing a breakpont into XXXViewProvider.createEdge()(in past this meth...

2009-03-12 12:19:20 92

原创 自己好笨

做了一年rcp,一年下来没啥成果,可以说是学了一年,公司白养了我一年,还总对公司抱怨,挺不对的,绩效分4个等级,最后一个等级基本没人得到,我得到的是倒数第二,呵呵.今天做东西,业务不熟悉,忽然有种自己怎么什么都做不好的感觉,对压力的承受能力也忽然变的很弱,不知道为什么最近特别害怕压力,其实一年当中都是顶着压力过来的.自己做什么都没有个主见,今天领导问我对做的那个东西有什么想法,我回答说我业务不熟悉...

2009-01-09 17:10:37 152

rcp中新建工程没有图标解决方案

在rcp中(我的环境是eclipse3.4),有的时候需要建立工程,但是默认情况下建立的工程的图片显示不出来(包视图里出现这种情况,别的视图不清楚),这里拿新建java工程举例。 在获得图片的时候,程序会调用到org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider类的getBaseImageDescriptor方法,在2...

2008-12-27 22:05:42 174

原创 删除java文件

java的删除操作(org.eclipse.jdt.internal.ui.refactoring.reorg.DeleteAction)在CCPActionGroup里注册,如果文件在编辑器被修改,并且没保存会弹出RefactoringStatusDialog.删除文件的同时会构造一个UIPerformChangeOperation类,并执行executeChange方法,这时如果被删除的文件在...

2008-12-25 18:10:16 164

用java mail发送包含图片的html

代码都是复制粘贴的,东拼西凑,自己有小小加点东西一下,也不知道为啥就好使了. 因为一个同事做了件好事,天天通过邮件给大家发天气预报,不过图片不能正常显示,都是小红叉那种,所以心血来潮google了一下,真找到了一个例子,不过就是不好用,连邮件服务器都连不上.因为以前从来没弄过javamail,所以从官网上下个zip,里面有jar,还有doc和demo,所以直接把它里面的smtpsend搞出来,...

2008-12-12 19:32:03 113

在action中获得shell

今天要用到点右键的时候弹出一个向导窗口(WizardDialog),向导窗口的构造函数里有需要传个Shell,而在action里我不知道怎么得到Shell,所以小小研究一下.先把我的扩展点贴出来   <extension point="org.eclipse.ui.popupMenus">       <objectContribution          id="com....

2008-11-24 11:36:39 220

在eclipse里给文件夹换图标

前几天一个朋友说想把eclipse里的某些特殊文件夹图标换一下,不想用默认的.这里我就说一下怎么做,方法说出来很简单,在plugin.xml里实现org.eclipse.ui.decorators扩展点,如下 <extension point="org.eclipse.ui.decorators">         <decorator            id="com.x...

2008-11-20 14:13:36 830

gmf里的label汉字显示不全

昨天由于回去的早(晚上9点半到家),打开qq,一个网友问我他基于gef的编辑器里的label上的汉字移动之后汉字显示不全,而他又不给我看它所有的代码只给我一个类,然后我就搭建环境试了一下,然后我一试,在我这直接写里的汉字都显示不全,后来发现是需要在editpart里的refreshFont方法会调用setFont(FontData fontData),这里设置FontData的name为"宋体"就...

2008-11-14 08:45:34 118

将gmf图片放在文本之后

前两天一直在看gmf,这两天又看birt,关于gmf的很多东东都忘记了,所以今天又看看想把一些东西写出来,否则以后又得从头开始看了。因为要做一个图形编辑器,里面要有很多图片,而且图片要放在文本后面,比如一个html编辑器就需要有个文本框,而在文本框前面应该有文本信息,比如“姓名”。而在gmf中通过emf自动生成的都是先显示图片后显示文本,下了很多功夫也没研究出什么好方法,但还是对付实现了。默认情况...

2008-08-19 13:39:32 196

我的处女作:关于BIRT_2_3_0_RC1源代码构建后的一个问题

最近要做一个图形编辑器,弄了N久也没弄出来,后来看到可以根据birt的报表设计器改,改动是巨大的,其实说是改,还不如说拿它当例子,好熟悉一下gef,感觉收获很大,结合八进制的blog,看起来就不那么费劲了,但是在建立脚本数据库的时候总出现问题,改来改去,改来改去,搜索无数次咋就不好使呢,又debug了3天,终于发现了,事实上是好使的,因为自己构建出来的报表设计器比发布出来的插件对一页,也就是正常的...

2008-08-16 12:46:48 70

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除