Files
openide/java/java-tests/testData/codeInsight/moveStatementAction/moveStatementWithAnonClass_afterDown.java
Dmitry Jemerov 285a5acd66 Move Java-specific part of MoveStatementUpDownTest to java-tests module
GitOrigin-RevId: fd3331c90f28706c98d60134126defb1355e595b
2022-05-13 18:58:38 +00:00

25 lines
727 B
Java

import javax.swing.*;
import java.util.List;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
/**
* XXX
*/
class CL {
public static void main(String[] args) {
JButton a = new JButton (), b = new JButton (), c=new JButton();
b.addActionListener (new ActionListener(){ //<<------ WON'T GO DOWN !!
public void actionPerformed (ActionEvent e1) { }
});//1
c.addActionListener (new ActionListener(){ //down here
public void actionPerformed (ActionEvent e3) { }
});//3
<caret>a.addActionListener (new ActionListener(){ //<<------ WON'T GO UP !!
public void actionPerformed (ActionEvent e2) { }
});//2
}
}