}
@Override
public Object addObjectVariable(String strId) throws Exception
{
LayerList llt = super._cnv.getModel().getLayers();
for (Layer lyrCur: llt)
{
if (! (lyrCur instanceof GfrRlrObjTloRndSngSurfaceLineSegWiseYesEcl))
continue;
String strIdCur = ((GfrRlrObjTloAbs) lyrCur).getIdObjectGeoforgeWwdEarth();
if (strIdCur.compareTo(strId) != 0)
continue;
// bug
String str = "already loaded: " + strId;
GfrSetRlrTopSecEclSegsWiseYes._LOGGER_.warning(str);
return null;
}
// ----
GfrRlrObjTloAbs lyr = new GfrRlrObjTloRndSngSurfaceLineSegWiseYesEcl(
(PropertyChangeListener) this,
strId);
if (! lyr.init())
{
String str = "! lyr.init()";
GfrSetRlrTopSecEclSegsWiseYes._LOGGER_.severe(str);
throw new Exception(str);
}
llt.add(lyr);
if (! GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strId))
{
lyr.setEnabled(false);
return lyr;