@Test public void testSetDefaultSourceDirectory_fromPreferences() { assumeTrue(isGuiAvailable); final DefaultAppContext appContext = new DefaultAppContext("bla"); final File file = new File("/default/source/directory"); GuiHelper.setDefaultSourceDirectory(file, appContext); final String propertyString = appContext.getPreferences().getPropertyString("org.esa.beam.smos.export.sourceDir"); assertEquals(file.getPath(), propertyString); }
public static void setDefaultSourceDirectory(File sourceDirectory, AppContext appContext) { appContext.getPreferences().setPropertyString(LAST_SOURCE_DIR_KEY, sourceDirectory.getPath()); }
GuiHelper { public static void setDefaultSourceDirectory(File sourceDirectory, AppContext appContext) { appContext.getPreferences().setPropertyString(LAST_SOURCE_DIR_KEY, sourceDirectory.getPath()); } }
GuiHelper { public static void setDefaultSourceDirectory(File sourceDirectory, AppContext appContext) { appContext.getPreferences().setPropertyString(LAST_SOURCE_DIR_KEY, sourceDirectory.getPath()); }  }
GuiHelper { public static void setDefaultSourceDirectory(File sourceDirectory, AppContext appContext) { appContext.getPreferences().setPropertyString(LAST_SOURCE_DIR_KEY, sourceDirectory.getPath()); }  static JPanel createPanelWithBoxLayout(); static TableLayout createTableLayout(int columnCount); static TableLayout createWeightedTablelayout(int columnCount); static void addSourceProductsButtons(JPanel sourceProductPanel, boolean canProductSelectionBeEnabled, BindingContext bindingContext); static JComponent createFileEditorComponent(PropertyDescriptor descriptor, final ChooserFactory cf, BindingContext bindingContext); static JComponent createFileEditorComponent(PropertyDescriptor descriptor, final ChooserFactory cf, BindingContext bindingContext, boolean bindEtcButton); static File getDefaultSourceDirectory(AppContext appContext); static void setDefaultSourceDirectory(File sourceDirectory, AppContext appContext); static File getDefaultTargetDirectory(AppContext appContext); static void setDefaultTargetDirectory(File targetDirectory, AppContext appContext); static Geometry getSelectedGeometry(AppContext appContext); static java.util.List<VectorDataNode> getGeometries(Product selectedProduct); static java.util.List<Geometry> getPolygonGeometries(Product selectedProduct); static void bindGeometryVectorDataNodes(java.util.List<VectorDataNode> geometryNodeList, PropertyContainer propertyContainer); static void bindGeometries(java.util.List<Geometry> geometryNodeList, PropertyContainer propertyContainer); static JComboBox createGeometryComboBox(PropertyDescriptor geometryDescriptor, BindingContext bindingContext); static Component createLatLonCoordinatePanel(String name, String displayName, int numColumns, PropertyContainer propertyContainer, BindingContext bindingContext); static Component createLatLonPanel(PropertyContainer propertyContainer, BindingContext bindingContext); static void bindLonLatPanelToRoiType(int roiTypeId, BindingContext bindingContext); }
GuiHelper { public static void setDefaultSourceDirectory(File sourceDirectory, AppContext appContext) { appContext.getPreferences().setPropertyString(LAST_SOURCE_DIR_KEY, sourceDirectory.getPath()); }  static JPanel createPanelWithBoxLayout(); static TableLayout createTableLayout(int columnCount); static TableLayout createWeightedTablelayout(int columnCount); static void addSourceProductsButtons(JPanel sourceProductPanel, boolean canProductSelectionBeEnabled, BindingContext bindingContext); static JComponent createFileEditorComponent(PropertyDescriptor descriptor, final ChooserFactory cf, BindingContext bindingContext); static JComponent createFileEditorComponent(PropertyDescriptor descriptor, final ChooserFactory cf, BindingContext bindingContext, boolean bindEtcButton); static File getDefaultSourceDirectory(AppContext appContext); static void setDefaultSourceDirectory(File sourceDirectory, AppContext appContext); static File getDefaultTargetDirectory(AppContext appContext); static void setDefaultTargetDirectory(File targetDirectory, AppContext appContext); static Geometry getSelectedGeometry(AppContext appContext); static java.util.List<VectorDataNode> getGeometries(Product selectedProduct); static java.util.List<Geometry> getPolygonGeometries(Product selectedProduct); static void bindGeometryVectorDataNodes(java.util.List<VectorDataNode> geometryNodeList, PropertyContainer propertyContainer); static void bindGeometries(java.util.List<Geometry> geometryNodeList, PropertyContainer propertyContainer); static JComboBox createGeometryComboBox(PropertyDescriptor geometryDescriptor, BindingContext bindingContext); static Component createLatLonCoordinatePanel(String name, String displayName, int numColumns, PropertyContainer propertyContainer, BindingContext bindingContext); static Component createLatLonPanel(PropertyContainer propertyContainer, BindingContext bindingContext); static void bindLonLatPanelToRoiType(int roiTypeId, BindingContext bindingContext); static final String LAST_SOURCE_DIR_KEY; static final String LAST_TARGET_FILE_KEY; static final String LAST_TARGET_DIR_KEY; }