public static List<String> getPackageNamesFromRepository(IDiagramProfile profile) {
List<String> packages = new ArrayList<String>();
Repository repository = profile.getRepository();
Collection<Directory> directories = repository.listDirectories("/");
for (Directory directory : directories) {
packages.add(directory.getLocation() + directory.getName());
}
return packages;