Package org.geoforge.guillc.menuitem

Examples of org.geoforge.guillc.menuitem.GfrMimTrsAlrIdAbs


      // beg rename llo

      if (evt.getSource() instanceof GfrMimTrsAlrIdRenLlo)
      {

         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();
         String strIdChild = mim.getId();
         String strIdParent = ((GfrMimTrsAlrIdRenLlo) mim).getIdParent();

         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

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

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

         //--



         if (strValueKindObject.compareTo(
                 GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SEG_WISE_YES.name()) == 0)
         {
            _renameLloImage_(
                    strIdChild,
                    strIdParent,
                    frmOwner,
                    GfrWrpBasSynObjNameTloEclSegWiseYes.getInstance(),
                    GfrMdlDatIdObjTloEclSegWiseYes.getInstance());

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PLC.name()) == 0)
         {
            _renameLloImage_(
                    strIdChild,
                    strIdParent,
                    frmOwner,
                    GfrWrpBasSynObjNameTloEclPlc.getInstance(),
                    GfrMdlDatIdObjTloEclPlc.getInstance());

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PNT.name()) == 0)
         {
            _renameLloImage_(
                    strIdChild,
                    strIdParent,
                    frmOwner,
                    GfrWrpBasSynObjNameTloEclPnt.getInstance(),
                    GfrMdlDatIdObjTloEclPnt.getInstance());

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_ARE.name()) == 0)
         {
            _renameLloImage_(
                    strIdChild,
                    strIdParent,
                    frmOwner,
                    GfrWrpBasSynObjNameTloEclAre.getInstance(),
                    GfrMdlDatIdObjTloEclAre.getInstance());

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SCT.name()) == 0)
         {
            _renameLloImage_(
                    strIdChild,
                    strIdParent,
                    frmOwner,
                    GfrWrpBasSynObjNameTloEclSct.getInstance(),
                    GfrMdlDatIdObjTloEclSct.getInstance());

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SPN.name()) == 0)
         {
            _renameLloImage_(
                    strIdChild,
                    strIdParent,
                    frmOwner,
                    GfrWrpBasSynObjNameTloEclSpn.getInstance(),
                    GfrMdlDatIdObjTloEclSpn.getInstance());

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PTH.name()) == 0)
         {
            _renameLloImage_(
                    strIdChild,
                    strIdParent,
                    frmOwner,
                    GfrWrpBasSynObjNameTloEclPth.getInstance(),
                    GfrMdlDatIdObjTloEclPth.getInstance());

            return true;
         }
      }

