Package org.eclipse.jface.text
Interface AbstractInformationControlManager.IInformationControlCloser
- All Known Implementing Classes:
AnnotationBarHoverManager.Closer
- Enclosing class:
AbstractInformationControlManager
public static interface AbstractInformationControlManager.IInformationControlCloser
Interface of an information control closer. An information control closer
monitors its information control and its subject control and closes the
information control if necessary.
Clients must implement this interface in order to equip an information control manager accordingly.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetInformationControl(IInformationControl control) Sets the closer's information control, the one to close if necessary.voidsetSubjectControl(Control subject) Sets the closer's subject control.voidTells this closer to start monitoring the subject and the information control.voidstop()Tells this closer to stop monitoring the subject and the information control.
-
Method Details
-
setSubjectControl
Sets the closer's subject control. This is the control that parents the information control and from which the subject of the information to be shown is retrieved.Must be called before
start. May again be called betweenstartandstop.- Parameters:
subject- the subject control
-
setInformationControl
Sets the closer's information control, the one to close if necessary.Must be called before
start. May again be called betweenstartandstop.- Parameters:
control- the information control
-
start
Tells this closer to start monitoring the subject and the information control. The presented information is considered valid for the given area of the subject control's display.- Parameters:
subjectArea- the area for which the presented information is valid
-
stop
void stop()Tells this closer to stop monitoring the subject and the information control.
-