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


org.eclipse.ui.internal.registry.EditorRegistry

EditorRegistry
public class EditorRegistry extends EventManager implements IEditorRegistry,IExtensionChangeHandler(Code)
Provides access to the collection of defined editors for resource types.

Inner Class :class RelatedRegistry

Field Summary
final public static  StringEMPTY_EDITOR_ID
    

Constructor Summary
public  EditorRegistry()
     Return an instance of the receiver.

Method Summary
public  voidaddEditorFromPlugin(EditorDescriptor editor, List extensions, List filenames, List contentTypeVector, boolean bDefault)
     Add an editor for the given extensions with the specified (possibly null) extended type.
public  voidaddExtension(IExtensionTracker tracker, IExtension extension)
    
public  voidaddPropertyListener(IPropertyListener l)
    
public  IEditorDescriptorfindEditor(String id)
    
public  IEditorDescriptorgetDefaultEditor()
    
public  IEditorDescriptorgetDefaultEditor(String filename)
    
public  IEditorDescriptorgetDefaultEditor(String fileName, IContentType contentType)
    
public  IEditorDescriptor[]getEditors(String filename)
    
public  IEditorDescriptor[]getEditors(String fileName, IContentType contentType)
    
public  IEditorDescriptor[]getEditorsForContentType(IContentType type)
     Return the editors bound to this content type, either directly or indirectly.
public  IFileEditorMapping[]getFileEditorMappings()
    
public  ImageDescriptorgetImageDescriptor(String filename)
    
public  ImageDescriptorgetImageDescriptor(String filename, IContentType contentType)
    
public  IEditorDescriptor[]getSortedEditorsFromOS()
     Return the editor descriptors pulled from the OS.

WARNING! The image described by each editor descriptor is *not* known by the workbench's graphic registry.

public  IEditorDescriptor[]getSortedEditorsFromPlugins()
     Return the editors loaded from plugins.
public  ImageDescriptorgetSystemExternalEditorImageDescriptor(String filename)
    
public  IFileEditorMapping[]getUnifiedMappings()
     Get filemappings for all defined filetypes, including those defined by content type.
public  booleanisSystemExternalEditorAvailable(String filename)
    
public  booleanisSystemInPlaceEditorAvailable(String filename)
    
public  voidreadResources(Map editorTable, Reader reader)
     Read the file types and associate them to their defined editor(s).
public  voidremoveExtension(IExtension source, Object[] objects)
    
public  voidremovePropertyListener(IPropertyListener l)
    
public  voidsaveAssociations()
     Save the registry to the filesystem by serializing the current resource associations.
public  voidsetDefaultEditor(String fileName, String editorId)
    
public  voidsetFileEditorMappings(FileEditorMapping[] newResourceTypes)
     Set the collection of FileEditorMappings.

Field Detail
EMPTY_EDITOR_ID
final public static String EMPTY_EDITOR_ID(Code)




Constructor Detail
EditorRegistry
public EditorRegistry()(Code)
Return an instance of the receiver. Adds listeners into the extension registry for dynamic UI purposes.




Method Detail
addEditorFromPlugin
public void addEditorFromPlugin(EditorDescriptor editor, List extensions, List filenames, List contentTypeVector, boolean bDefault)(Code)
Add an editor for the given extensions with the specified (possibly null) extended type. The editor is being registered from a plugin
Parameters:
  editor - The description of the editor (as obtained from the pluginfile and built by the registry reader)
Parameters:
  extensions - Collection of file extensions the editor applies to
Parameters:
  filenames - Collection of filenames the editor applies to
Parameters:
  contentTypeVector -
Parameters:
  bDefault - Indicates whether the editor should be made the default editorand hence appear first inside a FileEditorMappingThis method is not API and should not be called outside the workbenchcode.



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



addPropertyListener
public void addPropertyListener(IPropertyListener l)(Code)



findEditor
public IEditorDescriptor findEditor(String id)(Code)



getDefaultEditor
public IEditorDescriptor getDefaultEditor()(Code)



getDefaultEditor
public IEditorDescriptor getDefaultEditor(String filename)(Code)



getDefaultEditor
public IEditorDescriptor getDefaultEditor(String fileName, IContentType contentType)(Code)



getEditors
public IEditorDescriptor[] getEditors(String filename)(Code)



getEditors
public IEditorDescriptor[] getEditors(String fileName, IContentType contentType)(Code)



getEditorsForContentType
public IEditorDescriptor[] getEditorsForContentType(IContentType type)(Code)
Return the editors bound to this content type, either directly or indirectly.
Parameters:
  type - the content type to check the editors
since:
   3.1
since:
   TODO: this should be rolled in with the above findRelatedObjects code



getFileEditorMappings
public IFileEditorMapping[] getFileEditorMappings()(Code)



getImageDescriptor
public ImageDescriptor getImageDescriptor(String filename)(Code)



getImageDescriptor
public ImageDescriptor getImageDescriptor(String filename, IContentType contentType)(Code)



getSortedEditorsFromOS
public IEditorDescriptor[] getSortedEditorsFromOS()(Code)
Return the editor descriptors pulled from the OS.

WARNING! The image described by each editor descriptor is *not* known by the workbench's graphic registry. Therefore clients must take care to ensure that if they access any of the images held by these editors that they also dispose them

the editor descriptors



getSortedEditorsFromPlugins
public IEditorDescriptor[] getSortedEditorsFromPlugins()(Code)
Return the editors loaded from plugins. the sorted array of editors declared in plugins
See Also:   EditorRegistry.comparer



getSystemExternalEditorImageDescriptor
public ImageDescriptor getSystemExternalEditorImageDescriptor(String filename)(Code)



getUnifiedMappings
public IFileEditorMapping[] getUnifiedMappings()(Code)
Get filemappings for all defined filetypes, including those defined by content type. the filetypes
since:
   3.1



isSystemExternalEditorAvailable
public boolean isSystemExternalEditorAvailable(String filename)(Code)



isSystemInPlaceEditorAvailable
public boolean isSystemInPlaceEditorAvailable(String filename)(Code)



readResources
public void readResources(Map editorTable, Reader reader) throws WorkbenchException(Code)
Read the file types and associate them to their defined editor(s).
Parameters:
  editorTable - The editor table containing the defined editors.
Parameters:
  reader - Reader containing the preferences content for the resources.
throws:
  WorkbenchException -



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



removePropertyListener
public void removePropertyListener(IPropertyListener l)(Code)



saveAssociations
public void saveAssociations()(Code)
Save the registry to the filesystem by serializing the current resource associations.



setDefaultEditor
public void setDefaultEditor(String fileName, String editorId)(Code)



setFileEditorMappings
public void setFileEditorMappings(FileEditorMapping[] newResourceTypes)(Code)
Set the collection of FileEditorMappings. The given collection is converted into the internal hash table for faster lookup Each mapping goes from an extension to the collection of editors that work on it. This operation will rebuild the internal editor mappings.
Parameters:
  newResourceTypes - te new file editor mappings.



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