I need to add custom item to properties dialog in Eclipse Problems View like this:
I originally thought that adding custom column will do the trick, but obviously it was a wrong idea.
I will be grateful for any ideas. Thanks!
EDIT:
Actually there is a straightforward way how to do it after all - overriding 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
}
...and hide the Eclipse one using activities:
<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>
This property page is provided by the org.eclipse.ui.internal.views.markers.MarkersPropertyPage
property page.
Looking at the source of MarkersPropertyPage
it does not support any way to add to the page.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.