List of usage examples for org.eclipse.jdt.internal.core.util Messages build_inconsistentProject
String build_inconsistentProject
To view the source code for org.eclipse.jdt.internal.core.util Messages build_inconsistentProject.
Click Source Link
From source file:net.sf.j2s.core.builder.JavaBuilder.java
License:Open Source License
private void createInconsistentBuildMarker(CoreException coreException) throws CoreException { String message = null;//from w ww . jav a2s . c o m IStatus status = coreException.getStatus(); if (status.isMultiStatus()) { IStatus[] children = status.getChildren(); if (children != null && children.length > 0) message = children[0].getMessage(); } if (message == null) message = coreException.getMessage(); IMarker marker = this.currentProject.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); marker.setAttributes( new String[] { IMarker.MESSAGE, IMarker.SEVERITY, IJavaModelMarker.CATEGORY_ID, IMarker.SOURCE_ID }, new Object[] { Messages.bind(Messages.build_inconsistentProject, message), new Integer(IMarker.SEVERITY_ERROR), new Integer(CategorizedProblem.CAT_BUILDPATH), JavaBuilder.SOURCE_ID }); }