如何删除同步视图中的破坏性操作?
我正在将 Subversive 0.7.8 集成到 Eclipse Platform 3.4.2 RCP 应用程序中。 我想删除(或禁用)“同步”视图的弹出菜单中的 SVN“提交”操作。 我该怎么办...?
感谢您的帮助。 JMD
I'm integrating Subversive 0.7.8 into an Eclipse Platform 3.4.2 RCP app.
I want to remove (or disable) the SVN "Commit" action in the popup menu of the "Synchronize" view.
How can I do ... ?
Thank you for your help.
JM.D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为什么你需要这样做?
难道你不能简单地让你的用户没有使用 svn 权限提交的权利吗?
Why would you need to do that ?
Can't you simply make it that your users don't have the right to commit using svn rights ?
有两种方法:要么更改 subversion 插件内的plugin.xml 文件以删除贡献(这意味着您必须保留自己的插件版本),要么您可以从平台中删除特定贡献。
在启动实际平台之前,删除通常发生在扩展 IApplication 接口的类中。
这基本上是一个 hack,但它可以让你做你想做的事,而无需接触 subversion 插件。我不知道贡献的名称(您必须在插件的源代码中查找它们),但代码如下所示:
Two ways: Either alter the plugin.xml files inside the plugins from subversion to remove the contributions (which means that you have to keep your own version of the plugins), or you can remove specific contributions from the platform.
The removal normally takes place in the class that extends the IApplication interface, before you launch the actual Platform.
This is basically a hack, but it will allow you to do what you want without touching the subversion plugins. I don't know the names of the contributions (You would have to look them up in the source code from the plugins) but the code looks like:
您当然应该查看活动。
You should certainly check out Activities.