本文整理匯總了Java中org.eclipse.core.resources.IProject.deleteMarkers方法的典型用法代碼示例。如果您正苦於以下問題:Java IProject.deleteMarkers方法的具體用法?Java IProject.deleteMarkers怎麽用?Java IProject.deleteMarkers使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.core.resources.IProject
的用法示例。
在下文中一共展示了IProject.deleteMarkers方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: deleteMarkers
import org.eclipse.core.resources.IProject; //導入方法依賴的package包/類
public static void deleteMarkers(IProject project)
{
try
{
project.deleteMarkers(JPFClasspathPlugin.MARKER_ID, true, IResource.DEPTH_INFINITE);
}
catch( CoreException e )
{
// who cares
}
}
示例2: removeProjectProblemMarker
import org.eclipse.core.resources.IProject; //導入方法依賴的package包/類
/**
* Do some cleaning. remove markers for the project
* @param project
* @param monitor
*/
public static void removeProjectProblemMarker(IProject project, IProgressMonitor monitor) {
try {
project.deleteMarkers(MARKER_TYPE, true, IResource.DEPTH_INFINITE);
} catch (CoreException e) {
ResourceManager.logException(e);
}
}
示例3: removeJimpleInstructionPointerMarker
import org.eclipse.core.resources.IProject; //導入方法依賴的package包/類
private void removeJimpleInstructionPointerMarker() {
try {
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
project.deleteMarkers(JIMPLE_INSTRUCTIONPOINTER_MARKER, true, IResource.DEPTH_INFINITE);
} catch (CoreException e) {
logger.error("Couldn't remove jimple instruction pointer marker", e);
}
}
示例4: cleanMarkers
import org.eclipse.core.resources.IProject; //導入方法依賴的package包/類
/**
* @param project
* @throws CoreException
*/
public static void cleanMarkers (IProject project) throws CoreException {
project.deleteMarkers(MARKER_TYPE, true, IResource.DEPTH_INFINITE);
}