1
2
3
4
5 package de.mindcrimeilab.xsanalyzer.model;
6
7 import javax.swing.tree.TreePath;
8
9 import org.apache.commons.logging.Log;
10 import org.apache.commons.logging.LogFactory;
11 import org.springframework.binding.value.ValueModel;
12 import org.springframework.richclient.core.Guarded;
13
14
15
16
17
18
19
20
21 public class TreeSingleSelectionGuard extends AbstractTreeSelectionGuard {
22
23 private static final Log logger = LogFactory.getLog("xsAnalyzerApplicationLogger");
24
25 public TreeSingleSelectionGuard(ValueModel selectionHolder, Guarded guarded) {
26 super(selectionHolder, guarded);
27 }
28
29
30
31
32
33
34 @Override
35 protected boolean shouldEnable(TreePath[] selected) {
36 TreeSingleSelectionGuard.logger.trace("Returning true!");
37 return true;
38 }
39
40 }