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


java.lang.Object
   org.eclipse.ui.internal.cheatsheets.registry.RegistryReader
      org.eclipse.ui.internal.cheatsheets.registry.CheatSheetRegistryReader

CheatSheetRegistryReader
public class CheatSheetRegistryReader extends RegistryReader implements IRegistryChangeListener(Code)
Instances access the registry that is provided at creation time in order to determine the contained CheatSheet Contents

Inner Class :public class TaskEditorNode
Inner Class :public class TaskExplorerNode

Field Summary
final protected static  StringATT_CLASS
    
final public static  StringATT_CONTENTFILE
    
final protected static  StringATT_ICON
    
final protected static  StringATT_ID
    
final protected static  StringATT_LISTENERCLASS
    
final protected static  StringATT_NAME
    
final public static  StringCHEAT_SHEET_CONTENT
    
final public static  StringTAG_CHEATSHEET
    
final protected static  StringTAG_ITEM_EXTENSION
    
final protected static  StringTAG_TASK_EDITOR
    
final protected static  StringTAG_TASK_EXPLORER
    
protected  ArrayListcheatsheetItemExtensions
    
protected  AdaptableListcheatsheets
    
protected  MaptaskEditors
    
protected  MaptaskExplorers
    
final protected static  StringtrueString
    


Method Summary
protected  voidaddNewElementToResult(CheatSheetElement element, IConfigurationElement config, AdaptableList result)
     Adds new cheatsheet to the provided collection.
protected  CheatSheetElementcreateCheatSheetElement(IConfigurationElement element)
     Returns a new CheatSheetElement configured according to the parameters contained in the passed Registry.
protected  CheatSheetCollectionElementcreateCollectionElement(CheatSheetCollectionElement parent, String pluginId, String id, String label)
    
protected  AdaptableListcreateEmptyCheatSheetCollection()
     Creates empty element collection.
public  CheatSheetElementfindCheatSheet(String id)
     Returns the first cheatsheet with a given id.
public  TaskEditorNodefindTaskEditor(String id)
     Returns the first task editor with a given id.
public  TaskExplorerNodefindTaskExplorer(String id)
     Returns the first task explorer with a given id.
protected  StringgetCategoryStringFor(IConfigurationElement config)
     Return the appropriate category (tree location) for this CheatSheet.
public  AdaptableListgetCheatSheets()
     Returns a list of cheatsheets, project and not. The return value for this method is cached since computing its value requires non-trivial work.
protected  CheatSheetCollectionElementgetChildWithID(CheatSheetCollectionElement parent, String id)
     Go through the children of the passed parent and answer the child with the passed name.
public  String[]getExplorerIds()
    
public static  CheatSheetRegistryReadergetInstance()
     Returns a list of cheatsheets, project and not. The return value for this method is cached since computing its value requires non-trivial work.
protected  booleaninitializeCheatSheet(CheatSheetElement element, IConfigurationElement config)
     Initialize the passed element's properties based on the contents of the passed registry.
protected  voidmoveElementToUncategorizedCategory(CheatSheetCollectionElement root, CheatSheetElement element)
     Moves given element to "Other" category, previously creating one if missing.
protected  voidreadCheatSheets()
     Reads the cheatsheets in a registry.
protected  booleanreadElement(IConfigurationElement element)
     Implement this method to read element attributes.
public  ArrayListreadItemExtensions()
    
public  voidregistryChanged(IRegistryChangeEvent event)
    
public  voidstop()
    

Field Detail
ATT_CLASS
final protected static String ATT_CLASS(Code)



ATT_CONTENTFILE
final public static String ATT_CONTENTFILE(Code)



ATT_ICON
final protected static String ATT_ICON(Code)



ATT_ID
final protected static String ATT_ID(Code)



ATT_LISTENERCLASS
final protected static String ATT_LISTENERCLASS(Code)



ATT_NAME
final protected static String ATT_NAME(Code)



CHEAT_SHEET_CONTENT
final public static String CHEAT_SHEET_CONTENT(Code)



TAG_CHEATSHEET
final public static String TAG_CHEATSHEET(Code)



TAG_ITEM_EXTENSION
final protected static String TAG_ITEM_EXTENSION(Code)



TAG_TASK_EDITOR
final protected static String TAG_TASK_EDITOR(Code)



TAG_TASK_EXPLORER
final protected static String TAG_TASK_EXPLORER(Code)



cheatsheetItemExtensions
protected ArrayList cheatsheetItemExtensions(Code)



cheatsheets
protected AdaptableList cheatsheets(Code)



taskEditors
protected Map taskEditors(Code)



