Index: applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectAllInsideAction.java
===================================================================
--- applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectAllInsideAction.java	(revision 26645)
+++ applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/selection/SelectAllInsideAction.java	(revision 26646)
@@ -16,4 +16,5 @@
 
 import org.openstreetmap.josm.tools.Shortcut;
+import sun.awt.windows.WWindowPeer;
 
 /**
@@ -35,4 +36,7 @@
 
         Set<Way> selectedWays = OsmPrimitive.getFilteredSet(getCurrentDataSet().getSelected(), Way.class);
+        for (Way w: selectedWays) {
+            if (!w.isClosed()) selectedWays.remove(w);
+        }
 
         // select ways attached to already selected ways
@@ -48,5 +52,5 @@
         } else {
              JOptionPane.showMessageDialog(Main.parent,
-               tr("Please select some ways to find connected and intersecting ways!"),
+               tr("Please select some closed ways to find all primitives inside them!"),
                tr("Warning"), JOptionPane.WARNING_MESSAGE);
         }
