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


java.lang.Object
   org.eclipse.ui.internal.EditorManager

EditorManager
public class EditorManager implements IExtensionChangeHandler(Code)
Manage a group of element editors. Prevent the creation of two editors on the same element. 06/12/00 - DS - Given the ambiguous editor input type, the manager delegates a number of responsibilities to the editor itself.
  1. The editor should determine its own title.
  2. The editor should listen to resource deltas and close itself if the input is deleted. It may also choose to stay open if the editor has dirty state.
  3. The editor should persist its own state plus editor input.


Field Summary
final static  StringRESOURCES_TO_SAVE_MESSAGE
    
final static  StringSAVE_RESOURCES_TITLE
    
 EditorAreaHelpereditorPresentation
    
 WorkbenchPagepage
    
 WorkbenchWindowwindow
    

Constructor Summary
public  EditorManager(WorkbenchWindow window, WorkbenchPage workbenchPage, EditorAreaHelper pres)
     EditorManager constructor comment.

Method Summary
public  voidaddExtension(IExtensionTracker tracker, IExtension extension)
    
 voidcheckCreateEditorPropListener()
    
 voidcheckCreatePinEditorShortcutKeyHandler()
     Check to determine if the handler for the pin editor keyboard shortcut should be created.
 voidcheckDeleteEditorResources()
    
public  booleancontainsEditor(IEditorReference ref)
     Returns whether the manager contains an editor.
 IEditorPartcreatePart(EditorDescriptor desc)
    
 EditorSitecreateSite(IEditorReference ref, IEditorPart part, EditorDescriptor desc, IEditorInput input)
    
 voiddisposeEditorActionBars(EditorActionBars actionBars)
    
public  IEditorPartfindEditor(IEditorInput input)
     Returns an open editor matching the given editor input.
public  IEditorPartfindEditor(String editorId, IEditorInput input, int matchFlags)
     Returns an open editor matching the given editor input and/or editor id, as specified by matchFlags.
public  IEditorReference[]findEditors(IEditorInput input, String editorId, int matchFlags)
     Returns the open editor references matching the given editor input and/or editor id, as specified by matchFlags.
 ImageDescriptorfindImage(EditorDescriptor desc, IPath path)
    
public  IEditorPart[]getDirtyEditors()
    
public  intgetEditorCount()
     Answer the number of editors.
 ImageDescriptorgetEditorPinImageDesc()
    
public  IEditorReference[]getEditors()
    
public  IMementogetMemento(IEditorReference e)
    
public  IEditorPartgetVisibleEditor()
    
public  booleanisSaveAllNeeded()
     Answer true if save is needed in any one of the editors.
public  IEditorReferenceopenEditor(String editorId, IEditorInput input, boolean setVisible, IMemento editorState)
    
Parameters:
  editorId - the editor part id
Parameters:
  input - the input
Parameters:
  setVisible - if this is to be created visible ...
public  IEditorReferenceopenEditorFromDescriptor(EditorDescriptor desc, IEditorInput input, IMemento editorState)
    
 IEditorReferenceopenEmptyTab()
    
 IEditorReference[]openMultiEditor(IEditorReference ref, MultiEditor part, MultiEditorInput input)
     Create the part and reference for each inner editor.
public  voidremoveExtension(IExtension source, Object[] objects)
    
public  voidrestoreEditorState(IMemento editorMem, ArrayList visibleEditors, IEditorReference[] activeEditor, MultiStatus result)
    
public  IStatusrestoreState(IMemento memento)
    
public  booleansaveAll(boolean confirm, boolean closing, boolean addNonPartSources)
     Save all of the editors in the workbench.
public static  booleansaveAll(List dirtyParts, boolean confirm, boolean closing, boolean addNonPartSources, IWorkbenchWindow window)
     Saves the given dirty editors and views, optionally prompting the user.
