Community
Participate
Working Groups
Build ID: M20080911-1700 In the Problems view I have an error which 'Location' is the name of a file instead of a line number. If I open the QuickFix window it displays 'Unknown' in the 'Location' column instead of the file name, as it is showed in the problems view. I think the error is in org.eclipse.ui.internal.views.markers.QuickFixPage class. There, in createMarkerTable(Composite control) method, when creating a new ITableLabelProvider, you are getting the column text using IMarker.LINE_NUMBER instead of IMarker.LOCATION, which I guess would be the correct attribute.
Hitesh, send this back if it's not a Markers issue...
(In reply to comment #0) > Build ID: M20080911-1700 > > In the Problems view I have an error which 'Location' is the name of a file > instead of a line number. > This is the correct behaviour. If a marker has IMarker.LOCATION attribute set then this is used in preference to IMarker.LINE_NUMBER for display in location field of the problems view. The IMarker.LOCATION is used in situations where a line number would not make sense, for example in a visual editor. If you want the line number to be displayed for location, only set the LINE_NUMBER attribute while creating the marker. > If I open the QuickFix window it displays 'Unknown' in the 'Location' column > instead of the file name, as it is showed in the problems view. > There is a slight difference in how the location is displayed in the quickfix page and the view.
Created attachment 123352 [details] patch > > There is a slight difference in how the location is displayed in the quickfix > page and the view. > Patch to fix this.
Thanks Hitesh, I'll have a look at this on Monday (I'm off tomorrow and we're testing 3.4.2 today).
Committed in >20090126. Applied the patch. Hitesh, what are you using to test this? I wasn't able to generate one of these types of marker so I could do the before/after tests. I committed without this because the code change is simple and obvious.
Setting milestone
Created attachment 123860 [details] Test Snippet Used attached snippet to create the marker.
Verified in I20090126-1800.