// end rename llo

      // beg rename tlo
      if (evt.getSource() instanceof GfrMimTrsAlrIdRenTlo)
      {

         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();
         String strId = mim.getId();

         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

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

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


      // beg delete llo
      if (evt.getSource() instanceof GfrMimTrsAlrIdDelChildObj)
      {

         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();
         String strIdChild = mim.getId();
         String strIdParent = ((GfrMimTrsAlrIdDelChildObj) mim).getIdParent();


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

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

         //--


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PLC.name()) == 0)
         {
            String strNameChild = GfrWrpBasSynObjNameTloEclPlc.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclPlc.getInstance().deleteImage(strIdParent, strIdChild);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PNT.name()) == 0)
         {
            String strNameChild = GfrWrpBasSynObjNameTloEclPnt.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclPnt.getInstance().deleteImage(strIdParent, strIdChild);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_ARE.name()) == 0)
         {
            String strNameChild = GfrWrpBasSynObjNameTloEclAre.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclAre.getInstance().deleteImage(strIdParent, strIdChild);

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SPN.name()) == 0)
         {
            String strNameChild = GfrWrpBasSynObjNameTloEclSpn.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclSpn.getInstance().deleteImage(strIdParent, strIdChild);

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PTH.name()) == 0)
         {
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            String strNameChild = GfrWrpBasSynObjNameTloEclPth.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclPth.getInstance().deleteImage(strIdParent, strIdChild);

            return true;
         }

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

            String strNameChild = GfrWrpBasSynObjNameTloEclSct.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclSct.getInstance().deleteImage(strIdParent, strIdChild);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SEG_WISE_YES.name()) == 0)
         {
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            String strNameChild = GfrWrpBasSynObjNameTloEclSegWiseYes.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclSegWiseYes.getInstance().deleteImage(strIdParent, strIdChild);

            return true;
         }
      }
      // end delete llo

      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjTlos)
      {
         GfrMimTrsAlrDelAllObjTlos mim = (GfrMimTrsAlrDelAllObjTlos) evt.getSource();
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

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

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

      // end settings top

      // beg settings tlo
      if (evt.getSource() instanceof GfrMimTrsAlrIdSetTlo)
      {
         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         String strId = mim.getId();

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

         String strValueKindTargetWindow = mim.getPropertyImmutable(
                 GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_TARGET_WINDOW.name());

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



      if (evt.getSource() instanceof GfrMimTrsAlrIdDelObj)
      {
         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();

         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

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

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

         //--

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgc.VALUE_TLO_WMS.name()) == 0)
         {
            String strName = GfrWrpBasSynObjNameTloWms.getInstance().getTitleService(strId);

            String strBody =
                    GfrResBundleLang.s_getInstance().getValue("sentence.confirmDelete")
                    + "\n"
                    + "   "
                    + "\""
                    + strName
                    + "\""
                    + "?";

            String strTitle = GfrResBundleLang.s_getInstance().getValue("word.delete")
                    + " \"" + strName + "\"";

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, strTitle, strBody))
            {
               return true; // action cancelled by user
            }

            GfrMdlDatSetTlosOgcWms.getInstance().deleteObjectWithId(strId);
            return true;
         }

      }



      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjTlos)
      {
         GfrMimTrsAlrDelAllObjTlos mim = (GfrMimTrsAlrDelAllObjTlos) evt.getSource();

         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

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

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

      // beg copy tlo
      if (objEvt instanceof GfrMimTrsAlrIdCopTlo)
      {

         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) objEvt;
         String strIdSource = mim.getId();

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

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

         //-- beg tlo


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SCT.name()) == 0)
         {


            String strIdTarget = GfrMdlDatSetTlosEclSct.getInstance().clone(strIdSource);

            String strNameSource = GfrWrpBasSynObjNameTloEclSct.getInstance().getName(strIdSource);
            String strNameTarget = GfrWrpBasSynObjNameTloEclSct.getInstance().getName(strIdTarget);

            String strDone = "Successfully copied:";
            strDone += "\n.   " + "source: " + strNameSource;
            strDone += "\n.   " + "copy: " + strNameTarget;
            GfrOptionPaneAbs.s_showDialogInfo(null, strDone);
            // ---
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_ARE.name()) == 0)
         {

            String strIdTarget = GfrMdlDatSetTlosEclAre.getInstance().clone(strIdSource);

            String strNameSource = GfrWrpBasSynObjNameTloEclAre.getInstance().getName(strIdSource);
            String strNameTarget = GfrWrpBasSynObjNameTloEclAre.getInstance().getName(strIdTarget);

            String strDone = "Successfully copied:";
            strDone += "\n.   " + "source: " + strNameSource;
            strDone += "\n.   " + "copy: " + strNameTarget;
            GfrOptionPaneAbs.s_showDialogInfo(null, strDone);
            // ---
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PTH.name()) == 0)
         {

            String strIdTarget = GfrMdlDatSetTlosEclPth.getInstance().clone(strIdSource);

            String strNameSource = GfrWrpBasSynObjNameTloEclPth.getInstance().getName(strIdSource);
            String strNameTarget = GfrWrpBasSynObjNameTloEclPth.getInstance().getName(strIdTarget);

            String strDone = "Successfully copied:";
            strDone += "\n.   " + "source: " + strNameSource;
            strDone += "\n.   " + "copy: " + strNameTarget;
            GfrOptionPaneAbs.s_showDialogInfo(null, strDone);
            // ---
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SEG_WISE_YES.name()) == 0)
         {

            String strIdTarget = GfrMdlDatSetTlosEclSegWiseYes.getInstance().clone(strIdSource);

            String strNameSource = GfrWrpBasSynObjNameTloEclSegWiseYes.getInstance().getName(strIdSource);
            String strNameTarget = GfrWrpBasSynObjNameTloEclSegWiseYes.getInstance().getName(strIdTarget);

            String strDone = "Successfully copied:";
            strDone += "\n.   " + "source: " + strNameSource;
            strDone += "\n.   " + "copy: " + strNameTarget;
            GfrOptionPaneAbs.s_showDialogInfo(null, strDone);
            // ---
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PNT.name()) == 0)
         {

            String strIdTarget = GfrMdlDatSetTlosEclPnt.getInstance().clone(strIdSource);

            String strNameSource = GfrWrpBasSynObjNameTloEclPnt.getInstance().getName(strIdSource);
            String strNameTarget = GfrWrpBasSynObjNameTloEclPnt.getInstance().getName(strIdTarget);

            String strDone = "Successfully copied:";
            strDone += "\n.   " + "source: " + strNameSource;
            strDone += "\n.   " + "copy: " + strNameTarget;
            GfrOptionPaneAbs.s_showDialogInfo(null, strDone);
            // ---
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PLC.name()) == 0)
         {

            String strIdTarget = GfrMdlDatSetTlosEclPlc.getInstance().clone(strIdSource);

            String strNameSource = GfrWrpBasSynObjNameTloEclPlc.getInstance().getName(strIdSource);
            String strNameTarget = GfrWrpBasSynObjNameTloEclPlc.getInstance().getName(strIdTarget);

            String strDone = "Successfully copied:";
            strDone += "\n.   " + "source: " + strNameSource;
            strDone += "\n.   " + "copy: " + strNameTarget;
            GfrOptionPaneAbs.s_showDialogInfo(null, strDone);
            // ---
            return true;
         }

        if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SPN.name()) == 0)
         {

            String strIdTarget = GfrMdlDatSetTlosEclSpn.getInstance().clone(strIdSource);

            String strNameSource = GfrWrpBasSynObjNameTloEclSpn.getInstance().getName(strIdSource);
            String strNameTarget = GfrWrpBasSynObjNameTloEclSpn.getInstance().getName(strIdTarget);

            String strDone = "Successfully copied:";
            strDone += "\n.   " + "source: " + strNameSource;
            strDone += "\n.   " + "copy: " + strNameTarget;
            GfrOptionPaneAbs.s_showDialogInfo(null, strDone);
            // ---
            return true;
         }
      }

      //end copy tlo
     
     
      //-- beg copy llo
     
      // beg delete llo
      if (evt.getSource() instanceof GfrMimTrsAlrIdCopLlo)
      {

         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();
         String strIdChildSource = mim.getId();
         String strIdParent = ((GfrMimTrsAlrIdCopLlo) mim).getIdParent();


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

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

      // ---


      if (evt.getSource() instanceof GfrMimTrsAlrIdSetTlo)
      {
         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);
         String strId = mim.getId();

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



         //-- unused for now coz only wwd earth views =>
         String strValueKindTargetWindow = mim.getPropertyImmutable(
               GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_TARGET_WINDOW.name());


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

         //--


         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SCT.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdObjEarthSct(
                     frmOwner, strId);

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

               dlg.setVisible(true);
               return true;
            }
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_ARE.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdObjEarthAre(
                     frmOwner, strId);

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

               dlg.setVisible(true);

               return true;
            }
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PTH.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdObjEarthPth(
                     frmOwner, strId);

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

               dlg.setVisible(true);

               return true;
            }
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PLC.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdObjEarthPlc(
                     frmOwner, strId);

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

               dlg.setVisible(true);
               return true;
            }
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PNT.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdObjEarthPnt(
                     frmOwner, strId);

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

               dlg.setVisible(true);
               return true;
            }
         }


         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SPN.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdObjEarthSpn(
                     frmOwner, strId);

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

               dlg.setVisible(true);
               return true;
            }
         }


         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SEG_WISE_YES.name()) == 0)
         {
            if (strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_MANAGE.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_SELECT.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.PERSPECTIVE_RUN.name()) == 0
                  || strValueKindTargetWindow.compareTo(
                  GfrEnuValuesKindTargetWindow.VIEWER_TOP_WORLDWIND.name()) == 0)
            {
               DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdObjEarthSegWiseYes(
                     frmOwner, strId);

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

               dlg.setVisible(true);
               return true;
            }
         }
      }

      if (evt.getSource() instanceof GfrMimTrsAlrSetTop)
      {
         GfrMimTrsAlrSetTop mim = (GfrMimTrsAlrSetTop) evt.getSource();

         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);


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



         //-- unused for now coz only wwd earth views , even in run (no jfc in run)
         String strValueKindTargetWindow = mim.getPropertyImmutable(
               GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_TARGET_WINDOW.name());


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


         // ---
         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SEG_WISE_YES.name()) == 0)
         {
            DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdTopEarthSegsWiseYes(
                  frmOwner);

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

            dlg.setVisible(true);

            return true;
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SPN.name()) == 0)
         {
            DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdTopEarthSpns(
                  frmOwner);

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

            dlg.setVisible(true);

            return true;
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PTH.name()) == 0)
         {
            DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdTopEarthPths(
                  frmOwner);

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

            dlg.setVisible(true);

            return true;
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PLC.name()) == 0)
         {
            DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdTopEarthPlcs(
                  frmOwner);

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

            dlg.setVisible(true);
            return true;
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PNT.name()) == 0)
         {
            DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdTopEarthPnts(
                  frmOwner);

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

            dlg.setVisible(true);
            return true;
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_ARE.name()) == 0)
         {
            DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdTopEarthAres(
                  frmOwner);

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

            dlg.setVisible(true);
            return true;
         }

         if (strValueKindObject.compareTo(
               GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SCT.name()) == 0)
         {
            DlgAbs dlg = new GfrDlgTabsSettingsDspActionWwdTopEarthScts(
                  frmOwner);

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

            dlg.setVisible(true);
            return true;
         }
      }



      if (evt.getSource() instanceof GfrMimTrsAlrIdSetLloVar)
      {

         GfrMimTrsAlrIdSetLloVar mim = (GfrMimTrsAlrIdSetLloVar) evt.getSource();

         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);
         String strId = mim.getId();

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



         //-- unused for now coz only wwd earth views =>
         String strValueKindTargetWindow = mim.getPropertyImmutable(
               GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_TARGET_WINDOW.name());


         //--
         if (strValueKindObject == null || strValueKindObject.length() < 1)
View Full Code Here

TOP

Related Classes of org.geoforge.guillc.menuitem.GfrMimTrsAlrIdAbs

Copyright © 2018 www.massapicom. 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.