Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.texteditor
Interface ITextEditorExtension

All Known Implementing Classes:
AbstractDecoratedTextEditor, AbstractTextEditor, StatusTextEditor, TextEditor

public interface ITextEditorExtension

Extension interface for ITextEditor. Adds the following functions:

  • status fields
  • read-only state of the editor's input
  • ruler context menu listeners.

Since:
2.0

Method Summary
 void addRulerContextMenuListener ( IMenuListener listener)
          Adds a ruler context menu listener to the editor.
 boolean isEditorInputReadOnly ()
          Returns whether the editor's input is read-only.
 void removeRulerContextMenuListener ( IMenuListener listener)
          Removes a ruler context menu listener from the editor.
 void setStatusField ( IStatusField field, String category)
          Informs the editor which status field is to be used when posting status information in the given category.
 

Method Detail

setStatusField

void setStatusField(
IStatusField field,
                    
String category)
Informs the editor which status field is to be used when posting status information in the given category.

Parameters:
field - the status field to be used
category - the status information category
See Also:
ITextEditorActionConstants

isEditorInputReadOnly

boolean isEditorInputReadOnly()
Returns whether the editor's input is read-only. The semantics of this method is orthogonal to isEditable as it talks about the editor input, i.e. the domain element, and not about the editor document.

Returns:
true if the editor input is read-only

addRulerContextMenuListener

void addRulerContextMenuListener(
IMenuListener listener)
Adds a ruler context menu listener to the editor.

Parameters:
listener - the listener

removeRulerContextMenuListener

void removeRulerContextMenuListener(
IMenuListener listener)
Removes a ruler context menu listener from the editor.

Parameters:
listener - the listener

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire