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())
{
String str = "! pop.init()";
GfrCtrMenContextObjectSecRunOgcEcl._LOGGER_.severe(str);
throw new Exception(str);
}
Component cmpSource = (Component) evt.getSource();
pop.show(cmpSource, evt.getMouseEvent().getX(), evt.getMouseEvent().getY());
}