// Decrement the counter by because the outer loop increments it prior to the next iteration
i--;
} else if( subItem instanceof ConditionalSubItem ) {
//Get the sub item to add.
ConditionalSubItem sub = (ConditionalSubItem)subItem;
sub.setSelectedSubItem(viewer.getManager());
SubItem selectedSubItem = sub.getSelectedSubItem();
if(selectedSubItem == null) {
String message = NLS.bind(Messages.ERROR_CONDITIONAL_DATA_MISSING_LOG, (new Object[] {sub.getCondition(), getItem().getTitle()}));
IStatus status = new Status(IStatus.ERROR, ICheatSheetResource.CHEAT_SHEET_PLUGIN_ID, IStatus.OK, message, null);
CheatSheetPlugin.getPlugin().getLog().log(status);
status = new Status(IStatus.ERROR, ICheatSheetResource.CHEAT_SHEET_PLUGIN_ID, IStatus.OK, Messages.ERROR_DATA_MISSING, null);
CheatSheetPlugin.getPlugin().getLog().log(status);