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