forked from External/mage
Big refactoring
I used Intellij IDEA to automatically refactor code to achive 3 goals. 1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog). 2) make effectively final variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible. 3) Get rid of unused imports (most of the changes) in whole project classes.
This commit is contained in:
parent
a9f2c8c407
commit
076840df53
247 changed files with 1919 additions and 3682 deletions
|
|
@ -206,34 +206,18 @@ public class TableWaitingDialog extends MageDialog {
|
|||
|
||||
btnMoveUp.setText("Move Up");
|
||||
btnMoveUp.setEnabled(false);
|
||||
btnMoveUp.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
btnMoveUpActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
btnMoveUp.addActionListener(evt -> btnMoveUpActionPerformed(evt));
|
||||
|
||||
btnMoveDown.setText("Move Down");
|
||||
btnMoveDown.setEnabled(false);
|
||||
btnMoveDown.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
btnMoveDownActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
btnMoveDown.addActionListener(evt -> btnMoveDownActionPerformed(evt));
|
||||
|
||||
btnCancel.setText("Cancel");
|
||||
btnCancel.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
btnCancelActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
btnCancel.addActionListener(evt -> btnCancelActionPerformed(evt));
|
||||
|
||||
btnStart.setText("Start");
|
||||
btnStart.setEnabled(false);
|
||||
btnStart.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
btnStartActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
btnStart.addActionListener(evt -> btnStartActionPerformed(evt));
|
||||
|
||||
jSplitPane1.setDividerLocation(300);
|
||||
jSplitPane1.setDividerSize(3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue