diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:01:23 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:01:23 +0000 |
commit | b232a5f78c786d3769096aebc9c13679ce35c169 (patch) | |
tree | 518015b44a8899487cfd80c0438c21c11a3b8319 /pdf-over-gui/src/main | |
parent | 01f6e6d262fbc0be426e72e047d255399002e335 (diff) | |
download | pdf-over-b232a5f78c786d3769096aebc9c13679ce35c169.tar.gz pdf-over-b232a5f78c786d3769096aebc9c13679ce35c169.tar.bz2 pdf-over-b232a5f78c786d3769096aebc9c13679ce35c169.zip |
+ fixed Warnings
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@85 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main')
4 files changed, 112 insertions, 114 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java index a7a1b6aa..522b3bad 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java @@ -41,6 +41,9 @@ import at.asit.pdfover.signator.BKUs; */ public class BKUSelectionComposite extends StateComposite { + /** + * Margin for button + */ public static final int btnMargin = 2; /** @@ -115,12 +118,12 @@ public class BKUSelectionComposite extends StateComposite { Button btn_mobile = new Button(this, SWT.NATIVE | SWT.RESIZE); - btn_mobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$ + //btn_mobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$ //Point mobile_size = btn_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT); FormData fd_btn_mobile = new FormData(); //fd_btn_mobile.left = new FormAttachment(40, 0); fd_btn_mobile.right = new FormAttachment(50, -5); - fd_btn_mobile.top = new FormAttachment(40, 0); + fd_btn_mobile.top = new FormAttachment(40, -20); //fd_btn_mobile.bottom = new FormAttachment(55, 0); btn_mobile.setLayoutData(fd_btn_mobile); btn_mobile.addSelectionListener(new MobileSelectionListener()); @@ -134,12 +137,12 @@ public class BKUSelectionComposite extends StateComposite { btn_mobile.setFont(new Font(Display.getCurrent(), fD_btn_mobile[0])); Button btn_card = new Button(this, SWT.NATIVE | SWT.RESIZE); - btn_card.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$ + //btn_card.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$ //Point card_size = btn_card.computeSize(SWT.DEFAULT, SWT.DEFAULT); FormData fd_btn_card = new FormData(); fd_btn_card.left = new FormAttachment(50, 5); //fd_btn_card.right = new FormAttachment(60, 0); - fd_btn_card.top = new FormAttachment(40, 0); + fd_btn_card.top = new FormAttachment(40, -20); //fd_btn_card.bottom = new FormAttachment(55, 0); btn_card.setLayoutData(fd_btn_card); btn_card.addSelectionListener(new LocalSelectionListener()); @@ -152,6 +155,25 @@ public class BKUSelectionComposite extends StateComposite { btn_card.setImage(karte); + Button btnMobile = new Button(this, SWT.NONE); + FormData fd_btnMobile = new FormData(); + fd_btnMobile.top = new FormAttachment(btn_mobile, 10); + //fd_btnMobile.left = new FormAttachment(btn_mobile, 0); + fd_btnMobile.right = new FormAttachment(50, -5); + fd_btnMobile.width = btn_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; + btnMobile.setLayoutData(fd_btnMobile); + btnMobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$ + btnMobile.addSelectionListener(new MobileSelectionListener()); + + Button btnCard = new Button(this, SWT.NONE); + FormData fd_btnCard = new FormData(); + fd_btnCard.top = new FormAttachment(btn_card, 10); + //fd_btnMobile.left = new FormAttachment(btn_mobile, 0); + fd_btnCard.left = new FormAttachment(50, 5); + fd_btnCard.width = btn_card.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; + btnCard.setLayoutData(fd_btnCard); + btnCard.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$ + btnCard.addSelectionListener(new LocalSelectionListener()); //this.pack(); } @@ -167,5 +189,4 @@ public class BKUSelectionComposite extends StateComposite { public void doLayout() { this.layout(true, true); } - } diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java index a158d7ca..cafcc64e 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java @@ -26,9 +26,6 @@ import at.asit.pdfover.gui.composites.DataSourceSelectComposite; import at.asit.pdfover.gui.workflow.ConfigProvider; import at.asit.pdfover.gui.workflow.StateMachine; import at.asit.pdfover.gui.workflow.Status; -import at.asit.pdfover.signator.FileNameEmlbem; -import at.asit.pdfover.signator.SignatureException; -import at.asit.pdfover.signator.SignatureParameter; /** * Selects the data source for the signature process. diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java index 92cdb774..b4398581 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java @@ -170,7 +170,7 @@ public class PrepareConfigurationState extends State { log.error( "Failed to write PDF Over config file to config directory", e); //$NON-NLS-1$ throw new InitializationException( - "Failed to write PDF Over config file to config directory", + "Failed to write PDF Over config file to config directory", //$NON-NLS-1$ e); } finally { if (pdfOverConfig != null) { @@ -201,7 +201,7 @@ public class PrepareConfigurationState extends State { log.error( "Failed to create local configuration directory!", e); //$NON-NLS-1$ throw new InitializationException( - "Failed to create local configuration directory!", + "Failed to create local configuration directory!", //$NON-NLS-1$ e); } allOK = true; diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties index 7f7e8590..643d3cff 100644 --- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties +++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties @@ -1,117 +1,97 @@ +#Eclipse messages class +#Tue Oct 23 16:04:42 CEST 2012 +BKU.LOCAL=Local BKU +BKU.MOBILE=Mobile BKU +BKU.NONE=no default +BKUSelectionComposite.btnMobile.text=MOBILE TrustedSocketFactory.FailedToCreateSecureConnection=Failed to create secure network connection - -main.title=PDF-Over -main.configuration=Configuration -main.position=Positioning -main.signature=Signing -main.done=Finish - -common.browse=browse +advanced_config.AutoPosition=Automatic positioning +advanced_config.AutoPosition_Title=Positioning +advanced_config.BKUSelection_Title=BKU Selection +advanced_config.OutputFolder=Default output folder\: +advanced_config.OutputFolder.Dialog=Select a folder +advanced_config.OutputFolder.Dialog_Title=Select Output folder +advanced_config.OutputFolder_Title=Output location +argument.error.output=is not a directory +argument.help.bku=Select the BKU to use values are\: LOCAL, MOBILE (example\: -b <option> +argument.help.config=Defines which configuration file to use. Example\: -c <config file> +argument.help.emblem=Sets the emblem file to use for the signature. Example\: -e <emblem file> +argument.help.help=shows this help message +argument.help.input=Sets the document to sign. Example\: -i <input document> +argument.help.number=Sets the telephone number to use for mobile bku. Example\: -n <number> +argument.help.output=Sets the output folder to use. Example\: -o <folder> +argument.help.password=Sets the password to use for mobile bku. Example\: -p <password> +argument.help.proxyhost=Sets the proxy host to use. Example\: -proxy <hostname/IP> +argument.help.proxyport=Sets the proxy port to use. Example\: -proxyport <port> +argument.info.help=The following options are available\: +argument.invalid.bku=BKU Argument invalid\! Use\: +argument.invalid.config=Configuration File Argument invalid\! Use\: +argument.invalid.emblem=Emblem argument invalid\! Use\: +argument.invalid.input=Document to sign argument invalid\! Use\: +argument.invalid.number=Phone Number Argument invalid\! Use\: +argument.invalid.output=Output folder argument invalid\! Use\: +argument.invalid.password=Mobile BKU password invalid\! Use\: +argument.invalid.proxyhost=Proxy host argument invalid\! Use\: +argument.invalid.proxyport=Proxy port argument invalid\! Use\: +bku_selection.card=CARD +bku_selection.mobile=MOBILE +common.ALLExtension_Description=All files common.Cancel=Cancel +common.GIFExtension_Description=Gif Dateien +common.JPGExtension_Description=JPG Dateien common.Ok=OK -common.Save=Save common.PDFExtension_Description=PDF documents -common.JPGExtension_Description=JPG Dateien -common.GIFExtension_Description=Gif Dateien -common.ALLExtension_Description=All files -common.file=File: -common.file_not_exists= does not exist! +common.Save=Save +common.browse=browse +common.file=File\: +common.file_not_exists=does not exist\! common.open=Open - -config.Simple=Simple config.Advanced=Advanced - -advanced_config.AutoPosition_Title=Positioning -advanced_config.AutoPosition=Automatic positioning -advanced_config.BKUSelection_Title=BKU Selection -advanced_config.OutputFolder_Title=Output location -advanced_config.OutputFolder=Default output folder: -advanced_config.OutputFolder.Dialog_Title=Select Output folder -advanced_config.OutputFolder.Dialog=Select a folder - -simple_config.Emblem_Title=Emblem -simple_config.EmblemEmpty=No image.\nDrag and Drop an image.\nOr use the browse button to select an emblem. -simple_config.UseEmblem=Use emblem -simple_config.MobileBKU_Title=Mobile signature -simple_config.PhoneNumber=Mobile number: -simple_config.ExampleNumber=+43676123456789 -simple_config.Proxy_Title=Proxy -simple_config.ProxyHost=Host: -simple_config.ProxyHostTemplate=Hostname or IP of proxy server -simple_config.ProxyPort=Port: -simple_config.ProxyPortTemplate=port proxy server [1-65535] - -output.success_message=Signature was successful -output.link_open_message=You can open the signed file <a>here</a> -output.link_save_message=You can save the signed file - +config.Simple=Simple dataSourceSelection.DropLabel=Drag document here dataSourceSelection.DropLabel2=Or, if you prefer dataSourceSelection.browse=Select document - -bku_selection.card=CARD -bku_selection.mobile=MOBILE - -mobileBKU.number=Number: -mobileBKU.password=Password: - -tanEnter.tries= tries left!" -tanEnter.ReferenceValue=reference value -tanEnter.TAN=TAN: - -BKU.LOCAL=Local BKU -BKU.MOBILE=Mobile BKU -BKU.NONE=no default - -error.SaveOutputFolder=Failed to save signed document to configured output folder. -error.Signatur=Signature error -error.PrepareDocument=Failed to prepare document for signature. -error.Initialization=Initialization failed. Please check your configuration. -error.Unexpected=Unexpected Error -error.LocalBKU=Please check if a local BKU is running error.Details=Details -error.Retry=Retry +error.EnteredReferenceValue=You entered the reference value\! +error.FailedToGetSignedDocument=Failed to get signed document. +error.FailedToLoadEmblem=Failed to load the emblem +error.FailedToSaveSettings=Failed to save configuration file\! +error.Initialization=Initialization failed. Please check your configuration. error.InvalidBKU=Invalid BKU selection. Please check. +error.InvalidPhoneNumber=Given phone number is invalid\! Example\: +43664123456789 error.InvalidSettings=Invalid settings are still present. Please check your input. -error.FailedToSaveSettings=Failed to save configuration file! -error.InvalidPhoneNumber=Given phone number is invalid! Example: +43664123456789 -error.EnteredReferenceValue=You entered the reference value! +error.LocalBKU=Please check if a local BKU is running +error.PrepareDocument=Failed to prepare document for signature. +error.Retry=Retry +error.SaveOutputFolder=Failed to save signed document to configured output folder. +error.Signatur=Signature error error.TanTooLong=Entered TAN too long -error.FailedToGetSignedDocument=Failed to get signed document. -error.FailedToLoadEmblem=Failed to load the emblem - -exception.InvalidEmblemFile= is an invalid emblem file! -exception.InvalidPort= is invalid has to be between 1 and -exception.PasswordTooLong=Given password is too long! -exception.PasswordTooShort=Given password is too short! - -argument.help.bku=Select the BKU to use values are: LOCAL, MOBILE (example: -b <option> -argument.invalid.bku=BKU Argument invalid! Use: - -argument.help.config=Defines which configuration file to use. Example: -c <config file> -argument.invalid.config=Configuration File Argument invalid! Use: - -argument.help.emblem=Sets the emblem file to use for the signature. Example: -e <emblem file> -argument.invalid.emblem=Emblem argument invalid! Use: - -argument.help.help=shows this help message -argument.info.help=The following options are available: - -argument.help.input=Sets the document to sign. Example: -i <input document> -argument.invalid.input=Document to sign argument invalid! Use: - -argument.help.output=Sets the output folder to use. Example: -o <folder> -argument.invalid.output=Output folder argument invalid! Use: -argument.error.output= is not a directory - -argument.help.password=Sets the password to use for mobile bku. Example: -p <password> -argument.invalid.password=Mobile BKU password invalid! Use: - -argument.help.number=Sets the telephone number to use for mobile bku. Example: -n <number> -argument.invalid.number=Phone Number Argument invalid! Use: - -argument.help.proxyhost=Sets the proxy host to use. Example: -proxy <hostname/IP> -argument.invalid.proxyhost=Proxy host argument invalid! Use: - -argument.help.proxyport=Sets the proxy port to use. Example: -proxyport <port> -argument.invalid.proxyport=Proxy port argument invalid! Use:
\ No newline at end of file +error.Unexpected=Unexpected Error +exception.InvalidEmblemFile=is an invalid emblem file\! +exception.InvalidPort=is invalid has to be between 1 and +exception.PasswordTooLong=Given password is too long\! +exception.PasswordTooShort=Given password is too short\! +main.configuration=Configuration +main.done=Finish +main.position=Positioning +main.signature=Signing +main.title=PDF-Over +mobileBKU.number=Number\: +mobileBKU.password=Password\: +output.link_open_message=You can open the signed file <a>here</a> +output.link_save_message=You can save the signed file +output.success_message=Signature was successful +simple_config.EmblemEmpty=No image.\nDrag and Drop an image.\nOr use the browse button to select an emblem. +simple_config.Emblem_Title=Emblem +simple_config.ExampleNumber=+43676123456789 +simple_config.MobileBKU_Title=Mobile signature +simple_config.PhoneNumber=Mobile number\: +simple_config.ProxyHost=Host\: +simple_config.ProxyHostTemplate=Hostname or IP of proxy server +simple_config.ProxyPort=Port\: +simple_config.ProxyPortTemplate=port proxy server [1-65535] +simple_config.Proxy_Title=Proxy +simple_config.UseEmblem=Use emblem +tanEnter.ReferenceValue=reference value +tanEnter.TAN=TAN\: +tanEnter.tries=tries left\!" |