Package org.geoforge.appogcecl.actionperformer

Source Code of org.geoforge.appogcecl.actionperformer.ActPrfPrjImportOgcEclAbs

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package org.geoforge.appogcecl.actionperformer;

import java.awt.event.ActionEvent;
import java.util.ArrayList;
import java.util.logging.Logger;
import javax.swing.JFrame;
import org.geoforge.awt.geoshape.ShapeAbs;
import org.geoforge.guillc.dialog.*;
import org.geoforge.guillc.frame.GfrFrmAbs;
import org.geoforge.guillc.menuitem.*;
import org.geoforge.guillc.optionpane.GfrOptionPaneAbs;
import org.geoforge.guillcogcecl.dialog.*;
import org.geoforge.guillcogcecl.enumeration.GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl;
import org.geoforge.guillcogcecl.enumeration.GfrEnuValuesKindObjectTloSpcPrjOgcEcl;
import org.geoforge.io.enumeration.GfrEnuValuesKindFileFormat;
import org.geoforge.io.header.GfrIoSheetColIdxXlosNamGeometry;
import org.geoforge.io.header.GfrIoSheetColIdxXlosNamLatLon;
import org.geoforge.lang.enumeration.GfrEnuApplicationPropertiesImmutableKeys;
import org.geoforge.java.util.logging.filehandler.FileHandlerLogger;
import org.geoforge.mdldatecl.*;
import org.geoforge.wrpbasprsdatecl.GfrWrpBasDatObjNameTloEclAbs;
import org.geoforge.wrpbasprssynecl.*;

/**
*
* @author robert
*/
abstract public class ActPrfPrjImportOgcEclAbs extends ActPrfPrjImportOgcAbs
{
   // ----
   // begin: instantiate logger for this class

   final private static Logger _LOGGER_ = Logger.getLogger(ActPrfPrjImportOgcEclAbs.class.getName());

   static
   {
      ActPrfPrjImportOgcEclAbs._LOGGER_.addHandler(FileHandlerLogger.s_getInstance());
   }
   // end: instantiate logger for this class
   // ----

