fixed checkstyle

This commit is contained in:
uogau 2021-03-08 01:39:19 +01:00
parent dc4aaeda0a
commit edd7d89e9c

View File

@ -67,9 +67,7 @@ public class ShareDialog extends Dialog implements LocaleChangeObserver {
latexArea.setClassName(FIELD_CLASS); latexArea.setClassName(FIELD_CLASS);
UI.getCurrent().getPage().executeJs("window.autoSelect($0)", FIELD_CLASS); UI.getCurrent().getPage().executeJs("window.autoSelect($0)", FIELD_CLASS);
urlField.setReadOnly(true); setReadOnly();
packageArea.setReadOnly(true);
latexArea.setReadOnly(true);
layout.add(urlField, packageArea, latexArea); layout.add(urlField, packageArea, latexArea);
@ -84,4 +82,10 @@ public class ShareDialog extends Dialog implements LocaleChangeObserver {
packageArea.setLabel(getTranslation("share.packages.label")); packageArea.setLabel(getTranslation("share.packages.label"));
latexArea.setLabel(getTranslation("share.latex.label")); latexArea.setLabel(getTranslation("share.latex.label"));
} }
private void setReadOnly() {
urlField.setReadOnly(true);
packageArea.setReadOnly(true);
latexArea.setReadOnly(true);
}
} }