Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to create a view at startup ([NEWBIE])
How to create a view at startup [message #881253] Mon, 04 June 2012 04:22 Go to previous message
Philippe Fry is currently offline Philippe Fry
Messages: 5
Registered: April 2012
Junior Member
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.


 
Read Message
Read Message
Previous Topic:Open Perspective Menu in RCP contains all installed perspectives
Next Topic:Eclipse plugins for Eclipse 4
Goto Forum:
  


Current Time: Wed May 22 05:01:45 EDT 2013

Powered by FUDForum. Page generated in 0.05845 seconds