   @Override
   public boolean doneJob(ActionEvent evt) throws Exception
   {
      if (super.doneJob(evt))
         return true;



      // beg import Xls top


      if (evt.getSource() instanceof GfrMimTrsAlrImpAbs)
      {
         GfrMimTrsAlrAbs mim = (GfrMimTrsAlrAbs) evt.getSource();
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);

         String strValueKindObject = mim.getPropertyImmutable(
                 GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_OBJECT.name());

         String strValueKindFileFormat = mim.getPropertyImmutable(
                 GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_FILE_FORMAT.name());

         //--
         if (strValueKindObject == null || strValueKindObject.length() < 1)
            return false;

         if (strValueKindFileFormat == null || strValueKindFileFormat.length() < 1)
            return false;

         //--
         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SCT.name()) == 0)
         {
            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_CSV.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_EXCEL.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_SHAPE_FILE.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }
         }



         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SCT.name()) == 0)
         {
            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_CSV.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_EXCEL.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_SHAPE_FILE.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SEG_WISE_YES.name()) == 0)
         {
            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_CSV.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_EXCEL.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_SHAPE_FILE.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }
         }


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PLC.name()) == 0)
         {
            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_CSV.name()) == 0)
            {
               _readCsvPlcs_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_EXCEL.name()) == 0)
            {
               _readExcPlcs_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_SHAPE_FILE.name()) == 0)
            {
               _importShapeTloPlcs_(frmOwner);
               return true;
            }
         }


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PNT.name()) == 0)
         {
            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_CSV.name()) == 0)
            {
               _readCsvPnts_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_EXCEL.name()) == 0)
            {
               _readExcPnts_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_SHAPE_FILE.name()) == 0)
            {
               _importShapeTloPnts_(frmOwner);
               return true;
            }
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_ARE.name()) == 0)
         {
            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_CSV.name()) == 0)
            {
               _readCsvAres_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_EXCEL.name()) == 0)
            {
               _readExcAres_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_SHAPE_FILE.name()) == 0)
            {
               _importShapeTloAres_(frmOwner);
               return true;
            }
         }



         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SPN.name()) == 0)
         {
            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_CSV.name()) == 0)
            {
               _readCsvSpns_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_EXCEL.name()) == 0)
            {
               _readExcSpns_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_SHAPE_FILE.name()) == 0)
            {
               String strTodo = "TODO: \n";
               strTodo += "Mim = GfrMimTrsImp \n";
               strTodo += "strValueKindObject = " + strValueKindObject + "\n";
               strTodo += "strValueKindFileFormat = " + strValueKindFileFormat + "\n";
               ActPrfPrjImportOgcEclAbs._LOGGER_.warning(strTodo);
               GfrOptionPaneAbs.s_showDialogInfo(null, strTodo);
               return true;
            }
         }


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PTH.name()) == 0)
         {
            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_CSV.name()) == 0)
            {
               _readCsvPths_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_EXCEL.name()) == 0)
            {
               _readExcPths_(frmOwner);
               return true;
            }

            if (strValueKindFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_SHAPE_FILE.name()) == 0)
            {
               _importShapeTloPths_(frmOwner);
               return true;
            }
         }

      }


      // beg image import

      if (evt.getSource() instanceof GfrMimTrsAlrIdImpFromAbs)
      {

         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();
         String strIdTlo = mim.getId();
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwner(mim);


         String strValueKindObject = mim.getPropertyImmutable(
                 GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_OBJECT.name());


         String strValueFileFormat = mim.getPropertyImmutable(
                 GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_FILE_FORMAT.name());

         //--
         if (strValueKindObject == null || strValueKindObject.length() < 1)
            return false;

         if (strValueFileFormat == null || strValueFileFormat.length() < 1)
            return false;

         //--


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SCT.name()) == 0)
         {

            if (strValueFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_IMAGE.name()) == 0)
            {
               return this._importImageChild_(
                       frmOwner,
                       strIdTlo,
                       GfrWrpBasSynObjNameTloEclSct.getInstance(),
                       GfrMdlDatIdObjTloEclSct.getInstance());
            }
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SEG_WISE_YES.name()) == 0)
         {
            if (strValueFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_IMAGE.name()) == 0)
            {
               return this._importImageChild_(
                       frmOwner,
                       strIdTlo,
                       GfrWrpBasSynObjNameTloEclSegWiseYes.getInstance(),
                       GfrMdlDatIdObjTloEclSegWiseYes.getInstance());
            }
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PLC.name()) == 0)
         {
            if (strValueFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_IMAGE.name()) == 0)
            {
               return this._importImageChild_(
                       frmOwner,
                       strIdTlo,
                       GfrWrpBasSynObjNameTloEclPlc.getInstance(),
                       GfrMdlDatIdObjTloEclPlc.getInstance());
            }
         }


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PNT.name()) == 0)
         {
            if (strValueFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_IMAGE.name()) == 0)
            {
               return this._importImageChild_(
                       frmOwner,
                       strIdTlo,
                       GfrWrpBasSynObjNameTloEclPnt.getInstance(),
                       GfrMdlDatIdObjTloEclPnt.getInstance());
            }
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_ARE.name()) == 0)
         {
            if (strValueFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_IMAGE.name()) == 0)
            {
               return this._importImageChild_(
                       frmOwner,
                       strIdTlo,
                       GfrWrpBasSynObjNameTloEclAre.getInstance(),
                       GfrMdlDatIdObjTloEclAre.getInstance());
            }

         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PTH.name()) == 0)
         {
            if (strValueFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_IMAGE.name()) == 0)
            {
               return this._importImageChild_(
                       frmOwner,
                       strIdTlo,
                       GfrWrpBasSynObjNameTloEclPth.getInstance(),
                       GfrMdlDatIdObjTloEclPth.getInstance());
            }

         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SPN.name()) == 0)
         {
            if (strValueFileFormat.compareTo(GfrEnuValuesKindFileFormat.VALUE_IMAGE.name()) == 0)
            {
               return this._importImageChild_(
                       frmOwner,
                       strIdTlo,
                       GfrWrpBasSynObjNameTloEclSpn.getInstance(),
                       GfrMdlDatIdObjTloEclSpn.getInstance());
            }

         }
      }
      // end image import

      // ending
      return false;
   }

   // ---
   protected ActPrfPrjImportOgcEclAbs()
   {
      super();
   }

   private boolean _importImageChild_(
           JFrame frmOwner,
           String strIdTlo,
           GfrWrpBasDatObjNameTloEclAbs wrp,
           GfrMdlDatIdObjTloEclAbs mdl) throws Exception
   {
      String[] strsChildrenExisting = wrp.getSortedNamesImage(strIdTlo);

      GfrDlgIoVarImpXloFromDiskImg dlg = new GfrDlgIoVarImpXloFromDiskImg(frmOwner, strsChildrenExisting);

      if (!dlg.init())
      {
         String strError = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(strError);
         GfrOptionPaneAbs.s_showDialogError(null, strError);
         return true;
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strName = null;
      String strPathAbs = null;

      if (!blnCancelled)
      {
         strName = dlg.getNameTarget();
         strPathAbs = dlg.getPath();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled) // action cancelled by user
         return true;

      mdl.newObjectImage(strIdTlo, strName, strPathAbs);

      return true;
   }

   // ---
   private void _readExcPlcs_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPlcs.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetExc dlg = new GfrDlgIoVarRdrHeadSheetExc(
              frmOwner,
              "Import placemarks from Excel file",
              strsChildrenExisting,
              3 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;


      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetPlcsExc_(frmOwner, strPathAbs, intNbCol, alt);
   }

   private void _readExcPnts_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPnts.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetExc dlg = new GfrDlgIoVarRdrHeadSheetExc(
              frmOwner,
              "Import points from Excel file",
              strsChildrenExisting,
              3 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;


      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetPntsExc_(frmOwner, strPathAbs, intNbCol, alt);
   }

   private void _readExcPths_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPths.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetExc dlg = new GfrDlgIoVarRdrHeadSheetExc(
              frmOwner,
              "Import paths from Excel file",
              strsChildrenExisting,
              2 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;


      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetPthsExc_(frmOwner, strPathAbs, intNbCol, alt);
   }

   private void _readExcAres_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclAres.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetExc dlg = new GfrDlgIoVarRdrHeadSheetExc(
              frmOwner,
              "Import areas from Excel file",
              strsChildrenExisting,
              2 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;


      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetAresExc_(frmOwner, strPathAbs, intNbCol, alt);
   }

   private void _readExcSpns_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclSpns.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetExc dlg = new GfrDlgIoVarRdrHeadSheetExc(
              frmOwner,
              "Import pointsets from Excel file",
              strsChildrenExisting,
              2 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;


      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetSpnsExc_(frmOwner, strPathAbs, intNbCol, alt);
   }

   private void _readCsvPlcs_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPlcs.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetCsv dlg = new GfrDlgIoVarRdrHeadSheetCsv(
              frmOwner,
              "Import placemarks from CSV file",
              strsChildrenExisting,
              3 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;

      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetPlcsCsv_(frmOwner, strPathAbs, intNbCol, alt);

   }

   private void _readCsvPnts_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPnts.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetCsv dlg = new GfrDlgIoVarRdrHeadSheetCsv(
              frmOwner,
              "Import points from CSV file",
              strsChildrenExisting,
              3 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;

      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetPntsCsv_(frmOwner, strPathAbs, intNbCol, alt);

   }

   private void _readCsvSpns_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclSpns.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetCsv dlg = new GfrDlgIoVarRdrHeadSheetCsv(
              frmOwner,
              "Import pointsets from CSV file",
              strsChildrenExisting,
              2 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;

      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetSpnsCsv_(frmOwner, strPathAbs, intNbCol, alt);

   }

   private void _readCsvAres_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclAres.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetCsv dlg = new GfrDlgIoVarRdrHeadSheetCsv(
              frmOwner,
              "Import areas from CSV file",
              strsChildrenExisting,
              2 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;

      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetAresCsv_(frmOwner, strPathAbs, intNbCol, alt);

   }

   private void _readCsvPths_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPths.getInstance().getSortedNamesTlo();

      GfrDlgIoVarRdrHeadSheetCsv dlg = new GfrDlgIoVarRdrHeadSheetCsv(
              frmOwner,
              "Import paths from CSV file",
              strsChildrenExisting,
              2 // intColumnMin
              );

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         GfrOptionPaneAbs.s_showDialogError(frmOwner, str);
         System.exit(1);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      String strPathAbs = null;
      ArrayList<Object[]> alt = null;
      int intNbCol = -1;

      if (!blnCancelled)
      {
         strPathAbs = dlg.getPath();
         alt = dlg.getResultList();
         intNbCol = dlg.getResultNbColumn();
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      _writeSheetPthsCsv_(frmOwner, strPathAbs, intNbCol, alt);

   }

   private void _importShapeTloAres_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclAres.getInstance().getSortedNamesTlo();

      GfrDlgIoImportFileShapeAbs dlg = new GfrDlgImportFileShapeEclAre(
              frmOwner, (String[]) strsChildrenExisting);

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);
      boolean blnCancelled = dlg.isCancelled();

      ArrayList<ShapeAbs> alt = null;
      String strPathAbsSource = null;

      if (!blnCancelled)
      {
         alt = dlg.getValueShape();
         strPathAbsSource = dlg.getValue(); // !!!
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      if (alt == null)
         return;

      if (alt.size() < 1)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsShapeAres(
              frmOwner,
              strPathAbsSource,
              alt);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _importShapeTloPlcs_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPlcs.getInstance().getSortedNamesTlo();

      GfrDlgIoImportFileShapeAbs dlg = new GfrDlgIoImportFileShapePoint2dAlone(
              frmOwner, (String[]) strsChildrenExisting,
              "Import placemarks from ESRI shape file");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);
      boolean blnCancelled = dlg.isCancelled();


      ArrayList<ShapeAbs> alt = null;
      String strPathAbsSource = null;

      if (!blnCancelled)
      {
         alt = dlg.getValueShape();
         strPathAbsSource = dlg.getValue(); // !!!
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      if (alt == null)
         return;

      if (alt.size() < 1)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsShapePlcs(
              frmOwner,
              strPathAbsSource,
              alt);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _importShapeTloPnts_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPnts.getInstance().getSortedNamesTlo();

      GfrDlgIoImportFileShapeAbs dlg = new GfrDlgIoImportFileShapePoint2dAlone(
              frmOwner, (String[]) strsChildrenExisting,
              "Import points from ESRI shape file");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);
      boolean blnCancelled = dlg.isCancelled();


      ArrayList<ShapeAbs> alt = null;
      String strPathAbsSource = null;

      if (!blnCancelled)
      {
         alt = dlg.getValueShape();
         strPathAbsSource = dlg.getValue(); // !!!
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      if (alt == null)
         return;

      if (alt.size() < 1)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsShapePnts(
              frmOwner,
              strPathAbsSource,
              alt);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _importShapeTloPths_(JFrame frmOwner) throws Exception
   {
      String[] strsChildrenExisting = GfrWrpBasTopSynEclPths.getInstance().getSortedNamesTlo();

      GfrDlgIoImportFileShapeAbs dlg = new GfrDlgImportFileShapeLinesOpenEclPth(
              frmOwner, (String[]) strsChildrenExisting);


      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);
      boolean blnCancelled = dlg.isCancelled();

      ArrayList<ShapeAbs> alt = null;
      String strPathAbsSource = null;

      if (!blnCancelled)
      {
         alt = dlg.getValueShape();
         strPathAbsSource = dlg.getValue(); // !!!
      }

      dlg.destroy();
      dlg = null;

      if (blnCancelled)
         return;

      if (alt == null)
         return;

      if (alt.size() < 1)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsShapePths(
              frmOwner,
              strPathAbsSource,
              alt);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetPlcsCsv_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosPointLatLonAlone dlg = new GfrDlgSelImpSheetTlosPointLatLonAlone(
              frmOwner,
              intNbCol,
              altHead,
              "Import placemarks from CSV - Select fields");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamLatLon choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }

      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetPlcsCsv(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetPntsCsv_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosPointLatLonAlone dlg = new GfrDlgSelImpSheetTlosPointLatLonAlone(
              frmOwner,
              intNbCol,
              altHead,
              "Import points from CSV - Select fields");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamLatLon choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }

      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetPntsCsv(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetSpnsCsv_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosEclSpns dlg = new GfrDlgSelImpSheetTlosEclSpns(
              frmOwner,
              intNbCol,
              altHead);

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamGeometry choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }

      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetSpnsCsv(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetAresCsv_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosEclAres dlg = new GfrDlgSelImpSheetTlosEclAres(
              frmOwner,
              intNbCol,
              altHead);

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamGeometry choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }

      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetAresCsv(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetPthsCsv_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosEclPths dlg = new GfrDlgSelImpSheetTlosEclPths(
              frmOwner,
              intNbCol,
              altHead);

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamGeometry choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }

      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;

      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetPthsCsv(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetPlcsExc_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosPointLatLonAlone dlg = new GfrDlgSelImpSheetTlosPointLatLonAlone(
              frmOwner,
              intNbCol,
              altHead,
              "Import placemarks from EXCEL - Select fields");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamLatLon choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }


      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;


      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetPlcsExc(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetPntsExc_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosPointLatLonAlone dlg = new GfrDlgSelImpSheetTlosPointLatLonAlone(
              frmOwner,
              intNbCol,
              altHead,
              "Import points from EXCEL - Select fields");

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamLatLon choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }


      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;


      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetPntsExc(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetSpnsExc_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosEclSpns dlg = new GfrDlgSelImpSheetTlosEclSpns(
              frmOwner,
              intNbCol,
              altHead);

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamGeometry choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }


      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;


      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetSpnsExc(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetAresExc_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosEclAres dlg = new GfrDlgSelImpSheetTlosEclAres(
              frmOwner,
              intNbCol,
              altHead);

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamGeometry choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }


      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;


      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetAresExc(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }

   private void _writeSheetPthsExc_(
           JFrame frmOwner,
           String strPathAbsSource,
           int intNbCol,
           ArrayList<Object[]> altHead) throws Exception
   {
      GfrDlgSelImpSheetTlosEclPths dlg = new GfrDlgSelImpSheetTlosEclPths(
              frmOwner,
              intNbCol,
              altHead);

      if (!dlg.init())
      {
         String str = "! dlg.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }

      dlg.setVisible(true);

      boolean blnCancelled = dlg.isCancelled();

      GfrIoSheetColIdxXlosNamGeometry choicesUser = null;

      if (!blnCancelled)
      {
         choicesUser = dlg.getUserChoices();
      }


      dlg.destroy();
      dlg = null;
      altHead.clear();
      altHead = null;

      if (blnCancelled)
         return;


      GfrDlgPgsAbs dlgProgress = new GfrDlgPgsBldObjectsSheetPthsExc(
              frmOwner,
              strPathAbsSource,
              choicesUser);

      if (!dlgProgress.init())
      {
         String str = "! dlgProgress.init()";
         ActPrfPrjImportOgcEclAbs._LOGGER_.severe(str);
         throw new Exception(str);
      }
   }
}
TOP

Related Classes of org.geoforge.appogcecl.actionperformer.ActPrfPrjImportOgcEclAbs

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.