private void edit(Control parent, IStructuredSelection sel)
{
IRepositoryModel model = (IRepositoryModel) sel.getFirstElement();
try
{
RepositoryWizard wizard = WizardHelper.loadWizard(model.getType());
wizard.init(model);
WizardDialog dialog = new WizardDialog(getShell(parent), wizard);
if (dialog.open() == Window.OK)
{
updated();
}