if (! (objTopWwd instanceof AVList))
{
return;
}
AVList lstTopWwd = (AVList) objTopWwd;
Object objHasContext = lstTopWwd.getValue(GfrKeysRnd.STR_HAS_CONTEXTUAL_MENU);
if (objHasContext == null)
return;
Boolean booHasContextMenu = (Boolean) objHasContext;
if (! booHasContextMenu.booleanValue())
return;
GfrPmuCtlDspWwdAbs pop = null;
if (lstTopWwd instanceof GfrRndSurfaceSectorTloSct)
{
String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
pop = new GfrPmuCtlDspWwdTloEclSct(super._alrController, strId,
GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
}
else if (lstTopWwd instanceof GfrRndSurfacePolygonTloAre)
{
String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
pop = new GfrPmuCtlDspWwdTloEclAre(super._alrController, strId,
GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
}
else if (lstTopWwd instanceof GfrRndSurfacePolylineWisNoTloPth)
{
String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
pop = new GfrPmuCtlDspWwdTloEclPth(super._alrController, strId,
GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
}
else if (lstTopWwd instanceof GfrRndSurfaceSegmentWiseYesTloEcl)
{
String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
pop = new GfrPmuCtlDspWwdTloEclSegWiseYes(super._alrController, strId,
GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
}
else if (lstTopWwd instanceof GfrRndPointPlacemarkPushpinTloPlc)
{
String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
pop = new GfrPmuCtlDspWwdTloEclPlc(super._alrController, strId,
GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
}
else if (lstTopWwd instanceof GfrRndPointPlacemarkCircleLloSpn)
{
String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
pop = new GfrPmuCtlDspWwdTloEclSpn(super._alrController, strId,
GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
}
else if (lstTopWwd instanceof GfrRndPointPlacemarkCircleTloPnt)
{
String strId = ((IGfrHandlerWwdEarthObjectGeoforgeAbs) lstTopWwd).getIdObjectGeoforgeWwdEarth();
pop = new GfrPmuCtlDspWwdTloEclPnt(super._alrController, strId,
GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name());
}
else
{
String str = "Uncaught instanceof lstTopWwd: " + lstTopWwd.getClass().toString();
GfrCtrMenContextObjectSecRunOgcEcl._LOGGER_.severe(str);
throw new Exception(str);
}
if (! pop.init())