Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Contibutions(Extension) to MarkersView in eclipse 4
Contibutions(Extension) to MarkersView in eclipse 4 [message #1004194] Tue, 22 January 2013 19:17 Go to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 193
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

Re: Contibutions(Extension) to MarkersView in eclipse 4 [message #1004235 is a reply to message #1004194] Tue, 22 January 2013 21:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5462
Registered: July 2009
Senior Member
File a bugzilla please.

Tom

Am 22.01.13 20:17, schrieb Rui Domingues:
> 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.sinfic.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
Re: Contibutions(Extension) to MarkersView in eclipse 4 [message #1004499 is a reply to message #1004235] Wed, 23 January 2013 10:59 Go to previous message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 193
Registered: October 2010
Senior Member
Done. https://bugs.eclipse.org/bugs/show_bug.cgi?id=398868
Thanks
Previous Topic:Eclipse Preferences Import Export
Next Topic:Model Menu replaced by 3.x contributed menu
Goto Forum:
  


Current Time: Sat Nov 22 16:55:34 GMT 2014

Powered by FUDForum. Page generated in 0.02157 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software