public static  booleansaveAll(List dirtyParts, boolean confirm, boolean closing, boolean addNonPartSources, IRunnableContext runnableContext, IShellProvider shellProvider)
     Saves the given dirty editors and views, optionally prompting the user.
protected  voidsaveEditorState(IMemento mem, IEditorReference ed, MultiStatus res)
    
public  booleansavePart(ISaveablePart saveable, IWorkbenchPart part, boolean confirm)
    
public  IStatussaveState(IMemento memento)
    
public  booleansetVisibleEditor(IEditorReference newEd, boolean setFocus)
     Shows an editor.
public static  booleanuseIPersistableEditor()
    

Field Detail
RESOURCES_TO_SAVE_MESSAGE
final static String RESOURCES_TO_SAVE_MESSAGE(Code)



SAVE_RESOURCES_TITLE
final static String SAVE_RESOURCES_TITLE(Code)



editorPresentation
EditorAreaHelper editorPresentation(Code)



page
WorkbenchPage page(Code)



window
WorkbenchWindow window(Code)




Constructor Detail
EditorManager
public EditorManager(WorkbenchWindow window, WorkbenchPage workbenchPage, EditorAreaHelper pres)(Code)
EditorManager constructor comment.




Method Detail
addExtension
public void addExtension(IExtensionTracker tracker, IExtension extension)(Code)



checkCreateEditorPropListener
void checkCreateEditorPropListener()(Code)
Check to determine if the property change listener for editors should be created



checkCreatePinEditorShortcutKeyHandler
void checkCreatePinEditorShortcutKeyHandler()(Code)
Check to determine if the handler for the pin editor keyboard shortcut should be created.



checkDeleteEditorResources
void checkDeleteEditorResources()(Code)
Check to determine if the editor resources are no longer needed removes property change listener for editors removes pin editor keyboard shortcut handler disposes cached images and clears the cached images hash table



containsEditor
public boolean containsEditor(IEditorReference ref)(Code)
Returns whether the manager contains an editor.



createPart
IEditorPart createPart(EditorDescriptor desc) throws PartInitException(Code)



createSite
EditorSite createSite(IEditorReference ref, IEditorPart part, EditorDescriptor desc, IEditorInput input) throws PartInitException(Code)



disposeEditorActionBars
void disposeEditorActionBars(EditorActionBars actionBars)(Code)



findEditor
public IEditorPart findEditor(IEditorInput input)(Code)
Returns an open editor matching the given editor input. If none match, returns null.
Parameters:
  input - the editor input the matching editor, or null if no match fond



findEditor
public IEditorPart findEditor(String editorId, IEditorInput input, int matchFlags)(Code)
Returns an open editor matching the given editor input and/or editor id, as specified by matchFlags. If none match, returns null.
Parameters:
  editorId - the editor id
Parameters:
  input - the editor input
Parameters:
  matchFlags - flags specifying which aspects to match the matching editor, or null if no match fond
since:
   3.1



findEditors
public IEditorReference[] findEditors(IEditorInput input, String editorId, int matchFlags)(Code)
Returns the open editor references matching the given editor input and/or editor id, as specified by matchFlags. If none match, returns an empty array.
Parameters:
  editorId - the editor id
Parameters:
  input - the editor input
Parameters:
  matchFlags - flags specifying which aspects to match the matching editor, or null if no match fond
since:
   3.1



findImage
ImageDescriptor findImage(EditorDescriptor desc, IPath path)(Code)



getDirtyEditors
public IEditorPart[] getDirtyEditors()(Code)



getEditorCount
public int getEditorCount()(Code)
Answer the number of editors.



getEditorPinImageDesc
ImageDescriptor getEditorPinImageDesc()(Code)
Method to create the editor's pin ImageDescriptor the single image descriptor for the editor's pin icon



getEditors
public IEditorReference[] getEditors()(Code)



getMemento
public IMemento getMemento(IEditorReference e)(Code)



getVisibleEditor
public IEditorPart getVisibleEditor()(Code)



