private class EditorDialogUi implements EditorUi {
@Override
public void open(FileFilterOptionsPanel panel) {
String title = Strings.get("FileFilterOptions.Title");
InputPanelDialog dialog = new InputPanelDialog(UiUtils.getActiveWindow(), panel, title) {
@Override
protected boolean useScroll() {
return false;
}
};
dialog.pack();
dialog.manageLocation(FileFilterOptionsEditor.class);
dialog.setOkButtonAsDefault();
dialog.setVisible(true);
if (dialog.wasOkPressed()) {
updateOptions(panel.getOptions(), true);
}
}