Package com.dubture.composer.ui.dialogs

Examples of com.dubture.composer.ui.dialogs.RepositoryDialog.open()


    manager.add(removeAction);
  }
 
  private void handleAdd() {
    RepositoryDialog diag = new RepositoryDialog(repositoryViewer.getTable().getShell());
    if (diag.open() == Dialog.OK) {
      composerPackage.getRepositories().add(diag.getRepository());
    }
  }
 
  private void handleEdit() {
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
Copyright © 2018 www.massapi.com. 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.