return panel;
}
private DCPanel getQuickAnalysisPanel() {
final QuickAnalysisStrategy quickAnalysisStrategy = _userPreferences.getQuickAnalysisStrategy();
final JXTextField columnsTextField = WidgetFactory.createTextField("Columns");
columnsTextField.setColumns(2);
columnsTextField.setDocument(new NumberDocument());
columnsTextField.setText("" + quickAnalysisStrategy.getColumnsPerAnalyzer());
final JCheckBox valueDistributionCheckBox = new JCheckBox("Include Value distribution in Quick analysis?");
valueDistributionCheckBox.setOpaque(false);
valueDistributionCheckBox.setSelected(quickAnalysisStrategy.isIncludeValueDistribution());
final JCheckBox patternFinderCheckBox = new JCheckBox("Include Pattern finder in Quick analysis?");
patternFinderCheckBox.setOpaque(false);
patternFinderCheckBox.setSelected(quickAnalysisStrategy.isIncludePatternFinder());
final ActionListener actionListener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
try {
int columns = Integer.parseInt(columnsTextField.getText());
QuickAnalysisStrategy newStrategy = new QuickAnalysisStrategy(columns,
valueDistributionCheckBox.isSelected(), patternFinderCheckBox.isSelected());
_userPreferences.setQuickAnalysisStrategy(newStrategy);
} catch (NumberFormatException e) {
// skip this action, could not parse columns
}