Package com.dubture.composer.ui.dialogs

Examples of com.dubture.composer.ui.dialogs.RepositoryDialog


    manager.add(editAction);
    manager.add(removeAction);
  }
 
  private void handleAdd() {
    RepositoryDialog diag = new RepositoryDialog(repositoryViewer.getTable().getShell());
    if (diag.open() == Dialog.OK) {
      composerPackage.getRepositories().add(diag.getRepository());
    }
  }
View Full Code Here


    }
  }
 
  private void handleEdit() {
    Repository repo = (Repository)((StructuredSelection)repositoryViewer.getSelection()).getFirstElement();
    RepositoryDialog diag = new RepositoryDialog(repositoryViewer.getTable().getShell(), repo.clone());
    if (diag.open() == Dialog.OK) {
      Repository newRepo = diag.getRepository();
      repo.setName(newRepo.getName());
      repo.setUrl(newRepo.getUrl());
    }
  }
View Full Code Here

TOP

Related Classes of com.dubture.composer.ui.dialogs.RepositoryDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.