List of usage examples for org.eclipse.jgit.util FileUtils canonicalize
public static File canonicalize(File file)
From source file:org.eclipse.egit.ui.internal.repository.tree.command.AddCommand.java
License:Open Source License
@Override public Object execute(ExecutionEvent event) throws ExecutionException { RepositorySearchWizard wizard = new RepositorySearchWizard(util.getConfiguredRepositories(), true); WizardDialog dialog = new WizardDialog(getShell(event), wizard); if (dialog.open() == Window.OK) { for (String dir : wizard.getDirectories()) { File repositoryDir = FileUtils.canonicalize(new File(dir)); addRepository(repositoryDir); }// w w w.j ava2 s . com } return null; }