eclipse
文章平均质量分 68
douya002
喜欢交朋友。
展开
-
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 · 147 阅读 · 0 评论 -
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 · 290 阅读 · 0 评论 -
删除java文件
java的删除操作(org.eclipse.jdt.internal.ui.refactoring.reorg.DeleteAction)在CCPActionGroup里注册,如果文件在编辑器被修改,并且没保存会弹出RefactoringStatusDialog.删除文件的同时会构造一个UIPerformChangeOperation类,并执行executeChange方法,这时如果被删除的文件在...原创 2008-12-25 18:10:16 · 175 阅读 · 0 评论 -
rcp中新建工程没有图标解决方案
在rcp中(我的环境是eclipse3.4),有的时候需要建立工程,但是默认情况下建立的工程的图片显示不出来(包视图里出现这种情况,别的视图不清楚),这里拿新建java工程举例。 在获得图片的时候,程序会调用到org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider类的getBaseImageDescriptor方法,在2...2008-12-27 22:05:42 · 181 阅读 · 0 评论 -
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 · 176 阅读 · 0 评论 -
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 · 116 阅读 · 0 评论 -
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 · 277 阅读 · 0 评论 -
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 · 127 阅读 · 0 评论 -
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 · 108 阅读 · 0 评论 -
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 · 202 阅读 · 0 评论 -
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 · 218 阅读 · 0 评论 -
终于成为eclipse的committer了
虽然以前也是committer,但是是个非常小的工程还是卵化期,代码都没放到eclipse上,现在终于成为pdt(php开发工具)的committer。加油!2010-03-16 16:33:07 · 512 阅读 · 0 评论 -
在action中获得shell
今天要用到点右键的时候弹出一个向导窗口(WizardDialog),向导窗口的构造函数里有需要传个Shell,而在action里我不知道怎么得到Shell,所以小小研究一下.先把我的扩展点贴出来 <extension point="org.eclipse.ui.popupMenus"> <objectContribution id="com....2008-11-24 11:36:39 · 231 阅读 · 0 评论 -
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 · 112 阅读 · 0 评论 -
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 · 158 阅读 · 0 评论 -
CellEditor
CellEditor的doSetValue的参数可能是行的对象也可能是CellEditor编辑后的值传行的对象的值的时候是为了设置CellEditor中要编辑的值,而编辑后的值是为了保存编辑后的值到CellEditor中,在对应的ICellModifier的modify中会用到。...原创 2009-04-02 16:43:32 · 305 阅读 · 0 评论 -
给control加右键菜单
首先让某个类实现 IMenuListener 接口,这个是向邮件事件里加action可以采用如下实现 public void menuAboutToShow(IMenuManager menu) { RemoveSelectColumnAction removeColumnAction = new RemoveSelectColumnAction(this); ...原创 2009-04-08 09:15:15 · 339 阅读 · 0 评论 -
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 · 388 阅读 · 0 评论 -
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 · 414 阅读 · 0 评论 -
eclipse debug
JDIModelPresentationIDebugModelPresentation#getEditorInput方法得到editinput org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility#lookup方法里通过 if (presentation != null) { edit...原创 2009-05-15 16:53:29 · 161 阅读 · 0 评论 -
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 · 109 阅读 · 0 评论 -
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 · 99 阅读 · 0 评论 -
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 · 261 阅读 · 0 评论 -
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 · 206 阅读 · 0 评论