~hudson-ubuntu/+junk/sezpoz

« back to all changes in this revision

Viewing changes to demo/plugin1/src/main/java/demo/plugin1/ExitAction.java

  • Committer: James Page
  • Date: 2010-11-24 13:57:41 UTC
  • Revision ID: james.page@canonical.com-20101124135741-8ntgqh7ltywqy3x2
InitialĀ releaseĀ 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package demo.plugin1;
 
2
import demo.api.MenuItem;
 
3
import java.awt.event.ActionEvent;
 
4
import java.awt.event.ActionListener;
 
5
@MenuItem(name="Exit", menu="File")
 
6
public class ExitAction implements ActionListener {
 
7
    public void actionPerformed(ActionEvent e) {
 
8
        System.exit(0);
 
9
    }
 
10
}