Fix for bug in handling of null file path/ext code for report modules

This commit is contained in:
Richard Cordovano 2013-11-13 19:35:31 -05:00
parent 0258dfbf89
commit b3856fd0d1

View File

@ -48,18 +48,18 @@ public class ReportProgressPanel extends javax.swing.JPanel {
} }
private void customInit(String reportName, String reportPath) { private void customInit(String reportName, String reportPath) {
reportLabel.setText(reportName);
pathLabel.setText("<html><u>" + shortenPath(reportPath) + "</u></html>");
pathLabel.setToolTipText(reportPath);
reportProgressBar.setIndeterminate(true); reportProgressBar.setIndeterminate(true);
reportProgressBar.setMaximum(100); reportProgressBar.setMaximum(100);
reportLabel.setText(reportName);
processingLabel.setText("Queuing..."); processingLabel.setText("Queuing...");
STATUS = ReportStatus.QUEUING; STATUS = ReportStatus.QUEUING;
if (reportPath != null) { if (reportPath != null) {
// Add the "link" effect to the pathLabel pathLabel.setText("<html><u>" + shortenPath(reportPath) + "</u></html>");
pathLabel.setToolTipText(reportPath);
// Add the "link" effect to the pathLabel
final String linkPath = reportPath; final String linkPath = reportPath;
pathLabel.addMouseListener(new MouseListener() { pathLabel.addMouseListener(new MouseListener() {