diff --git a/build.xml b/build.xml
index 1f5fe6b45..4eb64d448 100644
|
a
|
b
|
|
| 14 | 14 | utilsplugin2/build.xml |
| 15 | 15 | log4j/build.xml |
| 16 | 16 | apache-commons/build.xml |
| 17 | | apache-http/build.xml |
| 18 | | austriaaddresshelper/build.xml"/> |
| | 17 | apache-http/build.xml" |
| | 18 | /> |
| 19 | 19 | <macrodef name="iterate"> |
| 20 | 20 | <attribute name="target"/> |
| 21 | 21 | <sequential> |
diff --git a/utilsplugin2/.classpath b/utilsplugin2/.classpath
index 754574aa7..5b0d76733 100644
|
a
|
b
|
|
| 1 | | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | | <classpath> |
| 3 | | <classpathentry kind="src" path="src"/> |
| 4 | | <classpathentry kind="src" path="test/unit"/> |
| 5 | | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> |
| 6 | | <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> |
| 7 | | <classpathentry kind="output" path="build"/> |
| 8 | | </classpath> |
| | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| | 2 | <classpath> |
| | 3 | <classpathentry kind="src" path="src"/> |
| | 4 | <classpathentry kind="src" path="test/unit"/> |
| | 5 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> |
| | 6 | <classpathentry kind="lib" path="/home/gautier/code/osm/josm/core/dist/josm-custom.jar" sourcepath="/JOSM"/> |
| | 7 | <classpathentry kind="output" path="build"/> |
| | 8 | </classpath> |
diff --git a/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/SelectAllInsideAction.java b/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/SelectAllInsideAction.java
index 006e5f3fc..f7bcbc2b4 100644
|
a
|
b
|
import java.util.Collection;
|
| 10 | 10 | |
| 11 | 11 | import javax.swing.JOptionPane; |
| 12 | 12 | |
| | 13 | import org.openstreetmap.josm.Main; |
| 13 | 14 | import org.openstreetmap.josm.actions.JosmAction; |
| 14 | 15 | import org.openstreetmap.josm.data.osm.DataSet; |
| 15 | 16 | import org.openstreetmap.josm.data.osm.OsmPrimitive; |
| 16 | 17 | import org.openstreetmap.josm.gui.Notification; |
| | 18 | import org.openstreetmap.josm.gui.dialogs.FilterDialog; |
| | 19 | import org.openstreetmap.josm.gui.dialogs.FilterTableModel; |
| 17 | 20 | import org.openstreetmap.josm.tools.Shortcut; |
| 18 | 21 | |
| 19 | 22 | /** |
| … |
… |
public class SelectAllInsideAction extends JosmAction {
|
| 33 | 36 | DataSet ds = getLayerManager().getEditDataSet(); |
| 34 | 37 | Collection<OsmPrimitive> insideSelected = NodeWayUtils.selectAllInside(ds.getSelected(), ds, true); |
| 35 | 38 | |
| | 39 | |
| | 40 | |
| 36 | 41 | if (!insideSelected.isEmpty()) { |
| 37 | 42 | ds.addSelected(insideSelected); |
| | 43 | FilterDialog filterDialog = Main.map.getToggleDialog(FilterDialog.class); |
| | 44 | if (filterDialog != null) { |
| | 45 | FilterTableModel filterTableModel = filterDialog.getFilterModel(); |
| | 46 | filterTableModel.executeFilters(); |
| | 47 | } |
| 38 | 48 | } else { |
| 39 | 49 | new Notification( |
| 40 | 50 | tr("Nothing found. Please select some closed ways or multipolygons to find all primitives inside them!")) |