DZone ForumsDZone Forums  

Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
LinkBack Thread Tools Display Modes

Topic: Marker doesn't show up.
Old 07-22-2008, 07:31 AM   #1 (permalink)
Member
 
Join Date: Jul 2008
Posts: 4
Hi,

In order to set a marker to a particular line of a file, I have written the following code but the marker doesn't show up.

Code:
    IFile = getFirstFileFromProject();//an utility method that gets into the 'src' folder of the project then recursively finds all java files from folders and returns the first file

    IMarker marker = null;
	try {
		marker = file.createMarker(IMarker.PROBLEM);
		marker.setAttribute(IMarker.MESSAGE, "My message");			
	} catch (CoreException e1) {
		e1.printStackTrace();
	}
I tried to call
Code:
MarkerViewUtil.showMarker(page, marker, true);
but that did not work. Failed with following exception : java.lang.NoClassDefFoundError: org/eclipse/ui/views/markers/MarkerViewUtil despite all the jars present in the classpath and dependencies.

Please guide.
Thanks.
kaprasanna is offline   Reply /w Quote -


Thread Tools
Display Modes




All times are GMT -5. The time now is 05:18 PM.