* @param resource The IResource.
*/
private boolean inPolicySource(IResource resource) {
boolean result = false;
try {
MCSProjectNature mcsNature = (MCSProjectNature)
getProject().getNature(MCSProjectNature.NATURE_ID);
IPath policySource = mcsNature.getPolicySourcePath();
IPath resourcePath = resource.getFullPath();
// Prepend the policySource with the path of the project so that
// we get the right device and prefix that we expect the
// resourcePath to have.
IPath projectPath = mcsNature.getProject().getFullPath();
IPath fullPolicySource = projectPath.append(policySource);
result = fullPolicySource.isPrefixOf(resourcePath);
} catch (CoreException e) {
EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);
} catch (IllegalStateException e) {