code: /*--------------------------------------------------------------*
    Copyright (C) 2006-2015 OpenSim Ltd.
  
    This file is distributed WITHOUT ANY WARRANTY. See the file
    'License' for details on this and other legal matters.
  *--------------------------------------------------------------*/
  
  package org.omnetpp.common.contentassist;
  
  import org.eclipse.jface.fieldassist.IControlContentAdapter;
  import org.eclipse.swt.widgets.Control;
  
  /**
   * Content adapter that can replace a text segment in the control with the proposal.
   */
  public interface IControlContentAdapterEx extends IControlContentAdapter {
  
      void replaceControlContents(Control control, int startPos, int endPos, String text, int cursorPos);
  }
  