});
toolbar.add(removeBtn);
JButton analyzeBtn = new JButton("Analyze");
analyzeBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
final Revision rev = _revisionChooser.getSelectedRevision();
if (rev != null) {
WaitPanel.start(DLPanel.this, new Runnable(){
public void run() {
getRevisionDescriptorPanel().setDescriptor(analyze(rev));
updateStatus();
}
});
}
}
});
toolbar.add(analyzeBtn);
_status = new JComboBox(new String[] {RevisionDescriptor.GENERATED, RevisionDescriptor.VERIFIED});
_status.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Revision rev = _revisionChooser.getSelectedRevision();
if (rev != null) {
getRevisionDescriptorPanel().getDescriptor().setStatus((String)_status.getSelectedItem());
}
}
});
updateStatus();
toolbar.add(_status);
JButton addmoduleBtn = new JButton("Add to WOJ");
addmoduleBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
final Revision rev = _revisionChooser.getSelectedRevision();
if (rev != null) {
WaitPanel.start(DLPanel.this, new Runnable(){
public void run() {
addModuleToWoj(rev);
}
});
}
}
});
toolbar.add(addmoduleBtn);
JButton generateJavaDoc = new JButton("Gen javadoc");
generateJavaDoc.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
final Revision rev = _revisionChooser.getSelectedRevision();
if (rev != null) {
WaitPanel.start(DLPanel.this, new Runnable(){
public void run() {
generateJavadoc(rev);
}