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

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

Introduction

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

Prototype

public ClassFileWorkingCopy(AbstractClassFile classFile, WorkingCopyOwner owner) 

Source Link

Usage

From source file:org.codehaus.jdt.groovy.model.GroovyClassFileWorkingCopy.java

License:Open Source License

public IJavaElement getPrimaryElement(boolean checkOwner) {
    if (checkOwner && isPrimary())
        return this;
    return new ClassFileWorkingCopy(this.classFile, DefaultWorkingCopyOwner.PRIMARY);
}