Hello everyone,
I have a view which listen to the log service and for each events; add a new line in a TableViewer.
How can i create the view as soon as possible (not when i click on the tab of the view), in oder to see all logservice entries ?
I tried to create an Addon to the Application.e4xmi, and activate the view via the EPartService:
@Inject
EPartService partSrv;
@PostConstruct
void hookListeners() {
final MPart lFindPart = partSrv.findPart("logbook.view");
partSrv.activate(lFindPart);
}
But i throws this exception :
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalStateException: Application does not have an active window
Wo what is the best way to do taht ?
Thanks a lot.