Пример #1
0
 @Override
 protected Product createTargetProduct() throws Exception {
   final Product sourceProduct = form.getSourceProduct();
   final Product radioCorrProduct =
       GPF.createProduct(alias, parameterSupport.getParameterMap(), sourceProduct);
   if (isEnvisatFormatSelected() && getTargetProductSelector().getModel().isSaveToFileSelected()) {
     final HashMap<String, Object> n1Parameters = new HashMap<String, Object>();
     n1Parameters.put("patchedFile", getTargetProductSelector().getModel().getProductFile());
     final HashMap<String, Product> sourceProductMap = new HashMap<String, Product>();
     sourceProductMap.put("n1", form.getSourceProduct());
     sourceProductMap.put("input", radioCorrProduct);
     return GPF.createProduct("Meris.N1Patcher", n1Parameters, sourceProductMap);
   }
   return radioCorrProduct;
 }
Пример #2
0
  RadiometryDialog(String alias, AppContext appContext, String title, String helpId) {
    super(
        appContext,
        title,
        ID_APPLY_CLOSE,
        helpId,
        TargetProductSelectorModel.createEnvisatTargetProductSelectorModel());
    this.alias = alias;
    final OperatorSpi operatorSpi =
        GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi(alias);

    parameterSupport = new OperatorParameterSupport(operatorSpi.getOperatorClass());
    form =
        new RadiometryForm(
            appContext, operatorSpi, parameterSupport.getPopertySet(), getTargetProductSelector());
    OperatorMenu operatorMenu =
        new OperatorMenu(
            this.getJDialog(), operatorSpi.getOperatorClass(), parameterSupport, helpId);
    getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
  }