Lines 61-67
Link Here
|
61 |
import org.eclipse.core.runtime.CoreException; |
61 |
import org.eclipse.core.runtime.CoreException; |
62 |
import org.eclipse.core.runtime.IPath; |
62 |
import org.eclipse.core.runtime.IPath; |
63 |
import org.eclipse.core.runtime.IProgressMonitor; |
63 |
import org.eclipse.core.runtime.IProgressMonitor; |
|
|
64 |
import org.eclipse.core.runtime.IStatus; |
64 |
import org.eclipse.core.runtime.OperationCanceledException; |
65 |
import org.eclipse.core.runtime.OperationCanceledException; |
|
|
66 |
import org.eclipse.core.runtime.Status; |
65 |
import org.eclipse.core.runtime.content.IContentType; |
67 |
import org.eclipse.core.runtime.content.IContentType; |
66 |
|
68 |
|
67 |
/** |
69 |
/** |
Lines 688-696
Link Here
|
688 |
ICConfigurationDescription configuration; |
690 |
ICConfigurationDescription configuration; |
689 |
|
691 |
|
690 |
if (description == null) { |
692 |
if (description == null) { |
691 |
// TODO: Sometimes, CoreModel returns a null ICProjectDescription |
693 |
throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, "CoreModel returned a null ICProjectDescription")); //$NON-NLS-1$ |
692 |
// so for now, fall back to configuration-less language determination. |
|
|
693 |
configuration = null; |
694 |
} else { |
694 |
} else { |
695 |
configuration = description.getActiveConfiguration(); |
695 |
configuration = description.getActiveConfiguration(); |
696 |
} |
696 |
} |