summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:06:46 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:06:46 +0000
commit4752ea7b11a1194089c1a36675cb2df4d2a28f2d (patch)
tree2997034801c635746d320c89f580d7e0c62ebab6 /pdf-over-gui/src/main/java/at
parent6959ae0297657ad2d3a90dfd8a9bbfef98008b6e (diff)
downloadpdf-over-4752ea7b11a1194089c1a36675cb2df4d2a28f2d.tar.gz
pdf-over-4752ea7b11a1194089c1a36675cb2df4d2a28f2d.tar.bz2
pdf-over-4752ea7b11a1194089c1a36675cb2df4d2a28f2d.zip
Enable output dialog to display all files
Also make signed suffix a constant git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@136 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
index 566ee560..abbed9e7 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
@@ -54,6 +54,8 @@ public class OutputComposite extends StateComposite {
**/
static final Logger log = LoggerFactory.getLogger(OutputComposite.class);
+ private final static String SIGNED_SUFFIX = "_signed"; //$NON-NLS-1$
+
private File inputFile;
File outputFile = null;
@@ -102,9 +104,10 @@ public class OutputComposite extends StateComposite {
void saveFile() throws IOException {
FileDialog save = new FileDialog(OutputComposite.this.getShell(),
SWT.SAVE | SWT.NATIVE);
- save.setFilterExtensions(new String[] { "*.pdf" }); //$NON-NLS-1$
- save.setFilterNames(new String[] { Messages
- .getString("common.PDFExtension_Description") }); //$NON-NLS-1$
+ save.setFilterExtensions(new String[] { "*.pdf", "*" }); //$NON-NLS-1$ //$NON-NLS-2$
+ save.setFilterNames(new String[] {
+ Messages.getString("common.PDFExtension_Description"), //$NON-NLS-1$
+ Messages.getString("common.ALLExtension_Description")}); //$NON-NLS-1$
String proposed = OutputComposite.this.getInputFile().getAbsolutePath();
@@ -124,7 +127,7 @@ public class OutputComposite extends StateComposite {
name = FilenameUtils.removeExtension(name);
- proposed = path + name + "_signed." + extension; //$NON-NLS-1$
+ proposed = path + name + SIGNED_SUFFIX + "." + extension; //$NON-NLS-1$
if (this.getOutputDir() != null && !this.getOutputDir().equals("")) //$NON-NLS-1$
{