use of org.jkiss.dbeaver.model.DBPObjectWithDescription in project dbeaver by serge-rider.
the class SessionManagerViewer method loadPlainTextDetails.
private void loadPlainTextDetails(DBAServerSessionDetails data, StyledText styledText) {
SessionDetailsLoadService loadingService = new SessionDetailsLoadService(data);
LoadingJob.createService(loadingService, new ProgressLoaderVisualizer<Collection<DBPObject>>(loadingService, styledText) {
@Override
public void completeLoading(Collection<DBPObject> dbpObjects) {
StringBuilder text = new StringBuilder();
for (DBPObject item : dbpObjects) {
if (item instanceof DBPObjectWithDescription) {
text.append(((DBPObjectWithDescription) item).getDescription());
text.append(GeneralUtils.getDefaultLineSeparator());
}
}
styledText.setText(text.toString());
}
}).schedule();
}
Aggregations