isSaveAllNeeded
public boolean isSaveAllNeeded()(Code)
Answer true if save is needed in any one of the editors.



openEditor
public IEditorReference openEditor(String editorId, IEditorInput input, boolean setVisible, IMemento editorState) throws PartInitException(Code)

Parameters:
  editorId - the editor part id
Parameters:
  input - the input
Parameters:
  setVisible - if this is to be created visible ... not used
Parameters:
  editorState - an IMemento <editorState> for persistableeditors. Can be null. a created editor reference
throws:
  PartInitException -



openEditorFromDescriptor
public IEditorReference openEditorFromDescriptor(EditorDescriptor desc, IEditorInput input, IMemento editorState) throws PartInitException(Code)



openEmptyTab
IEditorReference openEmptyTab()(Code)



openMultiEditor
IEditorReference[] openMultiEditor(IEditorReference ref, MultiEditor part, MultiEditorInput input) throws PartInitException(Code)
Create the part and reference for each inner editor.
Parameters:
  ref - the MultiEditor reference
Parameters:
  part - the part
Parameters:
  input - the MultiEditor input the array of inner references to store in the MultiEditor reference



removeExtension
public void removeExtension(IExtension source, Object[] objects)(Code)



restoreEditorState
public void restoreEditorState(IMemento editorMem, ArrayList visibleEditors, IEditorReference[] activeEditor, MultiStatus result)(Code)



restoreState
public IStatus restoreState(IMemento memento)(Code)

See Also:   org.eclipse.ui.IPersistable



saveAll
public boolean saveAll(boolean confirm, boolean closing, boolean addNonPartSources)(Code)
Save all of the editors in the workbench. Return true if successful. Return false if the user has canceled the command.
Parameters:
  confirm - true if the user should be prompted before the save
Parameters:
  closing - true if the page is being closed
Parameters:
  addNonPartSources - true if saveables from non-part sources should be saved too. false if the user canceled or an error occurred while saving



saveAll
public static boolean saveAll(List dirtyParts, boolean confirm, boolean closing, boolean addNonPartSources, IWorkbenchWindow window)(Code)
Saves the given dirty editors and views, optionally prompting the user.
Parameters:
  dirtyParts - the dirty views and editors
Parameters:
  confirm - true to prompt whether to save, falseto save without prompting
Parameters:
  closing - true if the parts are being closed,false if just being saved without closing
Parameters:
  addNonPartSources - true if non-part sources should be saved too
Parameters:
  window - the window to use as the parent for the dialog that prompts tosave multiple dirty editors and views true on success, false if the usercanceled the save or an error occurred while saving



saveAll
public static boolean saveAll(List dirtyParts, boolean confirm, boolean closing, boolean addNonPartSources, IRunnableContext runnableContext, IShellProvider shellProvider)(Code)
Saves the given dirty editors and views, optionally prompting the user.
Parameters:
  dirtyParts - the dirty views and editors
Parameters:
  confirm - true to prompt whether to save,false to save without prompting
Parameters:
  closing - true if the parts are being closed,false if just being saved without closing
Parameters:
  addNonPartSources - true if non-part sources should be saved too
Parameters:
  runnableContext - the context in which to run long-running operations
Parameters:
  shellProvider - providing the shell to use as the parent for the dialog thatprompts to save multiple dirty editors and views true on success, false if the usercanceled the save



saveEditorState
protected void saveEditorState(IMemento mem, IEditorReference ed, MultiStatus res)(Code)



savePart
public boolean savePart(ISaveablePart saveable, IWorkbenchPart part, boolean confirm)(Code)



saveState
public IStatus saveState(IMemento memento)(Code)

See Also:   IPersistablePart



setVisibleEditor
public boolean setVisibleEditor(IEditorReference newEd, boolean setFocus)(Code)
Shows an editor. If setFocus == true then give it focus, too. true if the active editor was changed, false if not.



useIPersistableEditor
public static boolean useIPersistableEditor()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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