@@ -25,29 +25,29 @@ public boolean validate()
25
25
{
26
26
String errorTitle = "Error" ;
27
27
28
- String moduleName = dialog .getGraphQlResolverClassName ();
29
- if (moduleName .length () == 0 ) {
28
+ String resolverClassName = dialog .getGraphQlResolverClassName ();
29
+ if (resolverClassName .length () == 0 ) {
30
30
JOptionPane .showMessageDialog (null , "GraphQL Resolver Name must not be empty." , errorTitle , JOptionPane .ERROR_MESSAGE );
31
31
return false ;
32
32
}
33
33
34
- if (!moduleName .matches (Regex .ALPHANUMERIC )) {
34
+ if (!resolverClassName .matches (Regex .ALPHANUMERIC )) {
35
35
JOptionPane .showMessageDialog (null , "GraphQL Resolver Name must contain letters and numbers only." , errorTitle , JOptionPane .ERROR_MESSAGE );
36
36
return false ;
37
37
}
38
38
39
- if (!Character .isUpperCase (moduleName .charAt (0 )) && !Character .isDigit (moduleName .charAt (0 ))) {
39
+ if (!Character .isUpperCase (resolverClassName .charAt (0 )) && !Character .isDigit (resolverClassName .charAt (0 ))) {
40
40
JOptionPane .showMessageDialog (null , "GraphQL Resolver Name must start from a number or a capital letter" , errorTitle , JOptionPane .ERROR_MESSAGE );
41
41
return false ;
42
42
}
43
43
44
- String pluginDirectory = dialog .getGraphQlResolverDirectory ();
45
- if (pluginDirectory .length () == 0 ) {
44
+ String graphQlResolverDirectory = dialog .getGraphQlResolverDirectory ();
45
+ if (graphQlResolverDirectory .length () == 0 ) {
46
46
JOptionPane .showMessageDialog (null , "GraphQL Resolver Directory must not be empty." , errorTitle , JOptionPane .ERROR_MESSAGE );
47
47
return false ;
48
48
}
49
49
50
- if (!pluginDirectory .matches (Regex .DIRECTORY )) {
50
+ if (!graphQlResolverDirectory .matches (Regex .DIRECTORY )) {
51
51
JOptionPane .showMessageDialog (null , "GraphQL Resolver Directory is not valid." , errorTitle , JOptionPane .ERROR_MESSAGE );
52
52
return false ;
53
53
}
0 commit comments