Package org.eclipse.jface.text.link
Interface LinkedModeUI.IExitPolicy
- Enclosing class:
LinkedModeUI
public static interface LinkedModeUI.IExitPolicy
An exit policy can be registered by a caller to get custom exit
behavior.
Clients may implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault LinkedModeUI.ExitFlagsdoExit(LinkedModeModel model, DocumentEvent event) Checks whether the linked mode should be left after receiving the givenDocumentEvent, especially allowing to control Copy-Paste operations.doExit(LinkedModeModel model, VerifyEvent event, int offset, int length) Checks whether the linked mode should be left after receiving the givenVerifyEventand selection.
-
Method Details
-
doExit
Checks whether the linked mode should be left after receiving the givenVerifyEventand selection. Note that the event carries widget coordinates as opposed tooffsetandlengthwhich are document coordinates.- Parameters:
model- the linked mode modelevent- the verify eventoffset- the offset of the current selectionlength- the length of the current selection- Returns:
- valid exit flags or
nullif no special action should be taken
-
doExit
Checks whether the linked mode should be left after receiving the givenDocumentEvent, especially allowing to control Copy-Paste operations.- Parameters:
model- the linked mode modelevent- the document event- Returns:
- valid exit flags or
nullif no special action should be taken - Since:
- 3.22
-