Package com.dubture.composer.ui.dialogs

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


    manager.add(editAction);
    manager.add(removeAction);
  }
 
  private void handleAdd() {
    PersonDialog diag = new PersonDialog(authorViewer.getTable().getShell(), new Person());
    if (diag.open() == Dialog.OK) {
      composerPackage.getAuthors().add(diag.getPerson());
      refresh();
    }
  }
View Full Code Here


    }
  }
 
  private void handleEdit() {
    Person author = (Person)((StructuredSelection)authorViewer.getSelection()).getFirstElement();
    PersonDialog diag = new PersonDialog(authorViewer.getTable().getShell(), author.clone());
    if (diag.open() == Dialog.OK) {
      author.setName(diag.getPerson().getName());
      author.setEmail(diag.getPerson().getEmail());
      author.setHomepage(diag.getPerson().getHomepage());
      author.setRole(diag.getPerson().getRole());
    }
  }
View Full Code Here

TOP

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

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.