presets = service.getParamStore().getPresets();
if (presets != null && presets.size() > 0)
{
- JMenu presetlist = new JMenu("Run " + calcName + "with preset");
+ JMenu presetlist = new JMenu(MessageManager.formatMessage(
+ "label.run_with_preset", new String[] { calcName }));
for (final WsParamSetI preset : presets)
{
final JMenuItem methodR = new JMenuItem(preset.getName());
- methodR.setToolTipText(""
- + JvSwingUtils.wrapTooltip(""
- + (preset.isModifiable() ? "User Preset"
- : "Service Preset") + "
"
- + preset.getDescription() + "
") + "");
+ methodR.setToolTipText(JvSwingUtils.wrapTooltip(
+ true,
+ ""
+ + (preset.isModifiable() ? MessageManager
+ .getString("label.user_preset")
+ : MessageManager
+ .getString("label.service_preset"))
+ + "
" + preset.getDescription()));
methodR.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -177,5 +233,26 @@ public class SequenceAnnotationWSClient extends Jws2Client
}
}
+ else
+ {
+ annotservice = new JMenuItem(
+ MessageManager.getString("label.view_documentation"));
+ if (service.docUrl != null)
+ {
+ annotservice.addActionListener(new ActionListener()
+ {
+
+ @Override
+ public void actionPerformed(ActionEvent arg0)
+ {
+ Desktop.instance.showUrl(service.docUrl);
+ }
+ });
+ annotservice.setToolTipText(JvSwingUtils.wrapTooltip(true,
+ MessageManager.formatMessage("label.view_service_doc_url",
+ new String[] { service.docUrl, service.docUrl })));
+ wsmenu.add(annotservice);
+ }
+ }
}
}