@Override
  protected void doSetInput(IEditorInput input) throws CoreException {

    super.doSetInput(input);

    ExpressionContentAssistProcessor caproc =
        (ExpressionContentAssistProcessor)
            this.getSourceViewerConfiguration()
                .getContentAssistant(this.getSourceViewer())
                .getContentAssistProcessor(IDocument.DEFAULT_CONTENT_TYPE);

    EObject eObj = (EObject) input.getAdapter(EObject.class);

    if (eObj != null) {
      caproc.setModelObject(eObj);
    }

    String expressionContext = (String) input.getAdapter(Integer.class);
    if (expressionContext != null) {
      caproc.setExpressionContext(expressionContext);
      //
      if (this.fVariablePickerAction != null) {
        this.fVariablePickerAction.setEnabled(
            expressionContext.indexOf(IEditorConstants.ET_JOIN) < 0);
      }
    }
  }