Java Doc for ITextEditor.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » texteditor » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui workbench » org.eclipse.ui.texteditor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.texteditor.ITextEditor

All known Subclasses:   org.eclipse.ui.texteditor.AbstractTextEditor,
ITextEditor
public interface ITextEditor extends IEditorPart(Code)
Interface to a text editor. This interface defines functional extensions to IEditorPart as well as the configuration capabilities of a text editor.

Text editors are configured with an IDocumentProvider which delivers a textual presentation (IDocument) of the editor's input. The editor works on the document and forwards all input element related calls, such as save, to the document provider. The provider also delivers the input's annotation model which is used by the editor's vertical ruler.

Clients may implement this interface from scratch, but the recommended way is to subclass the abstract base class AbstractTextEditor.

In order to provided backward compatibility for clients of ITextEditor, extension interfaces are used to provide a means of evolution. The following extension interfaces exist:


See Also:   org.eclipse.ui.texteditor.IDocumentProvider
See Also:   org.eclipse.jface.text.source.IAnnotationModel
See Also:   org.eclipse.ui.texteditor.ITextEditorExtension
See Also:   org.eclipse.ui.texteditor.ITextEditorExtension2
See Also:   org.eclipse.ui.texteditor.ITextEditorExtension3




Method Summary
 voidclose(boolean save)
     Closes this text editor after optionally saving changes.
 voiddoRevertToSaved()
     Abandons all modifications applied to this text editor's input element's textual presentation since the last save operation.
 IActiongetAction(String actionId)
     Returns the action installed under the given action id.
 IDocumentProvidergetDocumentProvider()
     Returns this text editor's document provider. the document provider or null if none, e.g.
 IRegiongetHighlightRange()
     Returns the highlighted range of this text editor.
 ISelectionProvidergetSelectionProvider()
     Returns this text editor's selection provider.
 booleanisEditable()
     Returns whether the text in this text editor can be changed by the user.
 voidremoveActionActivationCode(String actionId)
     Removes any installed activation code for the specified action.
 voidresetHighlightRange()
     Resets the highlighted range of this text editor.
 voidselectAndReveal(int offset, int length)
     Selects and reveals the specified range in this text editor.
 voidsetAction(String actionID, IAction action)
     Installs the given action under the given action id.
 voidsetActionActivationCode(String actionId, char activationCharacter, int activationKeyCode, int activationStateMask)
     Sets the given activation code for the specified action.
 voidsetHighlightRange(int offset, int length, boolean moveCursor)
     Sets the highlighted range of this text editor to the specified region.
 voidshowHighlightRangeOnly(boolean showHighlightRangeOnly)
     Configures this text editor to show only the highlighted range of the text.
 booleanshowsHighlightRangeOnly()
     Returns whether this text editor is configured to show only the highlighted range of the text.



Method Detail
close
void close(boolean save)(Code)
Closes this text editor after optionally saving changes.
Parameters:
  save - true if unsaved changed should be saved, andfalse if unsaved changed should be discarded



doRevertToSaved
void doRevertToSaved()(Code)
Abandons all modifications applied to this text editor's input element's textual presentation since the last save operation.



getAction
IAction getAction(String actionId)(Code)
Returns the action installed under the given action id.
Parameters:
  actionId - the action id the action, or null if none
See Also:   ITextEditor.setAction(String,IAction)



getDocumentProvider
IDocumentProvider getDocumentProvider()(Code)
Returns this text editor's document provider. the document provider or null if none, e.g. after closing the editor



getHighlightRange
IRegion getHighlightRange()(Code)
Returns the highlighted range of this text editor. the highlighted range
See Also:   ITextEditor.setHighlightRange(int,int,boolean)



getSelectionProvider
ISelectionProvider getSelectionProvider()(Code)
Returns this text editor's selection provider. Repeated calls to this method return the same selection provider. the selection provider



isEditable
boolean isEditable()(Code)
Returns whether the text in this text editor can be changed by the user. true if it can be edited, and false if it is read-only



removeActionActivationCode
void removeActionActivationCode(String actionId)(Code)
Removes any installed activation code for the specified action. If no activation code is installed, this method does not have any effect.
Parameters:
  actionId - the action id



resetHighlightRange
void resetHighlightRange()(Code)
Resets the highlighted range of this text editor.



selectAndReveal
void selectAndReveal(int offset, int length)(Code)
Selects and reveals the specified range in this text editor.
Parameters:
  offset - the offset of the selection
Parameters:
  length - the length of the selection



setAction
void setAction(String actionID, IAction action)(Code)
Installs the given action under the given action id.
Parameters:
  actionID - the action id
Parameters:
  action - the action, or null to clear it
See Also:   ITextEditor.getAction(String)



setActionActivationCode
void setActionActivationCode(String actionId, char activationCharacter, int activationKeyCode, int activationStateMask)(Code)
Sets the given activation code for the specified action. If there is an activation code already registered, it is replaced. The activation code consists of the same information as a KeyEvent. If the activation code is triggered and the associated action is enabled, the action is performed and the triggering KeyEvent is considered consumed. If the action is disabled, the KeyEvent is passed on unmodified. Thus, action activation codes and action accelerators differ in their model of event consumption. The key code parameter can be -1 to indicate a wild card. The state mask parameter can be SWT.DEFAULT to indicate a wild card.
Parameters:
  actionId - the action id
Parameters:
  activationCharacter - the activation code character
Parameters:
  activationKeyCode - the activation code key code or -1 for wild card
Parameters:
  activationStateMask - the activation code state mask or SWT.DEFAULT for wild card



setHighlightRange
void setHighlightRange(int offset, int length, boolean moveCursor)(Code)
Sets the highlighted range of this text editor to the specified region.
Parameters:
  offset - the offset of the highlighted range
Parameters:
  length - the length of the highlighted range
Parameters:
  moveCursor - true if the cursor should be moved tothe start of the highlighted range, and false to leavethe cursor unaffected
See Also:   ITextEditor.getHighlightRange()



showHighlightRangeOnly
void showHighlightRangeOnly(boolean showHighlightRangeOnly)(Code)
Configures this text editor to show only the highlighted range of the text.
Parameters:
  showHighlightRangeOnly - true if only the highlightedrange is shown, and false if this editor shows the entiretext of the document
See Also:   ITextEditor.showsHighlightRangeOnly()



showsHighlightRangeOnly
boolean showsHighlightRangeOnly()(Code)
Returns whether this text editor is configured to show only the highlighted range of the text. true if only the highlighted range is shown, andfalse if this editor shows the entire text of the document
See Also:   ITextEditor.showHighlightRangeOnly(boolean)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.