putValue(SMALL_ICON, UISupport.createImageIcon("/run.gif"));
putValue(Action.SHORT_DESCRIPTION, "Creates a WS-I report for this interface");
}
public void actionPerformed(ActionEvent arg0) {
WSIAnalyzeAction action = new WSIAnalyzeAction() {
@Override
protected void showReport(File reportFile, String configFile) throws Exception {
reportPanel = new WSIReportPanel(reportFile, configFile, null, false);
reportPanel.setPreferredSize(new Dimension(600, 400));
if (wsiPanel.getComponentCount() > 1) {
wsiPanel.remove(1);
}
wsiPanel.add(reportPanel, BorderLayout.CENTER);
wsiPanel.revalidate();
saveWsiReportAction.setEnabled(true);
}
};
action.perform(getModelItem(), null);
}