choices = new Operation[] {Operation.FORMAT_PARTITION, Operation.REMOVE_PARTITION};
} else {
choices = new Operation[] {Operation.ADD_PARTITION};
}
Options partitionsOpt = new Options(context);
Operation choice = partitionsOpt.show("Select an operation", choices);
choice.execute(this, partition);
}
private void removePartition(Partition partition) throws Exception {
YesNo yesNo = new YesNo(context);