public void storeProperties(Asta4dProperties properties) { storeNamespace(properties.getNamespace()); storePrefixEnabled(properties.isSnippetPrefixesEnabled()); storePrefixes(properties.getSnippetPrefixes()); storeFuncEnabled(properties.isSnippetConvertFuncEnabled()); storeFunc(properties.getSnippetConvertFunc()); try { this.pref.flush(); } catch (BackingStoreException e) { throw new RuntimeException(e); } }
public Asta4dProperties loadProperties() { Asta4dProperties properties = new Asta4dProperties(); properties.setNamespace(getStoredNamespace()); properties.setSnippetPrefixesEnabled(getStoredPrefixEnabled()); properties.setSnippetPrefixes(getStoredPrefixes()); properties.setSnippetConvertFuncEnabled(getStoredFuncEnabled()); properties.setSnippetConvertFunc(getStoredFunc()); return properties; }