public void execute() // ------------- // ------------- { // --------- Folder f = from.val(); if (f.selected.size() == 0) { throw new CommandPreconditionsException("Please, select what to delete."); } f.deleteSelected(); // --------- } // ------------- @Override public boolean checkInputPinsCoverage() { if (from.val() == null) { throw new CommandPreconditionsException("Please, select source."); } return true; }