Eclipse
文章平均质量分 53
lantianjialiang
这个作者很懒,什么都没留下…
展开
-
anltr中的Lexing和Parsing
用anltr来写DSL的时候,需要注意的是它在解析DSL语法的时候分为两个阶段。Lexing和ParsingLexing就是把Input分割成一个一个的TokenPasing就是把从Lexing得到的Token构建成一个语法树如果我们在写语法的时候写出一下的语法:input: ID ';';ID : [a-zA-Z]+ ; NAME : [a-zA-Z0-9]+ ; 这个语法...原创 2019-06-13 13:01:48 · 572 阅读 · 0 评论 -
如何在给Eclipse安装插件
http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropinshttp://www.venukb.com/2006/08/20/install-eclipse-plugins-the-easy-way/https://www.ibm.com/developerworks/library/os-echelp/转载 2014-03-25 10:19:40 · 606 阅读 · 0 评论 -
没有经验三天开发一个Android app(第二天 demo级)
第二天就是你要做的app的实现了。我想做的app是短信群发,这个app要有功能:1. 分组功能,组可以增加,删除,重命名,给组中追加联系人/删除联系人;2. 短信可以发给某一个分组或者所有的联系人,在发送短信之前要加上联系人的名字;3. 分组信息要持久化从需求来看这里比较重要的就是获得联系人信息和发送短信;然后google android get all conta原创 2014-02-25 10:46:06 · 2020 阅读 · 0 评论 -
没有经验三天开发一个Android app(第一天 demo级)
上次朋友推荐我去西安华为终端,然后HR打电话和我聊,问我有没有Android的开发经验,我说没有,然后就没有给我面试机会。这里我很是不忿,为什么没有相关的经验,就不能做相关的事情呢?当然我承认没有经验的别有经验的人在刚开始干活的时候,会有差别,但是难道经验是万能的,难道跨界这么难?我在这里说三天开发一个app,不是想说明Android开发很简单,也没有黑华为的意思。只是想说明相原创 2014-02-25 10:15:31 · 3269 阅读 · 1 评论 -
Eclipse 是如何启动的
我测试的Eclipse版本是4.2,低版本的没有测试过。1. rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c会编译成Linux下的eclipse可执行文件或者Windows下的eclipse.exe,它只是来完成对eclipse.ini的解析,同原创 2013-11-14 17:38:29 · 1972 阅读 · 0 评论 -
Eclipse p2是什么
Eclipse p2Equinox p2 is a component of the Equinox project. p2 provides a provisioning platform(安装和管理plugin) for Eclipse-based applications.http://wiki.eclipse.org/Equinox_p2http://wiki.eclipse.转载 2013-11-14 17:44:32 · 6828 阅读 · 0 评论 -
Eclipse 4.x中Command是如何映射到Handler的
1. Eclipse中的Command模式,使得具体的实现和Command定义分离,便于维护。但是在Debug的时候,或者没有souce code的时候,我们想知道每一个commandId对应的Handler是什么,怎么办?2. 在Eclipse 4.x中,其实当Eclipse启动完成后,它已经创建了commandId和对应Handler的Map,保存在EclipseContext中,原创 2013-11-21 15:16:28 · 1556 阅读 · 0 评论 -
Eclipse 3.X的selection机制
1. 要想搞清楚Eclipse的selection机制,首先要对Eclipse的WorkBench和它的结构有一个清晰的认识。下面是我画的一张图,原图在这里:http://www.eclipse.org/articles/Article-UI-Workbench/workbench.html一般来说WorkBench有一个WorkBenchWindow,一个WorkBenchWindo原创 2013-11-20 11:31:17 · 1389 阅读 · 0 评论 -
Eclipse JDT的Index机制
1. Index是什么?JDT的Index目的是为了快速的查找变量,方法,构造函数,引用等位置的机制。如下图,当我们在JDT中使用我框起来的功能时,都是Index机制在为我们服务。2. Index保存在哪里?Index的保存路径一般在:.metadata/.plugins/org.eclipse.jdt.core以下是我的机器上的输出:/home/test/ru原创 2013-11-18 11:03:34 · 1542 阅读 · 0 评论 -
如何获得eclipse的soure code的git地址
首先在http://git.eclipse.org/c/上找到自己需要的git,然后将地址中的http://git.eclipse.org/c/ 替换成http://git.eclipse.org/gitroot/就可以了。例如:rt.equinox.framework.githttp://git.eclipse.org/c/equinox/rt.equinox.framework.git原创 2013-11-14 17:43:14 · 810 阅读 · 0 评论 -
eclipse的JDT的hover是如何显示出来的
1.什么是JDT的hover。见下图:2. hover中的不同的字体,和颜色是如何显示出来的。其实在对应的hover中,返回的是String类型,内容是html,然后通过org.eclipse.swt.browser.Browser显示出来的。3.工作原理:3.1 add MouseTracker to current SourceViewer, when you open原创 2013-10-22 14:26:04 · 1576 阅读 · 4 评论 -
启动eclipse时指定jdwp参数
通过命令行:-vmargs -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:8300通过eclipse.ini file:-vmargs-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:8300htt转载 2013-09-06 16:08:30 · 1269 阅读 · 0 评论 -
one great batch replace copy right(source file header) eclipse plugins
replace copy rightupdate site:http://www.wdev91.com/update/http://www.wdev91.com/?p=cpw_ug转载 2013-08-28 16:30:39 · 798 阅读 · 0 评论 -
Eclipse 正式支持Java 8
现在的Eclipse对Java 8的支持需要自己下载插件,见网址:http://www.eclipse.org/downloads/java8/在转载 2014-04-10 10:48:07 · 812 阅读 · 0 评论 -
Eclipse的preference的位置
Eclipse的preference位置一般在workspace目录下面的:原创 2014-05-26 09:43:42 · 7598 阅读 · 0 评论 -
config perl ide for Eclipse
perl ide:install active perlppm install PadWalkerinstall jdk/jreinstall eclipseinstall Perl-EPIChttp://www.epic-ide.org/updates原创 2019-06-12 14:39:28 · 197 阅读 · 0 评论 -
Xtext的parser过程
Basically parsing can be separated in the following phases.LexingParsingLinkingValidationThere are four different possible cardinalities:exactly one (the default, no operator)zero or one ...转载 2018-07-20 10:22:12 · 232 阅读 · 0 评论 -
怎样修改xtext的model
怎样修改xtext的model方法一:直接使用INode的方法,拿到对应节点的的偏移量,从而决定插入位置,然后通过直接操作文件的方式来修改文件和保存(需要注意的是,这里要注意format的问题),然后让Xtext的builder来进行自动编译,编译完成后会生成新的model方法二:直接使用INode的方法,拿到对应节点的的偏移量,从而决定插入位置,然后XtextReousrce的updat...原创 2018-07-20 10:18:49 · 166 阅读 · 0 评论 -
Eclipse 4 related
List<MToolBar> toolbarElements = modelService.findElements(application, MToolBar.class, EModelService.ANYWHERE | EModelService.IN_PART, new Selector() { ...原创 2018-07-24 16:23:13 · 287 阅读 · 0 评论 -
how to export eclipse RCP for multiple platforms
1. First, you need write your RCP in Eclipse and make sure it can run successful2. Using below step to install the dependency of other platformsThis is works not only with the Mars release, but ...转载 2018-02-09 16:50:38 · 435 阅读 · 0 评论 -
how eclipse CDT find the include and macro
eclipse CDT find the include and macro from below two method: 1. Built-in Settings. CDT will try to detect built-in compiler symbols and include paths running the compiler with special options and pa转载 2017-04-19 09:46:03 · 272 阅读 · 0 评论 -
如何使用.options文件来debug Eclipse的插件
1.首先你要在你的插件根目录下,创建一个.options的文件里面的内容如下:com.example.youcompany.ui/debug=false就是你的plugin名字/debug,或者任何你自己定义的debug名字。2.在你的code中使用如下代码来做debug的输出: private boolean isDebugEnabled() { i原创 2015-01-07 09:46:41 · 994 阅读 · 0 评论 -
如何迁移eclipse的配置信息
最简单的方法就是在将eclipse 的我rkspac原创 2014-10-31 13:34:27 · 1676 阅读 · 0 评论 -
EMF中的containment reference和 non containment reference分别是什么
containment reference:简单的说就是在EReference中的containmentbianl转载 2014-10-01 11:45:15 · 1048 阅读 · 0 评论 -
Xtext是什么
在Xtext的官网中是这样说的“Building your own domain-specific languages has never been so easy. Just put your grammar in place and you not only get the working parser and linker but also first class Eclipse sup原创 2014-10-01 09:25:34 · 3405 阅读 · 0 评论 -
什么是 Eclipse Compiler for Java (ECJ)
An incremental Java compiler. Implemented as an Eclipse builder, it is based on technology evolved from VisualAge for Java compiler.In particular, it allows to run and debug code which still contains转载 2014-09-03 15:04:53 · 1704 阅读 · 0 评论 -
在Eclipse中使用picasso
1. 什么是picasso?它是Eclipse的插件,用来debugSW原创 2014-05-26 09:47:46 · 1459 阅读 · 0 评论 -
how to using jira in eclipse
1. enable rpc plugin in serverhttps://developer.atlassian.com/display/JIRADEV/Enabling+the+RPC+pluginhttps://confluence.atlassian.com/display/IDEPLUGIN/Installing+the+Eclipse+Connector2. ins原创 2013-08-28 16:18:23 · 666 阅读 · 0 评论 -
编译Java时的debug信息对class文件大小的影响
-rw-rw-r-- 1 jialiang users 107 Jul 22 11:20 Bar.java[jialiang@root java_debug_flag]$ javac -g:none Bar.java[jialiang@root java_debug_flag]$ ls -orttotal 8-rw-rw-r-- 1 jialiang 107 Jul 22 11:2原创 2013-07-24 09:42:49 · 1214 阅读 · 0 评论 -
eclipse中的feature
Feature are the management unit for function in Eclipse.The plug-in developer should not share plug-in without a feature; as a consumer of plug-insyou should demand that they be packaged using fea转载 2012-10-17 15:46:59 · 1479 阅读 · 0 评论 -
重用eclipse中的preference
You can manager preference in two approaches.1. export/import preferences1.1 setting preferences in eclipse1.2 export preferences1.3 import preferences2.using -pluginCustomization argume转载 2012-10-17 15:50:27 · 1167 阅读 · 0 评论 -
eclipse中的configuration
Be default, Eclipse uses a single configuration for a given installation. Theconfiguration information is saved in the platform.xml file found in the\configuration\org.eclipse.update dirctory. The转载 2012-10-17 15:44:45 · 3425 阅读 · 0 评论 -
eclipse中的plugin.xml和plugin.properties没有关联起来
检查 MANIFEST.MF文件是否包含"Bundle-Localization: plugin" ,没有的话,就表示两种没有关联起来;http://stackoverflow.com/questions/1831117/what-is-the-osgi-bundle-package-structure常用的OSGi Manifest header:http://wiki.osgi原创 2011-11-10 10:32:23 · 636 阅读 · 0 评论 -
eclipse相关的杂项(图标,获得源码,定制,启动选项等)
eclipse中的Application = Plugins + PlatformIDE = PDE + RCPeclipse icon:http://eclipse-icons.i24.cc/http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.ui/icons/full/how to get eclipse原创 2011-11-10 10:11:23 · 488 阅读 · 0 评论 -
如果eclipse workbench是空
eclipse workbench is null:just use this line:this.getSite().getPage()refs: http://wiki.eclipse.org/FAQ_How_do_I_find_the_active_workbench_page%3F转载 2012-03-30 16:57:14 · 655 阅读 · 0 评论 -
SWT的PaintListener
给swt中的control追加Paintlistener,listener被调用的先后顺序和Control被布局(不包括父子关系)的先后顺序有关;每个Control 都在org.eclipse.swt.widgets.Display类中的变量:Control [] controlTable; 按照被布局的先后顺序被组织起来;在调用PaintListener时,Control已经有size了原创 2011-11-10 10:36:54 · 1119 阅读 · 0 评论 -
定制eclipse的about对话框
如何将自己plugins的图标放到eclipse的about dialog中去:1. 新建一个feature工程,然后将你的plugins加到其中去;2. 新建一个工程,在该工程中创建about.ini,自己的icon和about.html等文件,并将它们加入到build.properties; 或者将about.ini,自己的icon和about.html等文件放到自己的plug原创 2011-11-10 09:57:18 · 793 阅读 · 0 评论 -
deploy eclipse plugin
deploy eclipse plugin:1. Left click you plugin project, select "Export...";2. In Select page, select "Deployable plug-ins and fragments", click Next;3. Choose the directory which you want to sav原创 2011-11-08 17:21:47 · 595 阅读 · 0 评论 -
xpath eclipse plugin
Hi gays我写了一个简单的eclipse plugins,欢迎大家使用和围观。地址是:http://code.google.com/p/xpath/原创 2011-11-08 17:21:07 · 567 阅读 · 0 评论 -
How selection changed when select difference part in eclipse
One Part One Site, One Site One SelectionProvider, When you switch between difference views or editors, the Part changed, so the SelectionPr原创 2011-10-14 16:44:11 · 372 阅读 · 0 评论