- 浏览: 52747 次
- 性别:
- 来自: 沈阳
最新评论
-
imu2008:
嗯,此方法可用。好文。mark
rcp中新建工程没有图标解决方案 -
553563608:
今天也遇到这个问题了,,,,
这个方法可以解决。。。
rcp中新建工程没有图标解决方案 -
zhaozhongwei:
这个就不清楚了,我们也是两个文件啊。我很久没搞gmf了
关于gmf copy/paste 的解决方案 -
popjxc:
我下了你的代码,发现copy paste后,原来复制的是一个n ...
关于gmf copy/paste 的解决方案 -
赤道螞蟻:
你這不是用附件的方式傳的圖片嗎? 沒有什麽新招?
用java mail发送包含图片的html
<extension point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
id="org.eclipse.jdt.core.javaElementPropertyTester"
class="org.eclipse.jdt.internal.core.manipulation.JavaElementPropertyTester"
namespace="org.eclipse.jdt.core"
properties="name,isInJavaProject,isInJavaProjectWithNature,isOnClasspath,hasTypeOnClasspath,inSourceFolder,inArchive,inExternalArchive,projectOption"
type="org.eclipse.jdt.core.IJavaElement"/>
</extension>
用法:
<adapt type="org.eclipse.jdt.core.IJavaElement">
<test property="org.eclipse.jdt.core.isInJavaProject"/>
</adapt>
<enabledWhen>
<and>
<instanceof value="org.eclipse.jdt.core.IPackageFragmentRoot"/>
<not>
<test property="org.eclipse.jdt.core.inSourceFolder"/>
</not>
</and>
</enabledWhen>
JavaElementPropertyTester继承PropertyTester,实现test方法,被test的对象是第一个参数,property如isInJavaProject,inSourceFolder是第二个参数,第三个参数是参数,第四个参数是期望值,如:
<enabledWhen>
<adapt type="org.eclipse.core.resources.IProject">
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.jdt.core.javanature"/>
</adapt>
</enabledWhen>
里面的value是第四个参数
点右键出现的properties是通过org.eclipse.ui.propertyPages来扩展的
<extension point="org.eclipse.ui.commands">
<command
name="%ActionDefinition.stepIntoSelection.name"
description="%ActionDefinition.stepIntoSelection.description"
categoryId="org.eclipse.debug.ui.category.run"
id="org.eclipse.jdt.debug.ui.commands.StepIntoSelection">
</command>
</extension>
<extension point="org.eclipse.ui.bindings">
<key
sequence="M1+F5"
contextId="org.eclipse.debug.ui.debugging"
commandId="org.eclipse.jdt.debug.ui.commands.StepIntoSelection"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
</extension>
<action
class="org.eclipse.jdt.internal.debug.ui.actions.StepIntoSelectionActionDelegate"
definitionId="org.eclipse.jdt.debug.ui.commands.StepIntoSelection"
enablesFor="*"
helpContextId="step_into_selection_action_context"
id="org.eclipse.jdt.debug.ui.cuPopup.StepIntoSelection"
label="%stepIntoSelectionAction.label"
menubarPath="additions">
</action>
definitionId是commandId
codeassist与ContentAssistAction,ContentAssistant,CompletionProposalPopup,显示的是CompletionProposalPopup#fProposalShell
Using Fast Views in Eclipse RCP
In Adding the error view to RCP application one commenter asked how he could add a view as a fast view to an Eclipse RCP application.
To add views as fast view to your RCP application you have to do two things:
1.) Add your view as “fast” via the perspective extension point
2.) Activate the FastViewBar via the ApplicationWorkbenchWindow Advisor (configurer.setShowFastViewBars(true);)
package de.vogella.test; import org.eclipse.swt.graphics.Point; import org.eclipse.ui.application.ActionBarAdvisor; import org.eclipse.ui.application.IActionBarConfigurer; import org.eclipse.ui.application.IWorkbenchWindowConfigurer; import org.eclipse.ui.application.WorkbenchWindowAdvisor; public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { super(configurer); } @Override public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) { return new ApplicationActionBarAdvisor(configurer); } @Override public void preWindowOpen() { IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); configurer.setInitialSize(new Point(1024, 800)); configurer.setShowStatusLine(true); configurer.setTitle("Network Analyser"); configurer.setShowFastViewBars(true); } }
This should be sufficient to show your view in your RCP application in the fast view pane.
发表评论
-
How to Debug and Detect Deadlocks
2010-12-01 15:04 1014Deadlocks in 2 minutes ... -
Run FindBugs from your Eclipse RCP headless build
2010-12-01 14:53 985Running FindBugs from Eclipse R ... -
Markers and Annotations in Eclipse for Error Feedback(forward)
2010-12-01 14:39 1572Motto: Ninety per cent ... -
Testing declarative Eclipse expressions(forward)
2010-11-19 08:32 1045Our Eclipse-based product plugs ... -
Release engineer vs dependency management: Basing RCP Product and headless build
2010-11-02 23:32 843http://www.bonitasoft.org/blog/ ... -
Unit testing puzzle – How can I verify that System.exit() gets called?
2010-08-14 08:17 0Sounds strange – yes, very ... -
Invoking an Eclipse Wizard programmatically
2010-07-23 09:45 0Sometimes I find the need to ... -
A testing strategy for multiple inheritance in EMF generated code.
2010-07-23 09:12 0I recently became a comittter ... -
Can we build it? Yes we can!(FW)
2010-07-16 11:05 0Thomas Hallgren, Michal Ruzicka ... -
eclipse headless
2010-06-16 17:37 1462java -jar <eclipse-install ... -
Generating p2 meta data from command line
2010-06-11 12:08 791Many times when working with ... -
Opening files in Eclipse from the command line(转发)
2010-06-11 12:08 1196I ran a query to see all the ... -
http://cvalcarcel.wordpress.com/
2010-04-09 03:00 0http://cvalcarcel.wordpress.com ... -
HOWTO: Build Plugin & Feature Projects, Then Run Their Unit Tests w/ Tycho ::GEF
2010-04-03 14:30 01. Check out entire source tree ... -
Tip: How to Debug SWT components in Modal Dialogs(转发)
2010-04-03 14:22 0SWT and JFace components, and e ... -
action
2010-03-24 17:22 0这两天在改一个bug,跟action有关的,以前一直也没好好弄 ... -
SWT: Drop an Outlook Email(转发)
2010-03-18 14:43 1804I wanted to drop an outlook ema ... -
终于成为eclipse的committer了
2010-03-16 16:33 3152虽然以前也是committer,但是是个非常小的工程还是卵化期 ... -
Animated GIF in TableViewer
2010-03-02 12:23 0I'm quite attached to TableVie ... -
extend jdt with ot
2010-02-28 11:56 0extend jdt with ot http://blog ...
相关推荐
Eclipse-plugins 各种插件 .jar 包,免费下载 如果下载不了,关注我,评论区联系我
<PackageReference Include="Microsoft.OData.Core" Version="7.8.3" /> <PackageReference Include="Newtonsoft.Json" Version="11.0.2" /> <PackageReference Include="System.Collections.Concurrent" Version...
java9的正则表达式,是英文版的azw3格式,手机端使用kindle打开,pc端使用calibre软件打开
Z.Expressions.Eval 4.0.68 包含.net3.1和 .net6的支持。不需要key,去除限制。
亲测可用,没改任何源码,不嫌麻烦的童鞋可以下载源码,然后修改MANIFEST.MF文件Require-Bundle:下的 org.eclipse.core.expressions 把 bundle-version 改低(例如我把原来的3.4.200改成了3.4.200)保存之后右键项目...
Regular expressions are an extremely powerful tool for manipulating text and data. They are now standard features in a wide range of languages and popular tools, including Perl, Python, Ruby, Java, VB...
执行使用: make run失败于ClassCastException: org.apache.spark.sql.catalyst.expressions.UnsafeArrayData cannot be cast to org.apache.spark.sql.catalyst.InternalRow当不使用单独的注册器时。 按照建议进行...
The bad news is that for too long, regular expressions have been the exclusive property of only the most tech savvy. Until now. Ben Forta's Learning Regular Expressions teaches you the regular ...
Wrox.Beginning.Regular.Expressions.Feb.2005.rar
C#写的linq表达式序列化等功能的源码。
该资料是开发人员了解正则表达式的必读,讲述了正则表达式的基础,以及在各种不同语言中的应用实例
Z.Expression是一个开源的(OpenSource),可扩展的(Extensible),基于java语言开发的一个超轻量级(Super lightweight)的公式化语言解析执行工具包。
Contents Contents ii List of Tables x List of Figures xiv 1 Scope 1 2 Normative references 2 3 Terms and definitions 3 4 General principles 7 4.1 Implementation compliance . ....4.2 Structure of this ...
3.7 Learn to Inspect Data: Variables and Expressions . . . . 29 3.8 A Debug Session on a Simple Example . . . . . . 30 4 Fixing Memory Problems . . . . . . . . . . . . 33 4.1 Memory Management in C/...
Oracle.Regular.Expressions.Pocket.Reference
Sun 官方 J2ee 5.0 教程 The Java EE 5Tutorial For Sun Java System Application Server 9.1 Contents Preface ..................................................................................................
An example-filled guide to the Java programming language and core APIs. Java Technology Home Page Training for the Java programming language Directory of various training resources. Demonstration ...
欢迎使用nanoFramework System.Text.RegularExpressions存储库!建置状态成分建置状态NuGet软件包System.Text.RegularExpressions System.Text.RegularExpressions(预览) 重要提示:此正则表达式解析器将满足您的...
Contents Contents iii List of Tables xi List of Figures xv 1 General 1 1.1 Scope . . . . ....1.2 Normative references ....1.3 Terms and definitions ....1.4 Implementation compliance ....1.5 Structure of this ...