Skip to content

Commit

Permalink
Merge pull request #20 from unv-unv/unv/compilation-fix
Browse files Browse the repository at this point in the history
Compilation fix after latest platform update.
  • Loading branch information
VISTALL authored Oct 19, 2024
2 parents 5154987 + 89da2f6 commit 9e9e6ae
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package org.jetbrains.idea.maven.wizards;

import consulo.ui.annotation.RequiredUIAccess;
import consulo.ui.ex.awt.DialogWrapper;
import consulo.ui.ex.awt.event.DocumentAdapter;
import consulo.util.lang.StringUtil;
Expand Down Expand Up @@ -54,11 +55,13 @@ protected void textChanged(DocumentEvent e) {
doValidateInput();
}

@Override
protected JComponent createCenterPanel() {
return myMainPanel;
}

@Override
@RequiredUIAccess
public JComponent getPreferredFocusedComponent() {
return myGroupIdField;
}
Expand All @@ -69,7 +72,7 @@ protected String getHelpId() {
}

private void doValidateInput() {
List<String> errors = new ArrayList<String>();
List<String> errors = new ArrayList<>();
if (StringUtil.isEmptyOrSpaces(myGroupIdField.getText())) {
errors.add("GroupId");
}
Expand All @@ -81,7 +84,7 @@ private void doValidateInput() {
}

if (errors.isEmpty()) {
setErrorText(null);
clearErrorText();
getOKAction().setEnabled(true);
return;
}
Expand Down

0 comments on commit 9e9e6ae

Please sign in to comment.