Source:
<code>private IStatus getReviews(GerritServerInformation repository, String queryType) throws GerritQueryException { if (!connectToServer(repository)) { return Status.CANCEL_STATUS; } if (!isQueryAuthorized(queryType)) { displayInformation(repository.getServerURI(), NLS.bind(Messages.GerritTableView_informationAnonymous, queryType)); return Status.CANCEL_STATUS; } String queryString = queryType; IStatus ret = Status.OK_STATUS; Reviews shownReviews = ModelFactory.eINSTANCE.createReviews(); if (gerritClient != null) { ChangeInfo[] loadedReviews = getReviewList(repository, queryString); dynamiColumnLabels = getLabelsColumns(loadedReviews); fillDynamicColumnArray(); Display.getDefault().syncExec(new Runnable() { @Override public void run() { <START> Iterator iterator = dynamiColumnLabels.entrySet().iterator(); <END> while (iterator.hasNext()) { Entry<String, String> map = (Entry<String, String>) iterator.next(); reviewTable.createTableViewerLabelColumn(map.getValue()); } reviewTable.setLabelProvider(dynamicName); } }); if (loadedReviews != null) { for (ChangeInfo changeInfo : loadedReviews) { shownReviews.getAllReviews().add(changeInfo); } } else { shownReviews.getAllReviews().clear(); ret = new Status(IStatus.ERROR, EGerritCorePlugin.PLUGIN_ID, "Error"); } } else { shownReviews.getAllReviews().clear(); fServerUtil.resetLastGerritServer(); Display.getDefault().syncExec(new Runnable() { @Override public void run() { setRepositoryVersionLabel(Messages.Invalid_server, Messages.No_Connection); } }); ret = new Status(IStatus.ERROR, EGerritCorePlugin.PLUGIN_ID, "Error"); } refresh(shownReviews); return ret; }</code><technical_language>Iterate values instead of entrySet. I twill easier understand</technical_language>

Target:
private IStatus getReviews(GerritServerInformation repository, String queryType) throws GerritQueryException { if (!connectToServer(repository)) { return Status.CANCEL_STATUS; } if (!isQueryAuthorized(queryType)) { displayInformation(repository.getServerURI(), NLS.bind(Messages.GerritTableView_informationAnonymous, queryType)); return Status.CANCEL_STATUS; } String queryString = queryType; IStatus ret = Status.OK_STATUS; Reviews shownReviews = ModelFactory.eINSTANCE.createReviews(); if (gerritClient != null) { ChangeInfo[] loadedReviews = getReviewList(repository, queryString); dynamiColumnLabels = getLabelsColumns(loadedReviews); fillDynamicColumnArray(); Display.getDefault().syncExec(new Runnable() { @Override public void run() { createReviewList(); Iterator iterator = dynamiColumnLabels.entrySet().iterator(); while (iterator.hasNext()) { Entry<String, String> map = (Entry<String, String>) iterator.next(); reviewTable.createTableViewerLabelColumn(map.getValue()); } reviewTable.setLabelProvider(dynamicName); } }); if (loadedReviews != null) { for (ChangeInfo changeInfo : loadedReviews) { shownReviews.getAllReviews().add(changeInfo); } } else { shownReviews.getAllReviews().clear(); ret = new Status(IStatus.ERROR, EGerritCorePlugin.PLUGIN_ID, "Error"); } } else { shownReviews.getAllReviews().clear(); fServerUtil.resetLastGerritServer(); Display.getDefault().syncExec(new Runnable() { @Override public void run() { setRepositoryVersionLabel(Messages.Invalid_server, Messages.No_Connection); } }); ret = new Status(IStatus.ERROR, EGerritCorePlugin.PLUGIN_ID, "Error"); } refresh(shownReviews); return ret; }