[英]How to add custom item to properties dialog in Eclipse Problems View
我需要像這樣在Eclipse Problems View中的屬性對話框中添加自定義項:
我本來以為添加自定義列可以解決問題,但是顯然這是一個錯誤的主意。
我將不勝感激。 謝謝!
編輯:
畢竟,實際上有一種直接的方法-覆蓋MarkersPropertyPage:
public class MyMarkersPropertyPage extends MarkersPropertyPage{
@Override
protected Control createContents(final Composite parent)
{
final Composite c = (Composite) super.createContents(parent);
createCustomArea(c);
return c;
}
private void createCustomArea(final Composite parent)
{ // contribution
}
...並使用活動隱藏Eclipse:
<extension
point="org.eclipse.ui.activities">
<activity id="your.activity.id" name="disabledActivity">
</activity>
<activityPatternBinding
activityId="your.activity.id"
isEqualityPattern="true"
pattern="org.eclipse.ui.ide/org.eclipse.ui.ide.markerEntry">
</activityPatternBinding>>
</extension>
此屬性頁由org.eclipse.ui.internal.views.markers.MarkersPropertyPage
屬性頁提供。
查看MarkersPropertyPage
的來源,它不支持任何添加到頁面的方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.