src/Tools/Graphview/popups.scala
changeset 59319 677615cba30d
parent 59290 569a8109eeb2
child 59408 63cb603b5114
equal deleted inserted replaced
59318:3ef6b0b6232e 59319:677615cba30d
   124       popup.add(filter_context(List(node), true, "Hide", true).peer)
   124       popup.add(filter_context(List(node), true, "Hide", true).peer)
   125       popup.add(filter_context(List(node), false, "Show only", false).peer)
   125       popup.add(filter_context(List(node), false, "Show only", false).peer)
   126 
   126 
   127       popup.add(new JPopupMenu.Separator)
   127       popup.add(new JPopupMenu.Separator)
   128     }
   128     }
   129     if (!selected_nodes.isEmpty) {
   129     if (selected_nodes.nonEmpty) {
   130       val text =
   130       val text =
   131         if (selected_nodes.length > 1) "multiple"
   131         if (selected_nodes.length > 1) "multiple"
   132         else quote(selected_nodes.head.toString)
   132         else quote(selected_nodes.head.toString)
   133 
   133 
   134       popup.add(new MenuItem("Selected: " + text) { enabled = false }.peer)
   134       popup.add(new MenuItem("Selected: " + text) { enabled = false }.peer)