Skip to content

Commit

Permalink
empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rjolly committed May 30, 2018
1 parent cbed4c4 commit dc30dd8
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions pdfview/src/linoleum/pdfview/PDFViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
import linoleum.application.FileChooser;
import linoleum.application.FileSupport;
import linoleum.application.Frame;

Expand All @@ -32,7 +29,6 @@ public class PDFViewer extends FileSupport {
private final Icon openIcon = new ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Open16.gif"));
private final Action openAction = new OpenAction();
private final Action closeAction = new CloseAction();
private final FileChooser chooser = new FileChooser();
private int curpage = -1;
private PDFFile curFile;
private String docName;
Expand All @@ -47,18 +43,7 @@ public OpenAction() {

@Override
public void actionPerformed(final ActionEvent e) {
final int returnVal = getOwner().chooser.showInternalOpenDialog(PDFViewer.this);
switch (returnVal) {
case JFileChooser.APPROVE_OPTION:
final URI uri = getURI();
if (uri != null) {
close();
}
setURI(getOwner().chooser.getSelectedFile().toURI());
open();
break;
default:
}
getApplicationManager().get("Files").open(getURI(), getDesktopPane());
}
}

Expand All @@ -79,7 +64,6 @@ public PDFViewer() {
initComponents();
setDescription("PDF viewer (may require jai in some cases)");
setIcon(new ImageIcon(getClass().getResource("reader.png")));
chooser.setFileFilter(new FileNameExtensionFilter("PDF Files", "pdf"));
setMimeType("application/pdf");
setTitle(TITLE);
setEnabling();
Expand Down

0 comments on commit dc30dd8

Please sign in to comment.