Need to hook in a listener to measure load time
5 answers
Thanks for a fast reply Sam :) I didn't get as close to a solution as I'd hope though.
In my plugin I implement IStartup and I've added this to the override of earlyStartup()
IWorkItemActivationManager manager = ClientModel.getWorkItemActivationManager();
manager.addActivationParticipant(new MyWorkItemActivationParticipant());
and this is my WorkItemActivationParticipantMonitor class
public class WorkItemActivationParticipantMonitor extends WorkItemActivationParticipant {
@Override
public IStatus handleActivationEvent(WorkItemActivationEvent event, IProgressMonitor monitor) {
System.out.println("activationParticipant Triggered");
return super.handleActivationEvent(event, monitor);
}
but MyWorkItemActivationParticipant.handleActivationEvent is never triggered (scenario is opening a plan into the Plan Editor)