2121package org .verapdf .gui ;
2222
2323import org .verapdf .apps .Applications ;
24+ import org .verapdf .apps .AppsConstants ;
2425import org .verapdf .apps .utils .ApplicationUtils ;
2526import org .verapdf .core .utils .FileUtils ;
2627import org .verapdf .gui .utils .*;
@@ -115,7 +116,7 @@ class CheckerPanel extends JPanel {
115116
116117 this .initGui ();
117118
118- this .pdfChooser = getChooser (true , GUIConstants .PDF , GUIConstants .ZIP );
119+ this .pdfChooser = getChooser (true , AppsConstants .PDF , AppsConstants .ZIP );
119120 this .pdfChooser .setMultiSelectionEnabled (true );
120121 this .pdfChooser .setFileSelectionMode (JFileChooser .FILES_AND_DIRECTORIES );
121122 this .xmlChooser = getChooser (false , GUIConstants .XML );
@@ -266,7 +267,7 @@ private void setupChosenPDFField(final GridBagLayout gbl, final GridBagConstrain
266267 this .add (this .chosenPDF );
267268
268269 PanelDropTargetListener dtdPDFListener = new PanelDropTargetListener (-1 ,
269- GUIConstants .PDF , GUIConstants .ZIP );
270+ AppsConstants .PDF , AppsConstants .ZIP );
270271 targetPDF = new DropTarget (this .chosenPDF , DnDConstants .ACTION_COPY_OR_MOVE ,
271272 dtdPDFListener , true , null );
272273 }
@@ -284,7 +285,7 @@ private void setupChoosePDFButton(final GridBagLayout gbl, final GridBagConstrai
284285 choosePDF .addActionListener (new ActionListener () {
285286 @ Override
286287 public void actionPerformed (final ActionEvent e ) {
287- CheckerPanel .this .chooseFile (CheckerPanel .this .pdfChooser , new String [] { GUIConstants .PDF });
288+ CheckerPanel .this .chooseFile (CheckerPanel .this .pdfChooser , new String [] { AppsConstants .PDF });
288289 }
289290 });
290291 }
@@ -782,7 +783,7 @@ public void insertFilesInfo(List<File> selectedFiles, String[] extensions){
782783 this .viewHTML .setEnabled (false );
783784
784785 switch (extensions [0 ]) {
785- case GUIConstants .PDF :
786+ case AppsConstants .PDF :
786787 this .pdfsToProcess = ApplicationUtils .filterPdfFiles (selectedFiles , true , true );
787788 this .chosenPDF .setText (getSelectedPathsMessage (selectedFiles ));
788789 break ;
@@ -889,7 +890,7 @@ VeraAppConfig appConfigFromState() {
889890 ProcessType selectedItem = (ProcessType ) this .processTypes .getSelectedItem ();
890891 if (isFixMetadata () && config .getApplicationConfig ().getFixesFolder ().isEmpty () && this .pdfsToProcess != null ) {
891892 for (File pdf : pdfsToProcess ) {
892- if (FileUtils .hasExtNoCase (pdf .getName (), GUIConstants .ZIP )) {
893+ if (FileUtils .hasExtNoCase (pdf .getName (), AppsConstants .ZIP )) {
893894 logger .log (Level .WARNING , "Fixing metadata are not supported for zip processing, if save folder isn't defined" );
894895 this .fixMetadata .setSelected (false );
895896 break ;
0 commit comments