Package org.ifmo.clgp.view.dialog

Examples of org.ifmo.clgp.view.dialog.CreateImageDialog


            view.updateTree(getLastNode(), newFolder);
        }
    }

    public void createImage() {
        CreateImageDialog cid = new CreateImageDialog(view, true);
        cid.setVisible(true);
        String imageName = cid.getImageName();

        if (imageName != null) {
            int selected = JOptionPane.showConfirmDialog(view, "Для продолжения требуется перезагрузка",
                    "Требуется перезагрузка", JOptionPane.YES_NO_OPTION);
            if (selected == 0) {
                Image newImage = new Image();
                newImage.setName(imageName);
                newImage.setDescription(cid.getImageDesc());
                newImage.setCreationDate(new Date());
                //TODO setOperationSystem()
                ((ImageNode) model.getUserObjectFromJTree()).setImages(newImage);
                StructureIOManager.getInstance().marshal(StructureManager.getInstance().getRoot());
View Full Code Here

TOP

Related Classes of org.ifmo.clgp.view.dialog.CreateImageDialog

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.