Refresh any elements registered against the command with the given id. It allows the active handler the opportunity to provide user feedback. If the command is parameterized, some of the parameters can be specified to help narrow down which elements to refresh.
The service locator used in registering the element can also be used to scope the search. For example: if you wanted all elements for your command but only within the part's workbench window, you could use:
Map filter = new HashMap(); filter.put(IServiceScopes.WINDOW_SCOPE, getSite().getPage() .getWorkbenchWindow()); commandService.refreshElements(commandId, filter);
@param commandId The command id to refresh if it has registered eleemnts.
@param filter key-value pairs that can narrow down the callbacks to return. The parameters are
ANDed together. This may be
null
.
@since 3.3