if (strStateOrbitViewSource != null)
{
GfrSerializeStateWwdSel.s_write(strStateOrbitViewSource);
}
GfrDlgCmdCancelBldObjWwdEarthAbs dlg = _createBuilderSection();
if (!dlg.init())
{
String str = "! dlg.init()";
GfrAcrSpcAppPrsPrjSelOgcEclAbs._LOGGER_.severe(str);
throw new Exception(str);
}
dlg.setVisible(true);
boolean blnCancelledPicks = dlg.isCancelled();
ArrayList<LatLon> alt = null;
if (!blnCancelledPicks)
alt = (ArrayList<LatLon>) dlg.getValue();
if (blnCancelledPicks)
{
dlg.destroy();
dlg = null;
return;
}
// ---
//
String[] strsChoice =
{
"Check all inside sector",
"Uncheck all inside sector",
"Only check all inside sector",
"Only check all outside sector"
};
final String objBodyMessage = "Filtering top-objects by using sector,\n please choose from list below:\n\n";
final String strTitleMessage = "Select top-objects - Step 2/2";
Object objValueInitial = strsChoice[0];
Object objResult = JOptionPane.showInputDialog(
null, objBodyMessage, strTitleMessage,
JOptionPane.QUESTION_MESSAGE, (Icon) null, strsChoice, objValueInitial);
// ---
dlg.destroy();
dlg = null;
if (objResult == null)
return; // action cancelled