Differences
This shows you the differences between two versions of the page.
pass_data_from_handler_to_view [2020/03/22 21:31] |
pass_data_from_handler_to_view [2021/04/05 11:23] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Pass Data from Handler to View ====== | ||
+ | If you want to pass data from the handler to the view for processing during the '' | ||
+ | <sxh java> | ||
+ | part.getTransientData().put(IServiceConstants.ACTIVE_SELECTION, | ||
+ | </ | ||
+ | |||
+ | In the '' | ||
+ | |||
+ | <sxh java> | ||
+ | @PostConstruct | ||
+ | public void postConstruct(MPart part, final Composite parent) { | ||
+ | |||
+ | ITreeSelection selection = part.getTransientData().get(IServiceConstants.ACTIVE_SELECTION)); | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | {{tag> |