Java Doc for WizardsRegistryReader.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) 


java.lang.Object
   org.eclipse.ui.internal.registry.RegistryReader
      org.eclipse.ui.internal.registry.WizardsRegistryReader

WizardsRegistryReader
public class WizardsRegistryReader extends RegistryReader (Code)
Instances access the registry that is provided at creation time in order to determine the contained Wizards


Field Summary
final public static  StringFULL_EXAMPLES_WIZARD_CATEGORY
    
final public static  StringGENERAL_WIZARD_CATEGORY
    
final public static  StringUNCATEGORIZED_WIZARD_CATEGORY
    

Constructor Summary
public  WizardsRegistryReader(String pluginId, String pluginPointId)
     Create an instance of this class.

Method Summary
protected  voidaddNewElementToResult(WorkbenchWizardElement element, IConfigurationElement config)
    
protected  booleanareWizardsRead()
    
protected  WizardCollectionElementcreateCollectionElement(WizardCollectionElement parent, String id, String pluginId, String label)
     Create and answer a new WizardCollectionElement, configured as a child of parent org.eclipse.ui.internal.model.WizardCollectionElement
Parameters:
  parent - org.eclipse.ui.internal.model.WizardCollectionElement
Parameters:
  id - the id of the new collection
Parameters:
  pluginId - the originating plugin id of the collection, if any.
protected  voidcreateEmptyWizardCollection()
     Creates empty element collection.
protected  WorkbenchWizardElementcreateWizardElement(IConfigurationElement element)
     Returns a new WorkbenchWizardElement configured according to the parameters contained in the passed Registry.
public  WorkbenchWizardElementfindWizard(String id)
     Returns the first wizard with a given id.
protected  StringgetCategoryStringFor(IConfigurationElement config)
     Return the appropriate category (tree location) for this Wizard.
protected  WizardCollectionElementgetChildWithID(WizardCollectionElement parent, String id)
     Go through the children of the passed parent and answer the child with the passed name.
public  WorkbenchWizardElement[]getPrimaryWizards()
     Returns the list of wizards that are considered 'primary'. The return value for this method is cached since computing its value requires non-trivial work.
protected  Object[]getWizardCollectionElements()
    
public  WizardCollectionElementgetWizardElements()
     Returns a list of wizards, project and not. The return value for this method is cached since computing its value requires non-trivial work.
protected  voidmoveElementToUncategorizedCategory(WizardCollectionElement root, WorkbenchWizardElement element)
     Moves given element to "Other" category, previously creating one if missing.
public  booleanreadElement(IConfigurationElement element)
     Implement this method to read element attributes.
protected  voidreadWizards()
     Reads the wizards in a registry.
public  voidsetInitialCollection(WizardCollectionElement wizards)
     Set the initial wizard set for supplemental reading via dynamic plugin loading.

Field Detail
FULL_EXAMPLES_WIZARD_CATEGORY
final public static String FULL_EXAMPLES_WIZARD_CATEGORY(Code)
Examples wizard category id



GENERAL_WIZARD_CATEGORY
final public static String GENERAL_WIZARD_CATEGORY(Code)
General wizard category id



UNCATEGORIZED_WIZARD_CATEGORY
final public static String UNCATEGORIZED_WIZARD_CATEGORY(Code)
Other wizard category id




Constructor Detail
WizardsRegistryReader
public WizardsRegistryReader(String pluginId, String pluginPointId)(Code)
Create an instance of this class.
Parameters:
  pluginId - the plugin id
Parameters:
  pluginPointId - java.lang.String




Method Detail
addNewElementToResult
protected void addNewElementToResult(WorkbenchWizardElement element, IConfigurationElement config)(Code)



areWizardsRead
protected boolean areWizardsRead()(Code)
Returns whether the wizards have been read already



createCollectionElement
protected WizardCollectionElement createCollectionElement(WizardCollectionElement parent, String id, String pluginId, String label)(Code)
Create and answer a new WizardCollectionElement, configured as a child of parent org.eclipse.ui.internal.model.WizardCollectionElement
Parameters:
  parent - org.eclipse.ui.internal.model.WizardCollectionElement
Parameters:
  id - the id of the new collection
Parameters:
  pluginId - the originating plugin id of the collection, if any. null otherwise.
Parameters:
  label - java.lang.String



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



createWizardElement
protected WorkbenchWizardElement createWizardElement(IConfigurationElement element)(Code)
Returns a new WorkbenchWizardElement 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 wizard



findWizard
public WorkbenchWizardElement findWizard(String id)(Code)
Returns the first wizard with a given id.
Parameters:
  id - wizard id to search for WorkbenchWizardElement matching the given id, if found; null otherwise



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



getChildWithID
protected WizardCollectionElement getChildWithID(WizardCollectionElement 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.WizardCollectionElement
Parameters:
  parent - org.eclipse.ui.internal.model.WizardCollectionElement
Parameters:
  id - java.lang.String



getPrimaryWizards
public WorkbenchWizardElement[] getPrimaryWizards()(Code)
Returns the list of wizards that are considered 'primary'. The return value for this method is cached since computing its value requires non-trivial work. the primary wizards



getWizardCollectionElements
protected Object[] getWizardCollectionElements()(Code)



getWizardElements
public WizardCollectionElement getWizardElements()(Code)
Returns a list of wizards, project and not. The return value for this method is cached since computing its value requires non-trivial work. the wizard collection



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



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



readWizards
protected void readWizards()(Code)
Reads the wizards in a registry.

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




setInitialCollection
public void setInitialCollection(WizardCollectionElement wizards)(Code)
Set the initial wizard set for supplemental reading via dynamic plugin loading.
Parameters:
  wizards - the wizards
since:
   3.1



Methods inherited from org.eclipse.ui.internal.registry.RegistryReader
public static String getClassValue(IConfigurationElement configElement, String classAttributeName)(Code)(Java Doc)
public static String getDescription(IConfigurationElement configElement)(Code)(Java Doc)
protected static void logError(IConfigurationElement element, String text)(Code)(Java Doc)
protected static void logMissingAttribute(IConfigurationElement element, String attributeName)(Code)(Java Doc)
protected static void logMissingElement(IConfigurationElement element, String elementName)(Code)(Java Doc)
protected static void logUnknownElement(IConfigurationElement element)(Code)(Java Doc)
public static IExtension[] orderExtensions(IExtension[] extensions)(Code)(Java Doc)
abstract protected boolean readElement(IConfigurationElement element)(Code)(Java Doc)
protected void readElementChildren(IConfigurationElement element)(Code)(Java Doc)
protected void readElements(IConfigurationElement[] elements)(Code)(Java Doc)
protected void readExtension(IExtension extension)(Code)(Java Doc)
public 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.