@Override public void updateInfo() { if (fFile != null) { attributes().setAttributes(fFile.attributes()); if (fFile.getRole() == EFileRole.CONFIG) { // ensure we have the version for config files String version = fFile.getVersion(); attributes().setAttribute(CmsisConstants.VERSION, version); } if (fFile.isDeviceDependent()) attributes().setAttribute(CmsisConstants.DEVICE_DEPENDENT, true); else attributes().removeAttribute(CmsisConstants.DEVICE_DEPENDENT); } }
public CpFileInfo(ICpItem parent, ICpFile file) { super(parent, file.getTag()); setFile(file); updateInfo(); }