mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
maven: help for add archetype dialog (IDEA-61054)
This commit is contained in:
+10
-5
@@ -39,7 +39,7 @@ public class MavenAddArchetypeDialog extends DialogWrapper {
|
||||
|
||||
init();
|
||||
|
||||
DocumentAdapter l =new DocumentAdapter() {
|
||||
DocumentAdapter l = new DocumentAdapter() {
|
||||
@Override
|
||||
protected void textChanged(DocumentEvent e) {
|
||||
doValidateInput();
|
||||
@@ -63,6 +63,11 @@ public class MavenAddArchetypeDialog extends DialogWrapper {
|
||||
return myGroupIdField;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getHelpId() {
|
||||
return "Add_Archetype_Dialog";
|
||||
}
|
||||
|
||||
private void doValidateInput() {
|
||||
List<String> errors = new ArrayList<String>();
|
||||
if (StringUtil.isEmptyOrSpaces(myGroupIdField.getText())) errors.add("GroupId");
|
||||
@@ -82,9 +87,9 @@ public class MavenAddArchetypeDialog extends DialogWrapper {
|
||||
|
||||
public MavenArchetype getArchetype() {
|
||||
return new MavenArchetype(myGroupIdField.getText(),
|
||||
myArtifactIdField.getText(),
|
||||
myVersionField.getText(),
|
||||
myRepositoryField.getText(),
|
||||
null);
|
||||
myArtifactIdField.getText(),
|
||||
myVersionField.getText(),
|
||||
myRepositoryField.getText(),
|
||||
null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user