try
{
for (Iterator iter = HermesBrowser.getBrowser().getConfig().getWatch().iterator(); iter.hasNext();)
{
final WatchConfig config = (WatchConfig) iter.next();
final AddToExistingWatchAction action = new AddToExistingWatchAction(config);
watchMenu.add(new JMenuItem(action));
watchMenu.addPropertyChangeListener("enabled", new PropertyChangeListener()
{
public void propertyChange(PropertyChangeEvent evt)
{
action.setEnabled((Boolean) evt.getNewValue());
}
});
action.setEnabled(watchMenu.isEnabled());
}
watchMenu.add(newWatch);
}
catch (HermesException ex)