예제 #1
0
  /** Inicialización del plugin para cargarlo desde el fichero workbench.properties */
  public void initialize(PlugInContext context) throws Exception {
    // para internacionalización
    Locale currentLocale = I18N.getLocaleAsObject();
    ResourceBundle bundle =
        ResourceBundle.getBundle(
            "com.geopista.ui.plugin.mobile.language.PluginMobileExtracti18n", currentLocale);
    I18N.plugInsResourceBundle.put(PluginMobileExtracti18n, bundle);

    FeatureInstaller featureInstaller = new FeatureInstaller(context.getWorkbenchContext());

    EnableCheckFactory checkFactory = context.getCheckFactory();
    featureInstaller.addMainMenuItem(
        this,
        new String[] {"Tools", MobilePluginI18NResource.GEOPISTAConfiguration_proyectMovil},
        I18N.get(PluginMobileExtracti18n, MobilePluginI18NResource.MobileModifyPlugin_text),
        false,
        null,
        new MultiEnableCheck()
            .add(checkFactory.createWindowWithLayerNamePanelMustBeActiveCheck())
            .add(checkFactory.createAdminUserCheck()));

    ((WorkbenchGuiComponent) context.getWorkbenchContext().getIWorkbench().getGuiComponent())
        .getToolBar("Movilidad")
        .addPlugIn(
            this.getIcon(),
            this,
            createEnableCheck(context.getWorkbenchContext()),
            context.getWorkbenchContext());
  }
예제 #2
0
  public void initialize(PlugInContext context) throws Exception {
    Locale loc = I18N.getLocaleAsObject();
    ResourceBundle bundle =
        ResourceBundle.getBundle(
            "com.geopista.ui.plugin.routeenginetools.tsp.language.RouteEngine_TSPi18n",
            loc,
            this.getClass().getClassLoader());
    I18N.plugInsResourceBundle.put("tsp", bundle);

    GeopistaNetworkEditingPlugIn geopistaNetworkEditingPlugIn =
        (GeopistaNetworkEditingPlugIn)
            (context.getWorkbenchContext().getBlackboard().get(GeopistaNetworkEditingPlugIn.KEY));
    geopistaNetworkEditingPlugIn.addAditionalPlugIn(this);
  }
  public MostrarFINRetornoMasivo() {
    Locale loc = I18N.getLocaleAsObject();
    ResourceBundle bundle =
        ResourceBundle.getBundle(
            "com.geopista.app.catastro.intercambio.language.Importacioni18n",
            loc,
            this.getClass().getClassLoader());
    I18N.plugInsResourceBundle.put("Importacion", bundle);

    final TaskMonitorDialog progressDialog =
        new TaskMonitorDialog(application.getMainFrame(), null);

    progressDialog.setTitle(application.getI18nString("CargandoDatosIniciales"));
    progressDialog.report(application.getI18nString("CargandoDatosIniciales"));
    progressDialog.addComponentListener(
        new ComponentAdapter() {
          public void componentShown(ComponentEvent e) {

            // Wait for the dialog to appear before starting the
            // task. Otherwise
            // the task might possibly finish before the dialog
            // appeared and the
            // dialog would never close. [Jon Aquino]
            new Thread(
                    new Runnable() {
                      public void run() {
                        try {
                          jbInit();
                        } catch (Exception e) {
                          e.printStackTrace();
                        } finally {
                          progressDialog.setVisible(false);
                        }
                      }
                    })
                .start();
          }
        });
    GUIUtil.centreOnWindow(progressDialog);
    progressDialog.setVisible(true);
  }
예제 #4
0
  private void initialize() {
    Locale loc = I18N.getLocaleAsObject();
    ResourceBundle bundle =
        ResourceBundle.getBundle(
            "com.geopista.app.catastro.intercambio.language.Expedientesi18n",
            loc,
            this.getClass().getClassLoader());
    I18N.plugInsResourceBundle.put("Expedientes", bundle);

    this.setLayout(new GridBagLayout());
    this.setSize(new java.awt.Dimension(800, 575));
    this.add(
        getJPanelDatosFinca(),
        new GridBagConstraints(
            0,
            0,
            1,
            1,
            0.1,
            0.1,
            GridBagConstraints.CENTER,
            GridBagConstraints.BOTH,
            new Insets(0, 5, 0, 5),
            80,
            0));
    this.add(
        getJPanelDatosBienInmueble(),
        new GridBagConstraints(
            0,
            1,
            1,
            1,
            0.1,
            0.1,
            GridBagConstraints.CENTER,
            GridBagConstraints.BOTH,
            new Insets(0, 5, 0, 5),
            150,
            0));
  }
예제 #5
0
  /**
   * This method initializes this
   *
   * @return void
   */
  private void initialize() {
    Locale loc = I18N.getLocaleAsObject();
    ResourceBundle bundle =
        ResourceBundle.getBundle(
            "com.geopista.app.catastro.intercambio.language.Expedientesi18n",
            loc,
            this.getClass().getClassLoader());
    I18N.plugInsResourceBundle.put("Expedientes", bundle);

    this.setModal(true);
    this.setContentPane(getViasSistemaPanel());
    this.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    this.setSize(DIM_X, DIM_Y);
    this.setTitle(I18N.get("Expedientes", "busqueda.vias.dialog.titulo"));
    this.setResizable(true);
    this.getOkCancelPanel().setVisible(true);
    this.addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent e) {
            dispose();
          }
        });
  }
  /**
   * This method initializes this
   *
   * @return void
   */
  private void initialize(String title) {
    Locale loc = I18N.getLocaleAsObject();
    ResourceBundle bundle =
        ResourceBundle.getBundle(
            "com.geopista.app.eiel.language.LocalGISEIELi18n",
            loc,
            this.getClass().getClassLoader());
    I18N.plugInsResourceBundle.put("LocalGISEIEL", bundle);

    this.setModal(true);
    this.setContentPane(getSaneamientoAutonomoPanel());
    this.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    this.setSize(DIM_X, DIM_Y);
    this.setTitle(title);
    this.setResizable(true);
    this.getOkCancelPanel().setVisible(true);
    this.addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent e) {
            dispose();
          }
        });
  }