for (Iterator iter = item.getSubItems().iterator(); iter.hasNext(); i++) {
AbstractSubItem subItem = (AbstractSubItem)iter.next();
if( subItem instanceof RepeatedSubItem ) {
//Get the sub item to add.
RepeatedSubItem repeatedSubItem = (RepeatedSubItem)subItem;
String values = repeatedSubItem.getValues();
values = viewer.getManager().getVariableData(values);
if(values == null || values.length() <= 0 || (values.startsWith("${") && values.endsWith("}"))) { //$NON-NLS-1$ //$NON-NLS-2$
String message = NLS.bind(Messages.ERROR_DATA_MISSING_LOG, (new Object[] {repeatedSubItem.getValues()}));
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);
org.eclipse.jface.dialogs.ErrorDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), null, null, status);
break;
}
SubItem sub = (SubItem)repeatedSubItem.getSubItems().get(0);
StringTokenizer tokenizer = new StringTokenizer(values, ","); //$NON-NLS-1$
while(tokenizer.hasMoreTokens()) {
String value = tokenizer.nextToken();
createSubItemButtons(sub, value, i++);