org.eclipse.xtext.ui.editor.contentassist
Class ConfigurableCompletionProposal.ExitPolicy

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.contentassist.ConfigurableCompletionProposal.ExitPolicy
All Implemented Interfaces:
org.eclipse.jface.text.link.LinkedModeUI.IExitPolicy
Enclosing class:
ConfigurableCompletionProposal

protected static class ConfigurableCompletionProposal.ExitPolicy
extends java.lang.Object
implements org.eclipse.jface.text.link.LinkedModeUI.IExitPolicy


Constructor Summary
ConfigurableCompletionProposal.ExitPolicy(char[] exitCharacter)
           
 
Method Summary
 org.eclipse.jface.text.link.LinkedModeUI.ExitFlags doExit(org.eclipse.jface.text.link.LinkedModeModel environment, org.eclipse.swt.events.VerifyEvent event, int offset, int length)
          Checks whether the linked mode should be left after receiving the given VerifyEvent and selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableCompletionProposal.ExitPolicy

public ConfigurableCompletionProposal.ExitPolicy(char[] exitCharacter)
Method Detail

doExit

public org.eclipse.jface.text.link.LinkedModeUI.ExitFlags doExit(org.eclipse.jface.text.link.LinkedModeModel environment,
                                                                 org.eclipse.swt.events.VerifyEvent event,
                                                                 int offset,
                                                                 int length)
Description copied from interface: org.eclipse.jface.text.link.LinkedModeUI.IExitPolicy
Checks whether the linked mode should be left after receiving the given VerifyEvent and selection. Note that the event carries widget coordinates as opposed to offset and length which are document coordinates.

Specified by:
doExit in interface org.eclipse.jface.text.link.LinkedModeUI.IExitPolicy
Parameters:
environment - the linked mode model
event - the verify event
offset - the offset of the current selection
length - the length of the current selection
Returns:
valid exit flags or null if no special action should be taken