~ubuntu-branches/debian/sid/latexdraw/sid

« back to all changes in this revision

Viewing changes to latexDraw/filters/PSFilter.java

  • Committer: Bazaar Package Importer
  • Author(s): Stuart Prescott
  • Date: 2009-07-15 23:35:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090715233552-2bblktyf2lmrkyo3
Tags: 2.0.3+1-1
* New upstream release.
* Add additional Recommended packages for new export features.
* Fix typo in long description, with thanks to Kai Weber (Closes: #529195).
* Bump standards to 3.8.2 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package latexDraw.filters;
 
2
 
 
3
import java.io.File;
 
4
 
 
5
import javax.swing.filechooser.FileFilter;
 
6
 
 
7
/** 
 
8
 * This class defines a filter for ps documents (*.ps)<br>
 
9
 *<br>
 
10
 * This file is part of LaTeXDraw<br>
 
11
 * Copyright (c) 2005-2008 Arnaud BLOUIN<br>
 
12
 *<br>
 
13
 *  LaTeXDraw is free software; you can redistribute it and/or modify
 
14
 *  it under the terms of the GNU General Public License as published by
 
15
 *  the Free Software Foundation; either version 2 of the License, or
 
16
 *  (at your option) any later version.<br>
 
17
 *<br>
 
18
 *  LaTeXDraw is distributed without any warranty; without even the 
 
19
 *  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
 
20
 *  PURPOSE. See the GNU General Public License for more details.<br>
 
21
 *<br>
 
22
 * 12/08/08<br>
 
23
 * @author Arnaud BLOUIN<br>
 
24
 * @version 2.0.3<br>
 
25
 * @since 2.0.3
 
26
 */
 
27
public class PSFilter extends FileFilter
 
28
{
 
29
        public static final String PS_EXTENSION = ".ps";//$NON-NLS-1$
 
30
        
 
31
        
 
32
        @Override
 
33
        public boolean accept(File f)
 
34
        {
 
35
                return f!=null && (f.getName().endsWith(PS_EXTENSION)|| f.isDirectory());
 
36
        }
 
37
 
 
38
 
 
39
 
 
40
        @Override
 
41
        public String getDescription()
 
42
        {
 
43
                return "*" + PS_EXTENSION; //$NON-NLS-1$ //$NON-NLS-2$
 
44
        }
 
45
}