import javax.swing.event.MenuListener;
/**
- * @author jprocter
+ * @author jprocter
*
*/
-public class SequenceAnnotationWSClient extends Jws2Client
+public class SequenceAnnotationWSClient extends Jws2Client
{
public static final String AAConCalcId = "jabaws2.AACon";
// only add these menu options if the service has user-modifiable
// arguments
annotservice = new JMenuItem("Edit settings and run ...");
- annotservice.setToolTipText("View and change parameters before running calculation");
+ annotservice
+ .setToolTipText("View and change parameters before running calculation");
annotservice.addActionListener(new ActionListener()
{
wsmenu.add(presetlist);
}
- } else {
+ }
+ else
+ {
annotservice = new JMenuItem("View documentation");
- if (service.docUrl!=null)
+ if (service.docUrl != null)
{
annotservice.addActionListener(new ActionListener()
{
-
+
@Override
public void actionPerformed(ActionEvent arg0)
{
Desktop.instance.showUrl(service.docUrl);
}
});
- annotservice.setToolTipText("<html>"+JvSwingUtils.wrapTooltip("View <a href=\""+service.docUrl+"\">"+service.docUrl+"</a>")+"</html>");
+ annotservice.setToolTipText("<html>"
+ + JvSwingUtils.wrapTooltip("View <a href=\""
+ + service.docUrl + "\">" + service.docUrl + "</a>")
+ + "</html>");
wsmenu.add(annotservice);
}
}
AAConClient worker = (AAConClient) aaconClient.get(0);
if (!worker.service.hosturl.equals(service.hosturl))
{
- // javax.swing.SwingUtilities.invokeLater(new Runnable()
+ // javax.swing.SwingUtilities.invokeLater(new Runnable()
{
- // @Override
- // public void run()
+ // @Override
+ // public void run()
{
removeCurrentAAConWorkerFor(alignFrame);
buildCurrentAAConWorkerFor(alignFrame, service);
}
- }//);
+ }// );
}
}
}