| | |
| | | Set<String> backends = |
| | | new TreeSet<String>(taskToBeLaunched.getBackends()); |
| | | backends.retainAll(getBackends()); |
| | | if (backends.size() > 0) |
| | | if (!backends.isEmpty()) |
| | | { |
| | | incompatibilityReasons.add(getIncompatibilityMessage(this, |
| | | taskToBeLaunched)); |
| | | incompatibilityReasons.add(getIncompatibilityMessage(this, taskToBeLaunched)); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | node.getDN(), de); |
| | | } |
| | | } |
| | | if (toNotify.size() > 0) |
| | | if (!toNotify.isEmpty()) |
| | | { |
| | | final List<BrowserNodeInfo> fToNotify = |
| | | new ArrayList<BrowserNodeInfo>(toNotify); |
| | | final List<BrowserNodeInfo> fToNotify = new ArrayList<>(toNotify); |
| | | toNotify.clear(); |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | |
| | | { |
| | | lastProgressTime = t; |
| | | final Collection<BrowserNodeInfo> fToNotify; |
| | | if (toNotify.size() > 0) |
| | | if (!toNotify.isEmpty()) |
| | | { |
| | | fToNotify = new ArrayList<BrowserNodeInfo>(toNotify); |
| | | fToNotify = new ArrayList<>(toNotify); |
| | | toNotify.clear(); |
| | | } |
| | | else |
| | |
| | | toNotify.add(controller.getNodeInfoFromPath(path)); |
| | | } |
| | | final Collection<BrowserNodeInfo> fToNotify; |
| | | if (toNotify.size() > 0) |
| | | if (!toNotify.isEmpty()) |
| | | { |
| | | fToNotify = new ArrayList<BrowserNodeInfo>(toNotify); |
| | | fToNotify = new ArrayList<>(toNotify); |
| | | toNotify.clear(); |
| | | } |
| | | else |