Package org.springframework.richclient.settings

Examples of org.springframework.richclient.settings.Settings.save()


    parentElement.appendChild(childElement);

    TestableXmlSettingsReaderWriter readerWriter = new TestableXmlSettingsReaderWriter();
    RootXmlSettings parentSettings = new RootXmlSettings(doc, readerWriter);
    Settings childSettings = parentSettings.getSettings("child-settings");
    childSettings.save();

    assertEquals(parentSettings, readerWriter.lastWritten);
  }
   
    public void testChildSettings() throws ParserConfigurationException, FactoryConfigurationError, SAXException, IOException {
View Full Code Here


  public void saveGoogleKey(String googleKey){
    try{
      Settings userSettings = settingsStoreManager.getUserSettings();
      userSettings.setString(GOOGLE_KEY, googleKey);
      userSettings.save();
    }
    catch (SettingsException e) {
      log.warn("Unable to get user settings", e);
    }
    catch (IOException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.