determines the name of the packages and adds them to a list
(String packageName)
| 466 | /** determines the name of the packages and adds them to a list |
| 467 | */ |
| 468 | public List<String> determinePath (String packageName)throws IOException { |
| 469 | List<String> list = new ArrayList<String>(); |
| 470 | StringTokenizer token = new StringTokenizer(packageName,"."); |
| 471 | //if (token.countTokens()>1) { |
| 472 | while (token.hasMoreTokens()) { |
| 473 | list.add(token.nextToken()); |
| 474 | } |
| 475 | //} else list.add(packageName); |
| 476 | return list; |
| 477 | } |
| 478 | |
| 479 | /** verify if the class name contains only letters and digits |
| 480 | * the path of the new project is a directory |