任何已知问题/ bugs与objectContribution(弹出)到CVS历史视图?它不工作 [英] Any known problems/bugs with objectContribution (popup) to CVS History view? It's not working

查看:103
本文介绍了任何已知问题/ bugs与objectContribution(弹出)到CVS历史视图?它不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道有关Eclipse CVS历史记录的任何问题或报告的错误,不会为<$​​ c $ c> objectClass =org.eclipse.team.internal.ccvs.core.ILogEntry?



我在plugin.xml中定义了一个弹出窗口,它根本没有显示。同样的弹出窗口在Eclipse 3.0.2
中没有问题的工作这是plugin.xml中的弹出式定义:

  < extension point =org.eclipse.ui.popupMenus> 
< objectContribution
objectClass =org.eclipse.team.internal.ccvs.core.ILogEntry
id =cvshistory>
< action
label =Pasar Recursos aIntegración
icon =pai.gif
tooltip =Pasa los recursos seleccionados aintegración
class = com.xxxxx.plugins.pai.actions.HammerPAIAction
enabledFor =1
id =action2>
< / action>
< / objectContribution>
< / extension>

我试图更改 org.eclipse.team.internal.ccvs .core.ILogEntry org.eclipse.team.ccvs.core.ILogEntry 具有相同的结果。



我正在使用IBMRational®Application Developer™forWebSphere®Software 7.5.4,其中包括Eclipse 3.4.2(Eclipse插件开发环境,PDE,3.4.2.R342_v20090122)



谢谢。






[更新1 ]它似乎Eclipse 3.2是破坏我的插件弹出窗口的第一个版本,所以我正在阅读引入的更改以尝试找到问题。
BTW,CVS历史记录在此Eclipse版本中重新设计。



[更新2 ]确定,我发现将objectClass从 org.eclipse.team.internal.ccvs.core.ILogEntry 更改为 org.eclipse.team.internal.ccvs .core.filehistory.CVSFileRevision 做魔术,现在弹出窗口显示,但是当它被调用时,它不工作:-(
我想我将需要更改一些

解决方案

OK,问题已经消失了。



看起来,由于<3.2> 需要向历史记录视图提供弹出菜单的objectClass是 org.eclipse.team.internal.ccvs.core .filehistory.CVSFileRevision 所以在plugin.xml文件中更改它,使弹出窗口再次出现。



它需要我的Action类中的一些新代码为了认识到这个新课程:

  if(ne xt instanceof CVSFileRevision){
resources.add(((CVSFileRevision)next).getCVSRemoteFile());
}

因为否则我每次调用我的操作时都会收到下一个隐含的错误: / p>

alt text http:// img443.imageshack.us/img443/4396/pluginerror.png



所以,如果没有其他人的帮助,声誉应该去解决这个问题:-D


Do you know of any problems or reported bugs with the Eclipse CVS history not showing a contributed popup for objectClass="org.eclipse.team.internal.ccvs.core.ILogEntry" ?

I've a popup defined in the plugin.xml and it's not showing at all. The same popup is working without problems in Eclipse 3.0.2 Here is the popup definition at plugin.xml:

<extension point="org.eclipse.ui.popupMenus">
   <objectContribution
            objectClass="org.eclipse.team.internal.ccvs.core.ILogEntry"
            id="cvshistory">
         <action
               label="Pasar Recursos a Integración"
               icon="pai.gif"
               tooltip="Pasa los recursos seleccionados a integración"
               class="com.xxxxx.plugins.pai.actions.HammerPAIAction"
               enablesFor="1"
               id="action2">
         </action>
   </objectContribution>
</extension>

I've tried to change org.eclipse.team.internal.ccvs.core.ILogEntry to org.eclipse.team.ccvs.core.ILogEntry with the same result.

I'm using IBM Rational® Application Developer™ for WebSphere® Software 7.5.4 which includes Eclipse 3.4.2 (Eclipse Plug-in Development Environment, PDE, 3.4.2.R342_v20090122)

Thanks.


[UPDATE 1] It seems Eclipse 3.2 was the first version to broke my plugin popup, so I'm reading the changes introduced to try to find the problem. BTW, the CVS History was redesigned in this Eclipse version.

[UPDATE 2] OK, I found that changing the objectClass from org.eclipse.team.internal.ccvs.core.ILogEntry to org.eclipse.team.internal.ccvs.core.filehistory.CVSFileRevision do the magic and, at less, the popup now is shown, but when It's called, it's not working :-( I think I will need to change some code to adapt the plugin to the CVSFileRevision class.

解决方案

OK, the problems have gone.

It seems that since Eclipse 3.2 the objectClass needed to contribute a popup menu to the History view is org.eclipse.team.internal.ccvs.core.filehistory.CVSFileRevision so changing it in the plugin.xml file enabled the popup again.

It needed some new code in my Action class in order to recognize that new class:

if (next instanceof CVSFileRevision) {
   resources.add(((CVSFileRevision)next).getCVSRemoteFile());
}

Because otherwise I was getting the next cryptic error everytime I invoked my action:

alt text http://img443.imageshack.us/img443/4396/pluginerror.png

So, reputation should go to me for solving the question without other people help :-D

这篇关于任何已知问题/ bugs与objectContribution(弹出)到CVS历史视图?它不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