简体   繁体   English

使用SVN存储库开发Eclipse插件

[英]Eclipse plugin development using SVN repository

I'm developing an Eclipse pluging which is executed when I right clik on a project in Project Explorer view and choose my option in the menu. 我正在开发一个Eclipse插件,当我在Project Explorer视图中右键单击项目并在菜单中选择我的选项时执行。 The thing is that I need to get location of the selected project in the svn repository. 问题是我需要在svn存储库中获取所选项目的位置。 When you right click on any project and go to Properties there is always SVN Info listed, where I can also see the Resource URL. 当您右键单击任何项​​目并转到属性时,将始终列出SVN信息,其中我还可以看到资源URL。 Do you know any way to get it programatically? 你知道以任何方式编程吗?

Thanks in advance for your help and commitment. 在此先感谢您的帮助和承诺。

The Plug-In Selection Spy can be used to find out what code implements the currently active element within Eclipse. Plug-In Selection Spy可用于查找Eclipse中当前活动元素的代码。

For example open the Project Properties window and select the "Subversion" element (this is present for me as I have Subclipse installed). 例如,打开Project Properties窗口并选择“Subversion”元素(这对我来说是因为我安装了Subclipse)。 This displays a Properties page which includes the repository URL. 这将显示包含存储库URL的“属性”页面。 Press Alt+Shift+F1 and you will get a popup listing the code which provided that page. 按Alt + Shift + F1,您将看到一个弹出列表,其中列出了提供该页面的代码。

间谍截图

If you open org.tigris.subversion.subclipse.ui.properties.SVNPropertyPage (getting the source from the Subclipse site if you don't have it) you can start trying to work out where it gets the repository URL from. 如果你打开org.tigris.subversion.subclipse.ui.properties.SVNPropertyPage(如果你没有它从Subclipse站点获取源代码),你可以开始尝试找出它从哪里获取存储库URL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM