Java Doc for AbstractDecoratedTextEditor.java in  » IDE-Eclipse » ui » 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 » org.eclipse.ui.texteditor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.texteditor.AbstractDecoratedTextEditor

All known Subclasses:   org.eclipse.ui.editors.text.TextEditor,
AbstractDecoratedTextEditor
abstract public class AbstractDecoratedTextEditor extends StatusTextEditor (Code)
An intermediate editor comprising functionality not present in the leaner AbstractTextEditor, but used in many heavy weight (and especially source editing) editors, such as line numbers, change ruler, overview ruler, print margins, current line highlighting, etc.
since:
   3.0


Field Summary
protected  IAnnotationAccessfAnnotationAccess
     Helper for accessing annotation from the perspective of this editor.

This field should not be referenced by subclasses.

protected  booleanfIsUpdatingMarkerViews
     Indicates whether this editor is updating views that show markers.
protected  LineNumberRulerColumnfLineNumberRulerColumn
     The line number column.

This field should not be referenced by subclasses.

protected  IOverviewRulerfOverviewRuler
     The overview ruler of this editor.

This field should not be referenced by subclasses.

protected  SourceViewerDecorationSupportfSourceViewerDecorationSupport
     Helper for managing the decoration support of this editor's viewer.

This field should not be referenced by subclasses.


Constructor Summary
public  AbstractDecoratedTextEditor()
     Creates a new text editor.

Method Summary
protected  String[]collectContextMenuPreferencePages()
     Returns the preference page ids of the preference pages to be shown when executing the preferences action from the editor context menu.
protected  String[]collectRulerMenuPreferencePages()
     Returns the preference page ids of the preference pages to be shown when executing the preferences action from the editor ruler context menu.
protected  voidconfigureSourceViewerDecorationSupport(SourceViewerDecorationSupport support)
     Configures the decoration support for this editor's source viewer.
protected  voidcreateActions()
    
protected  IAnnotationAccesscreateAnnotationAccess()
     Creates the annotation access for this editor.
protected  IVerticalRulerColumncreateAnnotationRulerColumn(CompositeRuler ruler)
     Creates the annotation ruler column.
protected  LineChangeHovercreateChangeHover()
     Creates and returns a LineChangeHover to be used on this editor's change ruler column.
protected  IChangeRulerColumncreateChangeRulerColumn()
    
final protected  IColumnSupportcreateColumnSupport()
    
protected  CompositeRulercreateCompositeRuler()
     Creates a composite ruler to be used as the vertical ruler by this editor.
protected  IVerticalRulerColumncreateLineNumberRulerColumn()
     Creates a new line number ruler column that is appropriately initialized.
protected  IOverviewRulercreateOverviewRuler(ISharedTextColors sharedColors)
    
public  voidcreatePartControl(Composite parent)
    
protected  ISourceViewercreateSourceViewer(Composite parent, IVerticalRuler ruler, int styles)
    
protected  ControlcreateStatusControl(Composite parent, IStatus status)
    
protected  IVerticalRulercreateVerticalRuler()
     Returns AbstractDecoratedTextEditor.createCompositeRuler() .
public  voiddispose()
    
protected  voiddisposeDocumentProvider()
    
protected  voiddoSetInput(IEditorInput input)
    
protected  voideditorContextMenuAboutToShow(IMenuManager menu)
    
public  ObjectgetAdapter(Class adapter)
    
protected  IAnnotationAccessgetAnnotationAccess()
     Returns the annotation access.
protected  AnnotationPreferenceLookupgetAnnotationPreferenceLookup()
     Returns the annotation preference lookup.
protected  MarkerAnnotationPreferencesgetAnnotationPreferences()
     Returns the annotation preferences.
public  IDocumentProvidergetDocumentProvider()
    
protected  IOverviewRulergetOverviewRuler()
     Returns the overview ruler.
protected  ISharedTextColorsgetSharedColors()
    
protected  SourceViewerDecorationSupportgetSourceViewerDecorationSupport(ISourceViewer viewer)
     Returns the source viewer decoration support.
protected  IOperationApprovergetUndoRedoOperationApprover(IUndoContext undoContext)
    
public  AnnotationgotoAnnotation(boolean forward)
    

This extended implementation updates views that also show the select marker annotation.

public  voidgotoMarker(IMarker marker)
     If the editor can be saved all marker ranges have been changed according to the text manipulations.
protected  voidhandlePreferenceStoreChanged(PropertyChangeEvent event)
    
protected  voidhideOverviewRuler()
     Hides the overview ruler.
protected  voidinitializeEditor()
     Initializes this editor.
protected  voidinitializeKeyBindingScopes()
     Initializes the key binding scopes of this editor.
protected  voidinitializeLineNumberRulerColumn(LineNumberRulerColumn rulerColumn)
     Initializes the given line number ruler column from the preference store.
public  booleanisChangeInformationShowing()
    
public  booleanisEditable()
    
protected  booleanisErrorStatus(IStatus status)
    
protected  booleanisLineNumberRulerVisible()
     Returns whether the line number ruler column should be visible according to the preference store settings.
protected  booleanisNavigationTarget(Annotation annotation)
     Returns whether the given annotation is configured as a target for the "Go to Next/Previous Annotation" actions.
protected  booleanisOverviewRulerVisible()
     Tells whether the overview ruler is visible.
protected  booleanisOverwriteModeEnabled()
     Returns whether the overwrite mode is enabled according to the preference store settings.
protected  booleanisPrefQuickDiffAlwaysOn()
     Returns whether quick diff info should be visible upon opening an editor according to the preference store settings.
protected  booleanisTabsToSpacesConversionEnabled()
    
protected  voidperformSaveAs(IProgressMonitor progressMonitor)
     This implementation asks the user for the workspace path of a file resource and saves the document there.
protected  voidrulerContextMenuAboutToShow(IMenuManager menu)
    
protected  voidsetDocumentProvider(IEditorInput input)
    
public  voidshowChangeInformation(boolean show)
    
protected  voidshowOverviewRuler()
     Shows the overview ruler.
public  voidshowRevisionInformation(RevisionInformation info, String quickDiffProviderId)
    
protected  voidupdateMarkerViews(Annotation annotation)
     Updates visible views that show markers.
public  booleanvalidateEditorInputState()
    

Field Detail
fAnnotationAccess
protected IAnnotationAccess fAnnotationAccess(Code)
Helper for accessing annotation from the perspective of this editor.

This field should not be referenced by subclasses. It is protected for API compatibility reasons and will be made private soon. Use AbstractDecoratedTextEditor.getAnnotationAccess() instead.




fIsUpdatingMarkerViews
protected boolean fIsUpdatingMarkerViews(Code)
Indicates whether this editor is updating views that show markers.
See Also:   AbstractDecoratedTextEditor.updateMarkerViews(Annotation)
since:
   3.2



fLineNumberRulerColumn
protected LineNumberRulerColumn fLineNumberRulerColumn(Code)
The line number column.

This field should not be referenced by subclasses. It is protected for API compatibility reasons and will be made private soon. Use AbstractTextEditor.getVerticalRuler to access the vertical bar instead.




fOverviewRuler
protected IOverviewRuler fOverviewRuler(Code)
The overview ruler of this editor.

This field should not be referenced by subclasses. It is protected for API compatibility reasons and will be made private soon. Use AbstractDecoratedTextEditor.getOverviewRuler() instead.




fSourceViewerDecorationSupport
protected SourceViewerDecorationSupport fSourceViewerDecorationSupport(Code)
Helper for managing the decoration support of this editor's viewer.

This field should not be referenced by subclasses. It is protected for API compatibility reasons and will be made private soon. Use AbstractDecoratedTextEditor.getSourceViewerDecorationSupport(ISourceViewer) instead.





Constructor Detail
AbstractDecoratedTextEditor
public AbstractDecoratedTextEditor()(Code)
Creates a new text editor.




Method Detail
collectContextMenuPreferencePages
protected String[] collectContextMenuPreferencePages()(Code)
Returns the preference page ids of the preference pages to be shown when executing the preferences action from the editor context menu.

Subclasses may extend or replace.

the preference page ids to show, may be empty
since:
   3.1



collectRulerMenuPreferencePages
protected String[] collectRulerMenuPreferencePages()(Code)
Returns the preference page ids of the preference pages to be shown when executing the preferences action from the editor ruler context menu.

The default is to return the same list as collectContextMenuPreferencePages.

Subclasses may extend or replace.

the preference page ids to show, may be empty
since:
   3.1



configureSourceViewerDecorationSupport
protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support)(Code)
Configures the decoration support for this editor's source viewer. Subclasses may override this method, but should call their superclass' implementation at some point.
Parameters:
  support - the decoration support to configure



createActions
protected void createActions()(Code)



createAnnotationAccess
protected IAnnotationAccess createAnnotationAccess()(Code)
Creates the annotation access for this editor. the created annotation access



createAnnotationRulerColumn
protected IVerticalRulerColumn createAnnotationRulerColumn(CompositeRuler ruler)(Code)
Creates the annotation ruler column. Subclasses may re-implement or extend.
Parameters:
  ruler - the composite ruler that the column will be added an annotation ruler column
since:
   3.2



createChangeHover
protected LineChangeHover createChangeHover()(Code)
Creates and returns a LineChangeHover to be used on this editor's change ruler column. This default implementation returns a plain LineChangeHover. Subclasses may override. the change hover to be used by this editors quick diff display



createChangeRulerColumn
protected IChangeRulerColumn createChangeRulerColumn()(Code)
Creates a new change ruler column for quick diff display independent of the line number ruler column a new change ruler columnAbstractDecoratedTextEditor.createLineNumberRulerColumn()



createColumnSupport
final protected IColumnSupport createColumnSupport()(Code)



createCompositeRuler
protected CompositeRuler createCompositeRuler()(Code)
Creates a composite ruler to be used as the vertical ruler by this editor. Subclasses may re-implement this method. the vertical ruler



createLineNumberRulerColumn
protected IVerticalRulerColumn createLineNumberRulerColumn()(Code)
Creates a new line number ruler column that is appropriately initialized. the created line number column



createOverviewRuler
protected IOverviewRuler createOverviewRuler(ISharedTextColors sharedColors)(Code)



createPartControl
public void createPartControl(Composite parent)(Code)



createSourceViewer
protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles)(Code)



createStatusControl
protected Control createStatusControl(Composite parent, IStatus status)(Code)



createVerticalRuler
protected IVerticalRuler createVerticalRuler()(Code)
Returns AbstractDecoratedTextEditor.createCompositeRuler() . Subclasses should not override this method, but rather createCompositeRuler if they want to contribute their own vertical ruler implementation. If not an instance of CompositeRuler is returned, the built-in ruler columns (line numbers, annotations) will not work.

May become final in the future.


See Also:   AbstractTextEditor.createVerticalRuler



dispose
public void dispose()(Code)



disposeDocumentProvider
protected void disposeDocumentProvider()(Code)



doSetInput
protected void doSetInput(IEditorInput input) throws CoreException(Code)



editorContextMenuAboutToShow
protected void editorContextMenuAboutToShow(IMenuManager menu)(Code)



getAdapter
public Object getAdapter(Class adapter)(Code)



getAnnotationAccess
protected IAnnotationAccess getAnnotationAccess()(Code)
Returns the annotation access. the annotation access



getAnnotationPreferenceLookup
protected AnnotationPreferenceLookup getAnnotationPreferenceLookup()(Code)
Returns the annotation preference lookup. the annotation preference lookup



getAnnotationPreferences
protected MarkerAnnotationPreferences getAnnotationPreferences()(Code)
Returns the annotation preferences. the annotation preferences



getDocumentProvider
public IDocumentProvider getDocumentProvider()(Code)



getOverviewRuler
protected IOverviewRuler getOverviewRuler()(Code)
Returns the overview ruler. the overview ruler



getSharedColors
protected ISharedTextColors getSharedColors()(Code)



getSourceViewerDecorationSupport
protected SourceViewerDecorationSupport getSourceViewerDecorationSupport(ISourceViewer viewer)(Code)
Returns the source viewer decoration support.
Parameters:
  viewer - the viewer for which to return a decoration support the source viewer decoration support



getUndoRedoOperationApprover
protected IOperationApprover getUndoRedoOperationApprover(IUndoContext undoContext)(Code)



gotoAnnotation
public Annotation gotoAnnotation(boolean forward)(Code)

This extended implementation updates views that also show the select marker annotation.


since:
   3.2



gotoMarker
public void gotoMarker(IMarker marker)(Code)
If the editor can be saved all marker ranges have been changed according to the text manipulations. However, those changes are not yet propagated to the marker manager. Thus, when opening a marker, the marker's position in the editor must be determined as it might differ from the position stated in the marker.
Parameters:
  marker - the marker to go to



handlePreferenceStoreChanged
protected void handlePreferenceStoreChanged(PropertyChangeEvent event)(Code)



hideOverviewRuler
protected void hideOverviewRuler()(Code)
Hides the overview ruler.



initializeEditor
protected void initializeEditor()(Code)
Initializes this editor. Subclasses may re-implement. If sub-classes do not change the contract, this method should not be extended, i.e. do not call super.initializeEditor() in order to avoid the temporary creation of objects that are immediately overwritten by subclasses.



initializeKeyBindingScopes
protected void initializeKeyBindingScopes()(Code)
Initializes the key binding scopes of this editor.



initializeLineNumberRulerColumn
protected void initializeLineNumberRulerColumn(LineNumberRulerColumn rulerColumn)(Code)
Initializes the given line number ruler column from the preference store.
Parameters:
  rulerColumn - the ruler column to be initialized



isChangeInformationShowing
public boolean isChangeInformationShowing()(Code)



isEditable
public boolean isEditable()(Code)



isErrorStatus
protected boolean isErrorStatus(IStatus status)(Code)



isLineNumberRulerVisible
protected boolean isLineNumberRulerVisible()(Code)
Returns whether the line number ruler column should be visible according to the preference store settings. Subclasses may override this method to provide a custom preference setting. true if the line numbers should be visible



isNavigationTarget
protected boolean isNavigationTarget(Annotation annotation)(Code)
Returns whether the given annotation is configured as a target for the "Go to Next/Previous Annotation" actions.

The annotation is a target if their annotation type is configured to be in the Next/Previous tool bar drop down menu and if it is checked.


Parameters:
  annotation - the annotation true if this is a target, false otherwise
since:
   3.2



isOverviewRulerVisible
protected boolean isOverviewRulerVisible()(Code)
Tells whether the overview ruler is visible. whether the overview ruler is visible



isOverwriteModeEnabled
protected boolean isOverwriteModeEnabled()(Code)
Returns whether the overwrite mode is enabled according to the preference store settings. Subclasses may override this method to provide a custom preference setting. true if overwrite mode is enabled
since:
   3.1



isPrefQuickDiffAlwaysOn
protected boolean isPrefQuickDiffAlwaysOn()(Code)
Returns whether quick diff info should be visible upon opening an editor according to the preference store settings. true if the line numbers should be visible



isTabsToSpacesConversionEnabled
protected boolean isTabsToSpacesConversionEnabled()(Code)



performSaveAs
protected void performSaveAs(IProgressMonitor progressMonitor)(Code)
This implementation asks the user for the workspace path of a file resource and saves the document there.
Parameters:
  progressMonitor - the progress monitor to be used
since:
   3.2



rulerContextMenuAboutToShow
protected void rulerContextMenuAboutToShow(IMenuManager menu)(Code)



setDocumentProvider
protected void setDocumentProvider(IEditorInput input)(Code)



showChangeInformation
public void showChangeInformation(boolean show)(Code)



showOverviewRuler
protected void showOverviewRuler()(Code)
Shows the overview ruler.



showRevisionInformation
public void showRevisionInformation(RevisionInformation info, String quickDiffProviderId)(Code)



updateMarkerViews
protected void updateMarkerViews(Annotation annotation)(Code)
Updates visible views that show markers.

If the given annotation can be associated with a marker then this method tries select the this marker in views that show markers.


Parameters:
  annotation -
since:
   3.2



validateEditorInputState
public boolean validateEditorInputState()(Code)



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