1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

recording stack trace in the log

This commit is contained in:
Andrew Gvozdev 2010-03-05 18:51:28 +00:00
parent a4a4038b86
commit cd7affd34b

View file

@ -63,9 +63,11 @@ import org.eclipse.core.resources.IWorkspaceRunnable;
import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.QualifiedName; import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.ILock; import org.eclipse.core.runtime.jobs.ILock;
import org.eclipse.core.runtime.jobs.ISchedulingRule; import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.core.runtime.jobs.Job; import org.eclipse.core.runtime.jobs.Job;
@ -317,7 +319,8 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto
if (project.exists() && project.isOpen()) { if (project.exists() && project.isOpen()) {
fProjectDescription = new SoftReference<ICProjectDescription>(des); fProjectDescription = new SoftReference<ICProjectDescription>(des);
} else { } else {
CCorePlugin.log(SettingsModelMessages.getString("CProjectDescriptionManager.16")); //$NON-NLS-1$ IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, SettingsModelMessages.getString("CProjectDescriptionManager.16"), null); //$NON-NLS-1$
CCorePlugin.log(new CoreException(status));
} }
} else { } else {
fProjectDescription = new SoftReference<ICProjectDescription>(null); fProjectDescription = new SoftReference<ICProjectDescription>(null);