Changeset 2846 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
- Timestamp:
- 2010-01-13T20:12:10+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
r2626 r2846 35 35 import javax.swing.event.ListSelectionListener; 36 36 37 import org.openstreetmap.josm.tools.CheckParameterUtil; 37 38 import org.openstreetmap.josm.tools.ImageProvider; 38 39 … … 866 867 */ 867 868 protected void setParticipatingInSynchronizedScrolling(Adjustable adjustable, boolean isParticipating) { 868 if (adjustable == null) 869 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "adjustable")); 870 869 CheckParameterUtil.ensureParameterNotNull(adjustable, "adjustable"); 871 870 if (! synchronizedAdjustables.contains(adjustable)) 872 throw new IllegalStateException(tr("Adjustable {0} not registered yet. Can 't set participation in synchronized adjustment.", adjustable));871 throw new IllegalStateException(tr("Adjustable {0} not registered yet. Cannot set participation in synchronized adjustment.", adjustable)); 873 872 874 873 enabledMap.put(adjustable, isParticipating); … … 906 905 * @exception IllegalArgumentException thrown, if adjustable is null 907 906 */ 908 protected void adapt(final JCheckBox view, final Adjustable adjustable) throws IllegalArgumentException, IllegalStateException { 909 if (adjustable == null) 910 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "adjustable")); 911 if (view == null) 912 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "view")); 907 protected void adapt(final JCheckBox view, final Adjustable adjustable) throws IllegalStateException { 908 CheckParameterUtil.ensureParameterNotNull(adjustable, "adjustable"); 909 CheckParameterUtil.ensureParameterNotNull(view, "view"); 913 910 914 911 if (! synchronizedAdjustables.contains(adjustable)) {
Note:
See TracChangeset
for help on using the changeset viewer.