Search in sources :

Example 1 with DefaultEventFilter

use of org.jkiss.dbeaver.runtime.qm.DefaultEventFilter in project dbeaver by dbeaver.

the class QueryLogViewer method reloadEvents.

private void reloadEvents() {
    DBPPreferenceStore store = DBeaverCore.getGlobalPreferenceStore();
    this.entriesPerPage = Math.max(MIN_ENTRIES_PER_PAGE, store.getInt(QMConstants.PROP_ENTRIES_PER_PAGE));
    this.defaultFilter = new DefaultEventFilter();
    clearLog();
    updateMetaInfo(QMUtils.getPastMetaEvents());
}
Also used : DefaultEventFilter(org.jkiss.dbeaver.runtime.qm.DefaultEventFilter) DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)

Example 2 with DefaultEventFilter

use of org.jkiss.dbeaver.runtime.qm.DefaultEventFilter in project dbeaver by dbeaver.

the class QueryLogViewer method reloadEvents.

private void reloadEvents(@Nullable String searchString) {
    if (reloadInProgress) {
        // $NON-NLS-1$
        log.debug("Event reload is in progress. Skip");
        return;
    }
    reloadInProgress = true;
    DBPPreferenceStore store = DBWorkbench.getPlatform().getPreferenceStore();
    this.entriesPerPage = Math.max(MIN_ENTRIES_PER_PAGE, store.getInt(QMConstants.PROP_ENTRIES_PER_PAGE));
    this.defaultFilter = new DefaultEventFilter();
    clearLog();
    // Extract events
    EventHistoryReadService loadingService = new EventHistoryReadService(searchString);
    LoadingJob.createService(loadingService, new EvenHistoryReadVisualizer(loadingService)).schedule();
}
Also used : DefaultEventFilter(org.jkiss.dbeaver.runtime.qm.DefaultEventFilter) DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)

Example 3 with DefaultEventFilter

use of org.jkiss.dbeaver.runtime.qm.DefaultEventFilter in project dbeaver by serge-rider.

the class QueryLogViewer method reloadEvents.

private void reloadEvents() {
    DBPPreferenceStore store = DBeaverCore.getGlobalPreferenceStore();
    this.entriesPerPage = Math.max(MIN_ENTRIES_PER_PAGE, store.getInt(QMConstants.PROP_ENTRIES_PER_PAGE));
    this.defaultFilter = new DefaultEventFilter();
    clearLog();
    updateMetaInfo(QMUtils.getPastMetaEvents());
}
Also used : DefaultEventFilter(org.jkiss.dbeaver.runtime.qm.DefaultEventFilter) DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)

Example 4 with DefaultEventFilter

use of org.jkiss.dbeaver.runtime.qm.DefaultEventFilter in project dbeaver by serge-rider.

the class QueryLogViewer method reloadEvents.

private void reloadEvents(@Nullable String searchString) {
    if (reloadInProgress) {
        // $NON-NLS-1$
        log.debug("Event reload is in progress. Skip");
        return;
    }
    reloadInProgress = true;
    DBPPreferenceStore store = DBWorkbench.getPlatform().getPreferenceStore();
    this.entriesPerPage = Math.max(MIN_ENTRIES_PER_PAGE, store.getInt(QMConstants.PROP_ENTRIES_PER_PAGE));
    this.defaultFilter = new DefaultEventFilter();
    clearLog();
    // Extract events
    EventHistoryReadService loadingService = new EventHistoryReadService(searchString);
    LoadingJob.createService(loadingService, new EvenHistoryReadVisualizer(loadingService)).schedule();
}
Also used : DefaultEventFilter(org.jkiss.dbeaver.runtime.qm.DefaultEventFilter) DBPPreferenceStore(org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)

Aggregations

DBPPreferenceStore (org.jkiss.dbeaver.model.preferences.DBPPreferenceStore)4 DefaultEventFilter (org.jkiss.dbeaver.runtime.qm.DefaultEventFilter)4