}
}
});
try{
Engine engine = subs.getEngine();
if ( engine instanceof WebEngine ){
if (((WebEngine)engine).isNeedsAuth()){
menuItem = menuManager.addMenuItem("sidebar." + key,"Subscription.menu.resetauth");
menuItem.addListener(new SubsMenuItemListener() {
public void selected(MdiEntry info, Subscription subs) {
try{
Engine engine = subs.getEngine();
if ( engine instanceof WebEngine ){
((WebEngine)engine).setCookies( null );
}
}catch( Throwable e ){
Debug.printStackTrace(e);
}
try{
subs.getManager().getScheduler().downloadAsync(subs, true);
}catch( Throwable e ){
Debug.out(e);
}
}
});
menuItem = menuManager.addMenuItem("sidebar." + key,"Subscription.menu.setcookies");
menuItem.addListener(new SubsMenuItemListener() {
public void selected(MdiEntry info, final Subscription subs) {
try{
Engine engine = subs.getEngine();
if ( engine instanceof WebEngine ){
final WebEngine we = (WebEngine)engine;