Files
tustu/app/com/efiAnalytics/ui/FileDeleteAction.java
johndoe6345789 e17cdf49b3 Add wizard UI components and functionality
- Implement WizardCancelActionListener to handle cancellation actions.
- Create WizardDialog for managing dialog windows with window listener.
- Add WizardDialogCallback for handling dialog callbacks.
- Introduce WizardNextActionListener for handling next actions in the wizard.
- Develop WizardPanel to manage the wizard's layout and navigation.
- Implement WizardRunnable to run wizard actions in a separate thread.
- Define WizardStepCallback interface for step callbacks in the wizard.
- Create YAxisSelectorLayoutRunnable for managing layout updates.
- Add YAxisSelectorPanel for selecting Y-axis options in the UI.
- Remove unused interfaces and classes (cP, cT, co, cx, dx, eR, eU, ev).
2026-01-11 07:05:02 +00:00

37 lines
1.1 KiB
Java

package com.efiAnalytics.ui;
import java.awt.event.ActionEvent;
import java.io.File;
import java.nio.file.Files;
import javax.swing.AbstractAction;
import javax.swing.JFileChooser;
class FileDeleteAction extends AbstractAction {
public void actionPerformed(ActionEvent paramActionEvent) {
JFileChooser jFileChooser = (JFileChooser)paramActionEvent.getSource();
try {
File[] arrayOfFile;
if (jFileChooser.isMultiSelectionEnabled()) {
arrayOfFile = jFileChooser.getSelectedFiles();
} else if (jFileChooser.getSelectedFile() != null) {
arrayOfFile = new File[1];
arrayOfFile[0] = jFileChooser.getSelectedFile();
} else {
return;
}
if (arrayOfFile != null && bV.i() == 0) {
for (File file : arrayOfFile)
Files.delete(file.toPath());
jFileChooser.rescanCurrentDirectory();
}
} catch (Exception exception) {
System.out.println(exception);
}
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/ui/bX.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/