Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IFile.createMarker()


        IMarker exists = updateTaskTags2_checkExisting(i, tagIndex, line, markers);
        if (exists!=null) {
          markers.remove(exists);
          continue;
        }
        IMarker marker = docFile.createMarker(IMarker.TASK);         
        //Once we have a marker object, we can set its attributes
        marker.setAttribute(IMarker.PRIORITY, IMarker.PRIORITY_NORMAL);
        String msg = line.substring(line.indexOf(tag), Math.min(tagIndex+MAX_TASK_MSG_LENGTH, line.length()-1));
        marker.setAttribute(IMarker.MESSAGE, msg);
        marker.setAttribute(IMarker.LINE_NUMBER, i);                 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.