Search in sources :

Example 1 with SourceProvider

use of org.netxms.ui.eclipse.datacollection.SourceProvider in project netxms by netxms.

the class SummaryTablesCache method reload.

/**
 * Reload tables from server
 */
private void reload() {
    try {
        List<DciSummaryTableDescriptor> list = session.listDciSummaryTables();
        synchronized (tables) {
            tables.clear();
            for (DciSummaryTableDescriptor d : list) {
                tables.put(d.getId(), d);
            }
        }
        SourceProvider p = SourceProvider.getInstance(display);
        if (p != null) {
            p.update();
        }
    } catch (Exception e) {
        Activator.logError("Exception in SummaryTablesCache.reload()", e);
    }
}
Also used : SourceProvider(org.netxms.ui.eclipse.datacollection.SourceProvider) DciSummaryTableDescriptor(org.netxms.client.datacollection.DciSummaryTableDescriptor)

Aggregations

DciSummaryTableDescriptor (org.netxms.client.datacollection.DciSummaryTableDescriptor)1 SourceProvider (org.netxms.ui.eclipse.datacollection.SourceProvider)1