/**********************************************************************
Copyright (c) 2000, 2002 IBM Corp. and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Common Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/cpl-v10.html
Contributors:
IBM Corporation - Initial implementation
**********************************************************************/
package org.eclipse.ui.texteditor;
import org.eclipse.jface.action.IMenuListener;
/**
* Extension interface for ITextEditor
. Adds the following functions:
*
isEditable
as it talks about the
* editor input, i.e. the domain element, and not about the editor
* document.
*
* @return true
if the editor input is read-only
*/
boolean isEditorInputReadOnly();
/**
* Adds a ruler context menu listener to the editor.
*
* @param listener the listener
*/
void addRulerContextMenuListener(IMenuListener listener);
/**
* Removes a ruler context menu listener from the editor.
*
* @param listener the listener
*/
void removeRulerContextMenuListener(IMenuListener listener);
}