Package org.geoforge.guillcogcecl.dialog

Source Code of org.geoforge.guillcogcecl.dialog.GfrDlgPgsBldObjectsSheetSpnsCsv

/*
*  Copyright (C) 2011-2014 GeoForge Project
*
*  This program is free software: you can redistribute it and/or modify
*  it under the terms of the GNU Lesser General Public License as published by
*  the Free Software Foundation, either version 3 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU Lesser General Public License for more details.
*
*  You should have received a copy of the GNU Lesser General Public License
*  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package org.geoforge.guillcogcecl.dialog;

import java.util.logging.Logger;
import javax.swing.JFrame;
import org.geoforge.guillcogcecl.thread.GfrPgsThrIdsBldShtTlosGeometrySpnsCsv;
import org.geoforge.io.header.GfrIoSheetColIdxXlosNamGeometry;
import org.geoforge.lang.handler.IGfrHandlerEventListenerThreadJobProgress;
import org.geoforge.java.util.logging.filehandler.FileHandlerLogger;

/**
*
* @author Amadeus.Sowerby
*
* email: Amadeus.Sowerby_AT_gmail.com
* ... please remove "_AT_" from the above string to get the right email address
*/
public class GfrDlgPgsBldObjectsSheetSpnsCsv extends GfrDlgPgsBldObjectsSheetSpnsAbs
{

   // ----
   // begin: instantiate logger for this class
   final private static Logger _LOGGER_ = Logger.getLogger(GfrDlgPgsBldObjectsSheetSpnsCsv.class.getName());

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

   public GfrDlgPgsBldObjectsSheetSpnsCsv(
           JFrame frmOwner,
           String strPathAbsSource,
           GfrIoSheetColIdxXlosNamGeometry choicesUser)
   {
      super(frmOwner,
              strPathAbsSource,
              choicesUser);
   }

   @Override
   public boolean init()
   {
      if (!super.init())
         return false;

      try
      {
         if (!super._blnCancelled)
         {
             super.pack();
             super.setVisible(true);
            
            super._thr = new GfrPgsThrIdsBldShtTlosGeometrySpnsCsv(
                    (IGfrHandlerEventListenerThreadJobProgress) this,
                    super._pbr,
                    super._lbl,
                    super._strPathAbsSourceOri,
                    (GfrIoSheetColIdxXlosNamGeometry) super._choicesUser);
  
         }
         else
         {
            System.err.println("super._blnCancelled");
         }

      }
      catch (Exception exc)
      {
         if (super._frmOwner != null)
            super._frmOwner.setEnabled(true);

         if (super._blnCancelled)
         {
            GfrDlgPgsBldObjectsSheetSpnsCsv._LOGGER_.info("super._blnCancelled");
            return true;
         }

         exc.printStackTrace();
         String str = exc.getMessage();
         GfrDlgPgsBldObjectsSheetSpnsCsv._LOGGER_.severe(str);
         return false;
      }

      return true;
   }

}
TOP

Related Classes of org.geoforge.guillcogcecl.dialog.GfrDlgPgsBldObjectsSheetSpnsCsv

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.