taskExplorers
protected Map taskExplorers(Code)



trueString
final protected static String trueString(Code)





Method Detail
addNewElementToResult
protected void addNewElementToResult(CheatSheetElement element, IConfigurationElement config, AdaptableList result)(Code)
Adds new cheatsheet to the provided collection. Override to provide more logic.

This implementation uses a defering strategy. For more info see readCheatSheets.




createCheatSheetElement
protected CheatSheetElement createCheatSheetElement(IConfigurationElement element)(Code)
Returns a new CheatSheetElement configured according to the parameters contained in the passed Registry. May answer null if there was not enough information in the Extension to create an adequate cheatsheet



createCollectionElement
protected CheatSheetCollectionElement createCollectionElement(CheatSheetCollectionElement parent, String pluginId, String id, String label)(Code)
Create and answer a new CheatSheetCollectionElement, configured as a child of parent org.eclipse.ui.internal.model.CheatSheetCollectionElement
Parameters:
  parent - org.eclipse.ui.internal.model.CheatSheetCollectionElement
Parameters:
  childName - java.lang.String



createEmptyCheatSheetCollection
protected AdaptableList createEmptyCheatSheetCollection()(Code)
Creates empty element collection. Overrider to fill initial elements, if needed.



findCheatSheet
public CheatSheetElement findCheatSheet(String id)(Code)
Returns the first cheatsheet with a given id.



findTaskEditor
public TaskEditorNode findTaskEditor(String id)(Code)
Returns the first task editor with a given id.



findTaskExplorer
public TaskExplorerNode findTaskExplorer(String id)(Code)
Returns the first task explorer with a given id.



getCategoryStringFor
protected String getCategoryStringFor(IConfigurationElement config)(Code)
Return the appropriate category (tree location) for this CheatSheet. If a category is not specified then return a default one.



getCheatSheets
public AdaptableList getCheatSheets()(Code)
Returns a list of cheatsheets, project and not. The return value for this method is cached since computing its value requires non-trivial work.



getChildWithID
protected CheatSheetCollectionElement getChildWithID(CheatSheetCollectionElement parent, String id)(Code)
Go through the children of the passed parent and answer the child with the passed name. If no such child is found then return null. org.eclipse.ui.internal.model.CheatSheetCollectionElement
Parameters:
  parent - org.eclipse.ui.internal.model.CheatSheetCollectionElement
Parameters:
  childName - java.lang.String



getExplorerIds
public String[] getExplorerIds()(Code)
Get the list of explorer ids an iterator for the explorer ids



getInstance
public static CheatSheetRegistryReader getInstance()(Code)
Returns a list of cheatsheets, project and not. The return value for this method is cached since computing its value requires non-trivial work.



initializeCheatSheet
protected boolean initializeCheatSheet(CheatSheetElement element, IConfigurationElement config)(Code)
Initialize the passed element's properties based on the contents of the passed registry. Answer a boolean indicating whether the element was able to be adequately initialized. boolean
Parameters:
  element - CheatSheetElement
Parameters:
  extension - Extension



moveElementToUncategorizedCategory
protected void moveElementToUncategorizedCategory(CheatSheetCollectionElement root, CheatSheetElement element)(Code)
Moves given element to "Other" category, previously creating one if missing.



readCheatSheets
protected void readCheatSheets()(Code)
Reads the cheatsheets in a registry.

This implementation uses a defering strategy. All of the elements (categories, cheatsheets) are read. The categories are created as the read occurs. The cheatsheets are just stored for later addition after the read completes. This ensures that cheatsheet categorization is performed after all categories have been read.




readElement
protected boolean readElement(IConfigurationElement element)(Code)
Implement this method to read element attributes.



readItemExtensions
public ArrayList readItemExtensions()(Code)



registryChanged
public void registryChanged(IRegistryChangeEvent event)(Code)



stop
public void stop()(Code)



Fields inherited from org.eclipse.ui.internal.cheatsheets.registry.RegistryReader
final protected static String TAG_DESCRIPTION(Code)(Java Doc)

Methods inherited from org.eclipse.ui.internal.cheatsheets.registry.RegistryReader
String getDescription(IConfigurationElement config)(Code)(Java Doc)
void logMissingAttribute(IConfigurationElement element, String attributeName)(Code)(Java Doc)
abstract boolean readElement(IConfigurationElement element)(Code)(Java Doc)
void readElementChildren(IConfigurationElement element)(Code)(Java Doc)
void readRegistry(IExtensionRegistry registry, String pluginId, String extensionPoint)(Code)(Java Doc)

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.