public void createMarkers(IResource resource) throws CoreException {
resource.deleteMarkers(MARKER_ID, true, IResource.DEPTH_ZERO);
if (_compliance.toWGAVersion().isAtLeast(5, 0)){
IContainer container = (IContainer) resource;
if(!container.getName().startsWith(".")){
if (WGADesignStructureHelper.isMediaKeyContainer(container)) {
IFile syncInfo = WGADesignStructureHelper.determineSyncInfo(container);
WGADesignConfigurationModelWrapper conf;
try {
conf = new WGADesignConfigurationModelWrapper(syncInfo);
List<String> mediaKeyStrings = new ArrayList<String>();
mediaKeyStrings.addAll(WGADesignStructureHelper.DEFAULT_MEDIA_KEYS);
for (MediaKey current : conf.getMediaKeys()) {
mediaKeyStrings.add(current.getKey());
}
if (!mediaKeyStrings.contains(container.getName())) {
Map<String, Object> map = new HashMap<String, Object>();
MarkerUtilities.setMessage(map, "Missing mediakey '" + container.getName() + "' in design configuration.");
map.put(IMarker.LOCATION, resource.getFullPath().toString());
map.put(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));
MarkerUtilities.createMarker(resource, map, MARKER_ID);
}
} catch (IOException e) {