view artifacts/src/main/java/org/dive4elements/river/artifacts/states/DistanceOnlyPartSelect.java @ 9175:34dc0163ad2d

DistancePanel Berechnungsstrecke->Darstellungsbereich Refactoring
author gernotbelger
date Mon, 25 Jun 2018 17:58:11 +0200
parents 611a523fc42f
children e014eca211a3
line wrap: on
line source
/* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU AGPL (>=v3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out the
 * documentation coming with Dive4Elements River for details.
 */

package org.dive4elements.river.artifacts.states;

import org.apache.log4j.Logger;
import org.dive4elements.artifacts.CallContext;
import org.dive4elements.river.artifacts.resources.Resources;

public class DistanceOnlyPartSelect extends DistanceOnlySelect {

    private static Logger log = Logger.getLogger(DistanceOnlyPartSelect.class);

    @Override
    protected String getUIProvider() {
        return "distance_only_part_panel";
    }

    @Override
    protected String getTitle(final CallContext context) {
        // REMARK: that is how it should be: return Resources.getMsg(context.getMeta(), getID());
        return Resources.getMsg(context.getMeta(), "state.title.distance_part_state");
    }

}

http://dive4elements.wald.intevation.org