mirror of https://github.com/apache/lucene.git
reformatted
This commit is contained in:
parent
37222e2785
commit
9ccfff94b1
|
@ -279,7 +279,7 @@ public final class CheckIndexDialogFactory implements DialogOpener.DialogFactory
|
||||||
setProgress(0);
|
setProgress(0);
|
||||||
statusLbl.setText("Running...");
|
statusLbl.setText("Running...");
|
||||||
indicatorLbl.setVisible(true);
|
indicatorLbl.setVisible(true);
|
||||||
try (TextAreaPrintStream ps = new TextAreaPrintStream(logArea)){
|
try (TextAreaPrintStream ps = new TextAreaPrintStream(logArea)) {
|
||||||
CheckIndex.Status status = toolsModel.checkIndex(ps);
|
CheckIndex.Status status = toolsModel.checkIndex(ps);
|
||||||
return status;
|
return status;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -214,8 +214,8 @@ public final class OptimizeIndexDialogFactory implements DialogOpener.DialogFact
|
||||||
setProgress(0);
|
setProgress(0);
|
||||||
statusLbl.setText("Running...");
|
statusLbl.setText("Running...");
|
||||||
indicatorLbl.setVisible(true);
|
indicatorLbl.setVisible(true);
|
||||||
|
|
||||||
try(TextAreaPrintStream ps = new TextAreaPrintStream(logArea)) {
|
try (TextAreaPrintStream ps = new TextAreaPrintStream(logArea)) {
|
||||||
toolsModel.optimize(expungeCB.isSelected(), (int) maxSegSpnr.getValue(), ps);
|
toolsModel.optimize(expungeCB.isSelected(), (int) maxSegSpnr.getValue(), ps);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
statusLbl.setText(MessageUtils.getLocalizedMessage("message.error.unknown"));
|
statusLbl.setText(MessageUtils.getLocalizedMessage("message.error.unknown"));
|
||||||
|
|
Loading…
Reference in New Issue