use of de.janrufmonitor.ui.jface.application.journal.JournalFilterManager in project janrufmonitor by tbrandt77.
the class Last10Calls method getConfiguration.
public Properties getConfiguration() {
Properties saved = super.getConfiguration();
Properties journalConfig = this.getRuntime().getConfigManagerFactory().getConfigManager().getProperties(Journal.NAMESPACE);
if (journalConfig != null && journalConfig.size() > 0) {
saved.setProperty(JournalConfigConst.CFG_REPOSITORY, journalConfig.getProperty(JournalConfigConst.CFG_REPOSITORY));
}
IFilter[] filters = new IFilter[1];
int count = 10;
try {
count = Integer.parseInt(saved.getProperty(CFG_COUNT, "10"));
} catch (Exception e) {
}
filters[0] = new ItemCountFilter(count);
saved.setProperty("filter", new JournalFilterManager().getFiltersToString(filters));
return saved;
}
Aggregations