Example usage for org.eclipse.jdt.internal.core CommitWorkingCopyOperation CommitWorkingCopyOperation

List of usage examples for org.eclipse.jdt.internal.core CommitWorkingCopyOperation CommitWorkingCopyOperation

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core CommitWorkingCopyOperation CommitWorkingCopyOperation.

Prototype

public CommitWorkingCopyOperation(ICompilationUnit element, boolean force) 

Source Link

Document

Constructs an operation to commit the contents of a working copy to its original compilation unit.

Usage

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

License:Open Source License

/**
 * @see ICompilationUnit#commitWorkingCopy(boolean, IProgressMonitor)
 *//*  w w w.  j  a  va  2  s.co  m*/
public void commitWorkingCopy(boolean force, IProgressMonitor monitor) throws JavaModelException {
    CommitWorkingCopyOperation op = new CommitWorkingCopyOperation(this, force);
    op.runOperation(monitor);
}