}
@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;
GfrSetRlrTopMainSegsWiseYesAbs._LOGGER_.warning(str);
return null;
}
// ----
GfrRlrObjTloAbs lyr = new GfrRlrObjTloRndSngSurfaceLineSegWiseYesEcl(
(PropertyChangeListener) this,
strId);
if (! lyr.init())
{
String str = "! lyr.init()";
GfrSetRlrTopMainSegsWiseYesAbs._LOGGER_.severe(str);
throw new Exception(str);
}
llt.add(lyr);
javax.swing.SwingUtilities.invokeLater(new Runnable()
{
@Override
public void run()