Class SelectionCollectingServiceImpl
java.lang.Object
com.e1c.langtool.internal.ui.collector.SelectionCollectingServiceImpl
- All Implemented Interfaces:
IManagedService,ISelectionCollectingService
The default implementation of the service. Allows to run collection asynchronously in job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidaddRequester(SelectionCollectingRequester requester, org.eclipse.ui.IWorkbenchWindow window) Adds a requester for post Collecting changes in this selection collecting service.voidcancel(SelectionCollectingRequester requester) Cancel currently going request.voidvoidrefresh(SelectionCollectingRequester requester, FeatureValueCollectingResult result) Refresh current request.voidremoveRequester(SelectionCollectingRequester requestoer) Removes the given requester for post Collecting changes from this selection collecting service.
-
Constructor Details
-
SelectionCollectingServiceImpl
public SelectionCollectingServiceImpl()
-
-
Method Details
-
activate
public void activate()- Specified by:
activatein interfaceIManagedService
-
deactivate
public void deactivate()- Specified by:
deactivatein interfaceIManagedService
-
addRequester
public void addRequester(SelectionCollectingRequester requester, org.eclipse.ui.IWorkbenchWindow window) Description copied from interface:ISelectionCollectingServiceAdds a requester for post Collecting changes in this selection collecting service. Has no effect if an identical requester is already registered.- Specified by:
addRequesterin interfaceISelectionCollectingService- Parameters:
requester- the requester, cannot benull.window- the window, cannot benull.
-
removeRequester
Description copied from interface:ISelectionCollectingServiceRemoves the given requester for post Collecting changes from this selection collecting service. Has no effect if an identical requester is not registered.- Specified by:
removeRequesterin interfaceISelectionCollectingService- Parameters:
requestoer- the requester, cannot benull.
-
refresh
Description copied from interface:ISelectionCollectingServiceRefresh current request. If the request is running then it will cancel first and then run again.- Specified by:
refreshin interfaceISelectionCollectingService- Parameters:
requester- the requester, cannot benull.
-
cancel
Description copied from interface:ISelectionCollectingServiceCancel currently going request.- Specified by:
cancelin interfaceISelectionCollectingService- Parameters:
requester- the requester, cannot benull.
-