TestRoots/watchdog

View on GitHub
eclipse/plugin/src/nl/tudelft/watchdog/eclipse/logic/document/EditorWrapper.java

Summary

Maintainability
A
0 mins
Test Coverage
package nl.tudelft.watchdog.eclipse.logic.document;

import org.eclipse.ui.texteditor.ITextEditor;

import nl.tudelft.watchdog.core.logic.document.EditorWrapperBase;

/**
 * Wrapper class for Eclipse editor.
 */
public class EditorWrapper implements EditorWrapperBase {

    /** The {@link ITextEditor}. */
    protected transient ITextEditor editor;

    /** Constructor. */
    public EditorWrapper(ITextEditor editor) {
        this.editor = editor;
    }

    /** Getting the current ITextEditor. */
    public ITextEditor getEditor() {
        return this.editor;
    }
}