Package org.jnode.apps.jpartition.consoleview.components

Examples of org.jnode.apps.jpartition.consoleview.components.YesNo.show()


            println("The following modifications are pending :");
            for (Command cmd : pendingCommands) {
                println("\t" + cmd);
            }

            boolean apply = yesNo.show("Would you like to apply them ?");
            if (apply) {
                UserFacade.getInstance().applyChanges();
            }
        }
    }
View Full Code Here


    private void selectPartition() throws Exception {
        List<Partition> partitions = UserFacade.getInstance().getPartitions();
        if ((partitions.size() == 1) && !partitions.get(0).isUsed()) {
            YesNo yesNo = new YesNo(context);
            boolean create = yesNo.show("There is no partition. Would you like to create one ?");
            if (create) {
                selectedPartition = createPartition(partitions.get(0));
            }
        }
View Full Code Here

        choice.execute(this, partition);
    }

    private void removePartition(Partition partition) throws Exception {
        YesNo yesNo = new YesNo(context);
        boolean remove = yesNo.show("Would like you to remove the partition ?");

        if (remove) {
            UserFacade.getInstance().removePartition(partition.getStart() + 1);
        }
    }
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.