Mylyn Trac 连接器不显示“严重性”查询编辑器中的属性
我们最近决定开始在 Trac 项目中使用 Severity
字段。但是,我无法找到一种方法使该字段出现在 Eclipse 的 Mylyn 插件的查询编辑器中 - 无论我尝试什么,该字段都不在那里。
它确实显示在 Web 界面中,如果我在 Mylyn 中打开一个任务,我可以在那里设置严重性(因此在某些时候 Mylyn 确实了解该属性正在被使用),但它并没有出现在查询对话框中。
我已
- 确保所有任务都有一个严重性集。
- 重新启动 Eclipse
- 与存储库同步
- 多次点击“从存储库更新属性”
- 重新安装 Mylyn
但没有成功。还有什么可以尝试的?
澄清:这与编辑工单无关。这是关于从存储库中查询票证,使用任务列表中的右键单击->; “新查询...”。
这就是我看到的表单的样子:
我也希望在某处有一个用于表示严重性的字段。
We recently decided to start using the Severity
field in our Trac project. However, I can't figure out a way to make the field appear in the query editor for the Mylyn plugin to Eclipse - whatever I try, the field is not there.
It does show up in the web interface, and if I open a task in Mylyn I can set a severity there (so at some point Mylyn does understand that the attribute is being used) but it doesn't appear in the query dialog.
I have
- Made sure all tasks have a severity set.
- Restarted Eclipse
- Synchronized with the repository
- Hit "Update attributes from repository" several times
- Reinstalled Mylyn
without success. What more is there to try?
Clarification: This is not about editing tickets. It's about querying tickets from the repository, using right-click in the task list -> "new query...".
This is what the form I see looks like:
I want a field for the severity in there somewhere too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须获取 TracQueryPage.java 的源代码并添加“严重性”列表。
http://grepcode.com/file/repository.grepcode.com/java/eclipse.org/3.6.2/org.eclipse.mylyn.trac/ui/3.4.2/org/eclipse/ mylyn/internal/trac/ui/wizard/TracQueryPage.java?av=f
在 Eclipse 中创建一个空插件项目(例如名为 trac-connector-patch)
在插件文件夹中找到org.eclipse.mylyn.trac.ui_3.6.0.v20110608-1400.jar并将MANIFEST.MF复制到插件项目的 META-INF 文件夹。删除所有以“Name:”和“SHA1-Digest:”开头的行,然后将 Bundle-Symbolic-Name 更改为
Bundle-SymbolicName: org.eclipse.mylyn.trac.ui-patched;singleton:=true
复制TracQueryPage.java 的源代码放入源文件夹中
src\org\eclipse\mylyn\internal\trac\ui\wizard\TracQueryPage.java
修复项目构建路径:
修改 TracQueryPage
现在您已准备好路径插件 jar(例如 org.eclipse.mylyn.trac.ui_3.6.0.v20110608-1400.jar):
将插件替换为已修补的插件。然后重新启动 eclipse。
或者下载已修补的插件:http://franke.ms/download/org.eclipse.mylyn.trac.ui_3.6.0.v20110608-1400-patched.zip
You have to obtain the source for the TracQueryPage.java and add the list for "severity".
http://grepcode.com/file/repository.grepcode.com/java/eclipse.org/3.6.2/org.eclipse.mylyn.trac/ui/3.4.2/org/eclipse/mylyn/internal/trac/ui/wizard/TracQueryPage.java?av=f
Create an empty plugin project in Eclipse (e.g. named trac-connector-patch)
Locate the org.eclipse.mylyn.trac.ui_3.6.0.v20110608-1400.jar in the plugin folder and copy the MANIFEST.MF to the plugin project's META-INF folder. Remove all lines starting with "Name:" and "SHA1-Digest:", then change Bundle-Symbolic-Name to
Bundle-SymbolicName: org.eclipse.mylyn.trac.ui-patched;singleton:=true
Copy the source for TracQueryPage.java into the source folder as
src\org\eclipse\mylyn\internal\trac\ui\wizard\TracQueryPage.java
Fix the projects build path:
Modify the TracQueryPage
Now you are ready to path the plugin jar (e.g. org.eclipse.mylyn.trac.ui_3.6.0.v20110608-1400.jar):
Replace the plugin with your patched plugin. And restart eclipse.
Or download an already patched plugin: http://franke.ms/download/org.eclipse.mylyn.trac.ui_3.6.0.v20110608-1400-patched.zip
查看代码,似乎无法根据严重性进行查询。您可能需要在 https://bugs.eclipse.org/bugs 上提出功能请求。如果您提供补丁就更好了。 :)
Looking at the code, it appears it is not possible to query based on severity. You may want to open a feature request at https://bugs.eclipse.org/bugs. Even better would be if you provided a patch. :)
它在表单编辑器中没有带标签的字段,但名称旁边有一个图标。单击该图标您可以定义严重性。
It does not have a labeled field in the form editor, but there is an icon next to the name. Clicking on that icon you can define the severity.