eclipse rcp - How to trigger an event as soon as we launch the view in SWT -


i have rcp application creating view invokes instance of composite.now problem want trigger 1 event show view/composite in screen.

i tried addfocuslistner(),addmousetracklistener(),addmouselistner()but unfortunately none of them gets control move mouse pointer around view.is there way can solve it?

just grab control have used create view , add selection listener on it.

for example if treeviewer used create view then:

treeviewer.setselection(new structuredselection(element),true); 

ensure selection treeviewer.getcontrol.setfocus();


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -