Example usage for org.eclipse.jdt.internal.eval EvaluationContext setLineSeparator

List of usage examples for org.eclipse.jdt.internal.eval EvaluationContext setLineSeparator

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.eval EvaluationContext setLineSeparator.

Prototype

public void setLineSeparator(String lineSeparator) 

Source Link

Document

Sets the line separator used by this evaluation context.

Usage

From source file:org.eclipse.jdt.internal.core.JavaProject.java

License:Open Source License

/**
 * @see IJavaProject#newEvaluationContext()
 *//* w  ww. ja v a 2  s  .c o  m*/
public IEvaluationContext newEvaluationContext() {
    EvaluationContext context = new EvaluationContext();
    context.setLineSeparator(Util.getLineSeparator(null/*no existing source*/, this));
    return new EvaluationContextWrapper(context, this);
}