Contibutions(Extension) to MarkersView in eclipse 4 [message #1004194] |
Tue, 22 January 2013 19:17 |
Rui Domingues Messages: 194 Registered: October 2010 |
Senior Member |
|
|
I've done an extension to markersuport :
<extension
point="org.eclipse.ui.ide.markerSupport">
<markerContentGenerator
id="custommarkergenerator"
name="Agora Products Marker Generator">
<markerTypeReference id="org.eclipse.core.resources.marker"/>
<markerFieldReference id="org.eclipse.ui.ide.severityAndDescriptionField"/>
<!--markerFieldReference
id="org.eclipse.ui.ide.markerType"/>
<markerFieldReference
id="org.eclipse.ui.ide.priorityField"/>
<markerFieldReference
id="org.eclipse.ui.ide.resourceField"/-->
</markerContentGenerator>
</extension>
Now in eclipse 4, with compatibility view I'm able to render org.eclipse.ui.views.ProblemView, with class URI = bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView, however it doesnt render my extended view :
<extension
point="org.eclipse.ui.views">
<category
name="Diagram Problems"
id="problems">
</category>
<view
allowMultiple="false"
category="propertiesview"
class="custommarkers.views.CustomMarkersView"
icon="icons/marker.view.png"
id="markers.customMarker"
name="Problemas"
restorable="true">
</view>
</extension>
The implementation is:
public class CustomMarkersView extends org.eclipse.ui.views.markers.MarkerSupportView{
public static final String ID = "markers.customMarker"; //$NON-NLS-1$
public CustomMarkersView() {
super("custommarkergenerator");
}
}
It only turns an error : Could not create the view: markers.customMarker, but doesnt point any direction, no stack. Anyone knows the right way to put this in right path?
Thanks in advance
[Updated on: Tue, 22 January 2013 19:19] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03665 seconds