@Test public void testUpdateParameters() { sourceUI.CreateOpTab("testOp", parameterMap, appContext); parameterMap.put(FILE_PARAMETER, defaultProducts[0]); sourceUI.updateParameters(); File path = (File) parameterMap.get(FILE_PARAMETER); assertTrue(path.getAbsolutePath().equals(defaultProducts[0].getFileLocation().getAbsolutePath())); }
@Override public void updateParameters() { if (sourceProductSelector != null) { final Product prod = sourceProductSelector.getSelectedProduct(); if (prod != null && prod.getFileLocation() != null) { paramMap.put(FILE_PARAMETER, prod.getFileLocation()); } } String selectedFormat = (String)formatNameComboBox.getSelectedItem(); if(selectedFormat != null && selectedFormat.equals(ANY_FORMAT)) { selectedFormat = null; } paramMap.put(FORMAT_PARAMETER, selectedFormat); }
SourceUI extends BaseOperatorUI { @Override public void updateParameters() { if (sourceProductSelector != null) { final Product prod = sourceProductSelector.getSelectedProduct(); if (prod != null && prod.getFileLocation() != null) { paramMap.put(FILE_PARAMETER, prod.getFileLocation()); } } String selectedFormat = (String)formatNameComboBox.getSelectedItem(); if(selectedFormat != null && selectedFormat.equals(ANY_FORMAT)) { selectedFormat = null; } paramMap.put(FORMAT_PARAMETER, selectedFormat); } }
SourceUI extends BaseOperatorUI { @Override public void updateParameters() { if (sourceProductSelector != null) { final Product prod = sourceProductSelector.getSelectedProduct(); if (prod != null && prod.getFileLocation() != null) { paramMap.put(FILE_PARAMETER, prod.getFileLocation()); } } String selectedFormat = (String)formatNameComboBox.getSelectedItem(); if(selectedFormat != null && selectedFormat.equals(ANY_FORMAT)) { selectedFormat = null; } paramMap.put(FORMAT_PARAMETER, selectedFormat); }  }
SourceUI extends BaseOperatorUI { @Override public void updateParameters() { if (sourceProductSelector != null) { final Product prod = sourceProductSelector.getSelectedProduct(); if (prod != null && prod.getFileLocation() != null) { paramMap.put(FILE_PARAMETER, prod.getFileLocation()); } } String selectedFormat = (String)formatNameComboBox.getSelectedItem(); if(selectedFormat != null && selectedFormat.equals(ANY_FORMAT)) { selectedFormat = null; } paramMap.put(FORMAT_PARAMETER, selectedFormat); }  @Override JComponent CreateOpTab(String operatorName, Map<String, Object> parameterMap, AppContext appContext); @Override void initParameters(); @Override UIValidation validateParameters(); @Override void updateParameters(); void setSourceProduct(final Product product); }
SourceUI extends BaseOperatorUI { @Override public void updateParameters() { if (sourceProductSelector != null) { final Product prod = sourceProductSelector.getSelectedProduct(); if (prod != null && prod.getFileLocation() != null) { paramMap.put(FILE_PARAMETER, prod.getFileLocation()); } } String selectedFormat = (String)formatNameComboBox.getSelectedItem(); if(selectedFormat != null && selectedFormat.equals(ANY_FORMAT)) { selectedFormat = null; } paramMap.put(FORMAT_PARAMETER, selectedFormat); }  @Override JComponent CreateOpTab(String operatorName, Map<String, Object> parameterMap, AppContext appContext); @Override void initParameters(); @Override UIValidation validateParameters(); @Override void updateParameters(); void setSourceProduct(final Product product);  }