use of org.talend.repository.ui.properties.StatusHelper in project tdi-studio-se by Talend.
the class MainComposite method getStatusMap.
protected Map<String, String> getStatusMap() {
statusHelper = new StatusHelper(CoreRuntimePlugin.getInstance().getProxyRepositoryFactory());
Map<String, String> statusMap = new HashMap();
try {
if (statusHelper != null) {
List<org.talend.core.model.properties.Status> statusList = statusHelper.getStatusList(repositoryObject.getProperty());
if (statusList != null) {
for (org.talend.core.model.properties.Status s : statusList) {
statusMap.put(s.getCode(), s.getLabel());
}
}
}
} catch (PersistenceException e) {
CommonExceptionHandler.process(e);
}
return statusMap;
}
Aggregations