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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LinkedModeUI.ExitFlags
doExit(LinkedModeModel model, VerifyEvent event, int offset, int length)
Checks whether the linked mode should be left after receiving the givenVerifyEvent
and selection.
-
-
-
Method Detail
-
doExit
LinkedModeUI.ExitFlags doExit(LinkedModeModel model, VerifyEvent event, int offset, int length)
Checks whether the linked mode should be left after receiving the givenVerifyEvent
and selection. Note that the event carries widget coordinates as opposed tooffset
andlength
which 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
null
if no special action should be taken
-
-