public synchronized void handleEvent(Event event) { try { if (removed) return; ApplicationDescriptor desc = getApplicationDescriptor(); if (desc == null) // in this case the application descriptor was removed; // we must return and keep the scheduled app incase the application comes back return; desc.launch(getArguments(event)); } catch (Exception e) { String message = NLS.bind(Messages.scheduled_app_launch_error, sr); Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.WARNING, 0, message, 0, e, null)); return; // return here to avoid removing non-recurring apps when an error occurs } if (!isRecurring()) remove(); }
public synchronized void handleEvent(Event event) { try { if (removed) return; ApplicationDescriptor desc = getApplicationDescriptor(); if (desc == null) // in this case the application descriptor was removed; // we must return and keep the scheduled app incase the application comes back return; desc.launch(getArguments(event)); } catch (Exception e) { String message = NLS.bind(Messages.scheduled_app_launch_error, sr); Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.WARNING, 0, message, 0, e, null)); return; // return here to avoid removing non-recurring apps when an error occurs } if (!isRecurring()) remove(); }
@Override public synchronized void handleEvent(Event event) { try { if (removed) return; ApplicationDescriptor desc = getApplicationDescriptor(); if (desc == null) // in this case the application descriptor was removed; // we must return and keep the scheduled app incase the application comes back return; desc.launch(getArguments(event)); } catch (Exception e) { String message = NLS.bind(Messages.scheduled_app_launch_error, sr); Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.WARNING, 0, message, 0, e, null)); return; // return here to avoid removing non-recurring apps when an error occurs } if (!isRecurring()) remove(); }