Ignore:
Timestamp:
2010-01-13T20:12:10+01:00 (14 years ago)
Author:
mjulius
Message:

fix messages for gui/conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java

    r2626 r2846  
    3535import javax.swing.event.ListSelectionListener;
    3636
     37import org.openstreetmap.josm.tools.CheckParameterUtil;
    3738import org.openstreetmap.josm.tools.ImageProvider;
    3839
     
    866867         */
    867868        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");
    871870            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));
    873872
    874873            enabledMap.put(adjustable, isParticipating);
     
    906905         * @exception IllegalArgumentException thrown, if adjustable is null
    907906         */
    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");
    913910
    914911            if (! synchronizedAdjustables.contains(adjustable)) {
Note: See TracChangeset for help on using the changeset viewer.