public class WojSourceContainerBrowser extends AbstractSourceContainerBrowser {
public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) {
ChooseModuleDialog dialog = new ChooseModuleDialog(shell);
if (dialog.open() == Window.OK) {
return new ISourceContainer[]{new WojSourceContainer(dialog.getOrganisation(), dialog.getName(), dialog.getRevision(), dialog.getVisibility())};
}
return new ISourceContainer[]{};
}
}