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
Post a Comment