diff options
| author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:32:45 +0000 | 
|---|---|---|
| committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:32:45 +0000 | 
| commit | a0441f22bc3ac6221fba0d8c6f0028287f12fbb9 (patch) | |
| tree | 90aa6cd980f83defe22a78de775ca941589e6114 /pdf-over-gui/src | |
| parent | 3f69a54ce7268c1bdf3e5a8ad9fa45880f003d8f (diff) | |
| download | pdf-over-a0441f22bc3ac6221fba0d8c6f0028287f12fbb9.tar.gz pdf-over-a0441f22bc3ac6221fba0d8c6f0028287f12fbb9.tar.bz2 pdf-over-a0441f22bc3ac6221fba0d8c6f0028287f12fbb9.zip | |
Save mobile BKU URL/type
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@376 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src')
| -rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java | 16 | 
1 files changed, 12 insertions, 4 deletions
| diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java index f7fe13a8..63a69a53 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProviderImpl.java @@ -278,18 +278,18 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator,  		props.setProperty(Constants.CFG_BKU, this.getDefaultBKUPersistent().toString());  		props.setProperty(Constants.CFG_PROXY_HOST, this.getProxyHostPersistent());  		props.setProperty(Constants.CFG_PROXY_PORT, -				Integer.toString(this.getProxyPortPersistent())); +				Integer.toString(getProxyPortPersistent()));  		props.setProperty(Constants.CFG_EMBLEM, this.getDefaultEmblemPersistent());  		props.setProperty(Constants.CFG_SIGNATURE_NOTE, this.getSignatureNote());  		props.setProperty(Constants.CFG_MOBILE_NUMBER, this.getDefaultMobileNumberPersistent());  		props.setProperty(Constants.CFG_OUTPUT_FOLDER, this.getDefaultOutputFolderPersistent());  		props.setProperty(Constants.CFG_SIGNATURE_PLACEHOLDER_TRANSPARENCY, -				Integer.toString(this.getPlaceholderTransparency())); +				Integer.toString(getPlaceholderTransparency()));  		Point size = this.configuration.getMainWindowSize();  		props.setProperty(Constants.CFG_MAINWINDOW_SIZE, size.x + "," + size.y); //$NON-NLS-1$ -		Locale configLocale = this.getLocale(); +		Locale configLocale = getLocale();  		if(configLocale != null) {  			props.setProperty(Constants.CFG_LOCALE, LocaleSerializer.getParsableString(configLocale));  		} @@ -299,7 +299,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator,  			props.setProperty(Constants.CFG_SIGN_LOCALE, LocaleSerializer.getParsableString(signLocale));  		} -		SignaturePosition pos = this.getDefaultSignaturePosition(); +		SignaturePosition pos = getDefaultSignaturePosition();  		if (pos == null) {  			props.setProperty(Constants.CFG_SIGNATURE_POSITION, ""); //$NON-NLS-1$ @@ -311,6 +311,14 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator,  							pos.getX(), pos.getY(), pos.getPage()));  		} +		String mobileBKUURL = getMobileBKUURL(); +		if (!mobileBKUURL.equals(Constants.DEFAULT_MOBILE_BKU_URL)) +			props.setProperty(Constants.CFG_MOBILE_BKU_URL, mobileBKUURL); + +		MobileBKUs mobileBKUType = getMobileBKUType(); +		if (mobileBKUType != Constants.DEFAULT_MOBILE_BKU_TYPE) +			props.setProperty(Constants.CFG_MOBILE_BKU_TYPE, mobileBKUType.toString()); +  		FileOutputStream outputstream = new FileOutputStream(configFile, false);  		props.store(outputstream, "Configuration file was generated!"); //$NON-NLS-1$ | 
