Issue#27 removed getCause management
This commit is contained in:
parent
3390335269
commit
f3bcf8e9f7
@ -177,10 +177,6 @@ public class SibaCLI
|
||||
{
|
||||
System.err.println("SibaException = " + exception.getMessage());
|
||||
logger.error(exception.getMessage(), exception);
|
||||
if (exception.getCause() != null)
|
||||
{
|
||||
logger.error("SibaException chainée = " + exception.getCause().getMessage());
|
||||
}
|
||||
help();
|
||||
}
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ public class BackupPanel extends JPanel
|
||||
*/
|
||||
public BackupPanel() throws SibaException
|
||||
{
|
||||
|
||||
|
||||
setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
|
||||
setLayout(new BorderLayout(0, 0));
|
||||
|
||||
@ -109,16 +109,16 @@ public class BackupPanel extends JPanel
|
||||
|
||||
});
|
||||
choosePanel.add(btnNewButton, "6, 2");
|
||||
|
||||
|
||||
JLabel lblTargetDirectory = new JLabel(BUNDLE.getString("BackupPanel.lblTargetDirectory.text")); //$NON-NLS-1$
|
||||
choosePanel.add(lblTargetDirectory, "2, 4");
|
||||
lblTargetDirectory.setVerticalAlignment(SwingConstants.TOP);
|
||||
lblTargetDirectory.setHorizontalAlignment(SwingConstants.LEFT);
|
||||
|
||||
|
||||
this.targetDirectoryField = new JTextField();
|
||||
choosePanel.add(this.targetDirectoryField, "4, 4");
|
||||
this.targetDirectoryField.setColumns(10);
|
||||
|
||||
|
||||
JButton btnNewButton_1 = new JButton(BUNDLE.getString("BackupPanel.btnNewButton_1.text")); //$NON-NLS-1$
|
||||
btnNewButton_1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
|
||||
btnNewButton_1.addActionListener(new ActionListener()
|
||||
@ -126,21 +126,21 @@ public class BackupPanel extends JPanel
|
||||
@Override
|
||||
public void actionPerformed(final ActionEvent e)
|
||||
{
|
||||
|
||||
|
||||
File file = TargetDirectorySelector.showSelectorDialog(BackupPanel.this, null);
|
||||
if (file != null)
|
||||
{
|
||||
BackupPanel.this.targetDirectoryField.setText(file.getPath());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
choosePanel.add(btnNewButton_1, "6, 4");
|
||||
|
||||
|
||||
btnNewButton_1.setHorizontalAlignment(SwingConstants.RIGHT);
|
||||
|
||||
|
||||
JPanel actionPanel = new JPanel();
|
||||
|
||||
|
||||
add(actionPanel, BorderLayout.SOUTH);
|
||||
actionPanel.setLayout(new BoxLayout(actionPanel, BoxLayout.Y_AXIS));
|
||||
|
||||
@ -187,16 +187,12 @@ public class BackupPanel extends JPanel
|
||||
String titleWarning = BUNDLE.getString("BackupPanel.TitleWarning.text");
|
||||
JOptionPane.showMessageDialog(BackupPanel.this, dataMissing, titleWarning,
|
||||
JOptionPane.INFORMATION_MESSAGE);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
catch (SibaException exception)
|
||||
{
|
||||
String dataMissing = exception.getMessage();
|
||||
if (exception.getCause() != null)
|
||||
{
|
||||
dataMissing = dataMissing.concat(exception.getCause().getMessage());
|
||||
}
|
||||
|
||||
String titleWarning = BUNDLE.getString("BackupPanel.TitleWarning.text");
|
||||
JOptionPane.showMessageDialog(BackupPanel.this, dataMissing, titleWarning,
|
||||
|
@ -315,10 +315,6 @@ public class SibaGUI
|
||||
{
|
||||
logger.error("SibaException ", exception);
|
||||
String dataMissing = exception.getMessage();
|
||||
if (exception.getCause() != null)
|
||||
{
|
||||
logger.info("SibaException chainée = " + exception.getCause().getMessage());
|
||||
}
|
||||
String titleWarning = BUNDLE.getString("BackupPanel.TitleWarning.text");
|
||||
JOptionPane.showMessageDialog(null, dataMissing, titleWarning, JOptionPane.INFORMATION_MESSAGE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user