Package br.com.visualmidia.ui.dialog

Examples of br.com.visualmidia.ui.dialog.AddCoursePackageDialog


        Button coursePackageButton = new Button(buttonsComposite, SWT.NONE);
        coursePackageButton.setText("Gerar pacote com os cursos selecionados");
        coursePackageButton.addListener(SWT.Selection, new Listener(){
            public void handleEvent(Event arg0) {
                if(!isSelectedCourseAPackage()){
                    new AddCoursePackageDialog(getParent().getShell(), getMySelf(), courseTable.getSelection()).open();
                    setErrorMessage("");
                } else {
                    setErrorMessage("Voc� n�o pode montar um pacote com outro pacote.");
                }
            }
           
        });

        editCourseButton = new Button(buttonsComposite, SWT.NONE);
        editCourseButton.setText("Editar");
        editCourseButton.addListener(SWT.Selection, new Listener(){
            public void handleEvent(Event arg0) {
                if(!isSelectedCourseAPackage()){
                    new AddCourseDialog(getParent().getShell(), getMySelf(), courseTable.getSelection()[0].getText(0)).open();
                } else {
                    new AddCoursePackageDialog(getParent().getShell(), getMySelf(), courseTable.getSelection(), courseTable.getSelection()[0].getText(0)).open();
                }
            }
           
        });
       
View Full Code Here

TOP

Related Classes of br.com.visualmidia.ui.dialog.AddCoursePackageDialog

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.