setWebService(service, true); // headless
boolean finished = true, submitGaps = false;
JMenu msawsmenu = rmsawsmenu;
- String calcName = WebServiceName + " ";
+ String svcname = WebServiceName;
+ if (svcname.endsWith("WS"))
+ {
+ svcname = svcname.substring(0,svcname.length()-2);
+ }
+ String calcName = svcname + " ";
if (canSubmitGaps())
{
- msawsmenu = new JMenu(WebServiceName);
+ msawsmenu = new JMenu(svcname);
rmsawsmenu.add(msawsmenu);
calcName = "";
}
{
if (submitGaps == true)
{
- msawsmenu = new JMenu("profile " + WebServiceName);
+ msawsmenu = new JMenu("profile " + svcname);
rmsawsmenu.add(msawsmenu);
}
final boolean withGaps = submitGaps;
JMenuItem method = new JMenuItem(calcName + "Defaults");
- method.setToolTipText(WsURL);
+ method.setToolTipText("Align with default settings");
method.addActionListener(new ActionListener()
{
}
});
msawsmenu.add(method);
- method = new JMenuItem(calcName + " Edit Parameters...");
- method.setToolTipText(WsURL);
+ method = new JMenuItem(calcName + "Edit and run ...");
+ method.setToolTipText("View and change the parameters before alignment.");
method.addActionListener(new ActionListener()
{
for (final Preset preset : (List<Preset>) presets.getPresets())
{
final JMenuItem methodR = new JMenuItem(preset.getName());
- methodR.setToolTipText(preset.getDescription());
+ methodR.setToolTipText("<html><p>"+preset.getDescription()+"</p></html>");
methodR.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)