如何识别项目(Eclipse)的类型(RCP 或其他),以查看代码?

huangapple go评论153阅读模式
英文:

How to identify a project (eclipse) type (RCP or other) to look at the code?

问题

请您耐心等待,如果我的问题听起来很糟糕。

我正在处理一个项目(Java Eclipse),我在办公室的笔记本电脑上有代码库,它能正常运行,现在我需要进入代码/项目,以便在需要时进行修改。

我能够编写Java代码(中级水平),但在Eclipse方面我是个初学者,特别是Eclipse应用程序/插件方面。

我花了很多时间阅读/观看不同的Eclipse教程(比如vogella、o7planning、help.eclipse等),但对于所有这些不同的内容,如RCP、SWT/jFace、Java GUI、WindowBuilder等感到困惑。

我需要知道“这个”(我正在工作的项目)是如何启动的?它是一个Eclipse RCP项目吗?看起来像是一个RCP项目,但没有OSGi,

以下是它拥有的一些内容(除了.java、JRE库、插件依赖之外):

META-INF、build.properties、一个产品文件、一个启动文件、H2连接、一个plugin.xml

从用户的角度来看,这个程序有几个菜单、视图,

我能够在WindowBuilder编辑器中打开一些视图(并非所有视图/菜单)

一些Java类被命名为handler(部分名称)。

有什么建议(阅读材料)可以帮助我完全理解如何开始处理这个项目?

是否有任何方法可以复制整个项目(使用我已经拥有的所有代码/Java文件)?

英文:

Please bear with me, if my question sounds bad.

I am working with a project (java eclipse), I had the code base in my office laptop, it works fine, now I need to get inside the code/project so that I can modify when needed.

I can code in java (intermediate level), but I am a beginner at eclipse stuff, specially eclipse application/plugins.

I am spending lots of time reading/watching different tutorials on eclipse (like vogella, o7planning, help.eclipse, etc.) but got confused on all these different stuff, RCP, SWT/jFace, Java GUI, windowbuilder, etc.

I need to know How "this" (my project that I'm working) got started? Is it a eclipse RCP? seems like a RCP, but there is no OSGi,

Here is a list of what it has (other than .java, JRE library, Plug-in dependencies),

META-INF, build.properties, a product file, a launch, h2 connectivity, a plugin.xml

From user point of view, this program has several menus, views,

I was able to open some views in windowbuilder editor (not all views/menus)

some java classes named as handler (part of name).

Any suggestions (reading materials) how to start with this project to understand it completely will be really helpful.

Is there any way to reproduce the whole project (using all the codes/java files that I already have)?

答案1

得分: 1

一种进行逆向工程的方法是查看 plugin.xml 文件。

vogella 是一个很好的教程,您将在其中找到所有主要的 Eclipse RCP 相关教程。

您提到了菜单,可以查看您的 plugin.xml 文件,您将找到 org.eclipse.ui.menus 扩展和相关的处理程序。
https://www.vogella.com/tutorials/EclipseCommands/article.html

您的插件项目是否包含 .xtend 文件,请参阅 https://www.eclipse.org/xtend/documentation/101_gettingstarted.html

您的插件项目是否包含 xtext 文件,请参阅 DSL
https://www.eclipse.org/Xtext/documentation/102_domainmodelwalkthrough.html

英文:

One way to do reverse engineering is by going through plugin.xml.

vogella is a good tutorial you will find all major eclipse rcp related tutorials.

You mentioned menu go through your plugin.xml you will find org.eclipse.ui.menus extension and associated handlers.
https://www.vogella.com/tutorials/EclipseCommands/article.html

Do your plugin project contains.xtend files go through https://www.eclipse.org/xtend/documentation/101_gettingstarted.html

Do your plugin project contains xtext files go through DSL
https://www.eclipse.org/Xtext/documentation/102_domainmodelwalkthrough.html

huangapple
  • 本文由 发表于 2020年4月9日 23:30:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/61124705.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定