Creates and returns the marker with the specified type on this resource. Marker type ids are the id of an extension installed in the
org.eclipse.core.resources.markers
extension point. The specified type string must not be
null
.
@param type the type of the marker to create
@return the handle of the new marker
@exception CoreException if this method fails. Reasons include:
- This resource does not exist.
- This resource is a project that is not open.
@see IResourceRuleFactory#markerRule(IResource)