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


org.eclipse.pde.ui.templates.ITemplateSection

All known Subclasses:   org.eclipse.pde.ui.templates.AbstractTemplateSection,
ITemplateSection
public interface ITemplateSection (Code)
This interface represents a section of the template wizard that generates a new extension or plug-in. Typically, it maps to one wizard page, but more complex sections may span several pages. Also note that in the very simple cases it may not contribute any wizard pages.

If a section generates extensions, it should be written in such a way to be used both in the 'New Extension' wizard and as a part of a new plug-in project wizard. When used as part of the new plug-in project wizard, it may appear alongside other templates and therefore should not do anything that prevents it.
since:
   2.0





Method Summary
public  voidaddPages(Wizard wizard)
     Adds template-related pages to the wizard.
public  voidexecute(IProject project, IPluginModelBase model, IProgressMonitor monitor)
     Executes the template.
public  IPluginReference[]getDependencies(String schemaVersion)
     Provides the list of template dependencies.
public  StringgetDescription()
     Returns a description of the section.
public  StringgetLabel()
     Returns a presentable label the section.
public  String[]getNewFiles()
     Returns an array of tokens representing new files and folders created by this template section.
public  intgetNumberOfWorkUnits()
     Returns the number of work units that this template will consume during the execution.
public  WizardPagegetPage(int pageIndex)
     Returns a wizard page at the provided index.
public  intgetPageCount()
     Returns number of pages that are contributed by this template.
public  booleangetPagesAdded()
     Tests whether this template have had a chance to create its pages.
public  StringgetReplacementString(String fileName, String key)
     Returns a replacement string for the provided key.
public  URLgetTemplateLocation()
     Returns the URL of the zip file containing template files and directories that will be created in the plug-in project.
public  StringgetUsedExtensionPoint()
     Returns identifier of the extension point used in this section.



Method Detail
addPages
public void addPages(Wizard wizard)(Code)
Adds template-related pages to the wizard. A typical section implementation contributes one page, but complex sections may span several pages.
Parameters:
  wizard - the host wizard to add pages into



execute
public void execute(IProject project, IPluginModelBase model, IProgressMonitor monitor) throws CoreException(Code)
Executes the template. As part of the execution, template may generate resources under the provided project, and/or modify the plug-in model.
Parameters:
  project - the workspace project that contains the plug-in
Parameters:
  model - structured representation of the plug-in manifest
Parameters:
  monitor - progress monitor to indicate execution progress



getDependencies
public IPluginReference[] getDependencies(String schemaVersion)(Code)
Provides the list of template dependencies. A template may generate a number of Java classes that reference classes and interfaces from other plug-ins. By providing this list, a template enables the template wizard to create the correct Java build path so that these classes and interfaces are correctly resolved.
Parameters:
  schemaVersion - version of the target manifest, or null if oldermanifest (prior to 3.0) will be created. Depending on themanifest version, the list of dependencies may vary. an array of template dependencies



getDescription
public String getDescription()(Code)
Returns a description of the section. The description should explain what extension will be used, what classes will be generated and how to test that the generated code works properly. a template description



getLabel
public String getLabel()(Code)
Returns a presentable label the section. a template label



getNewFiles
public String[] getNewFiles()(Code)
Returns an array of tokens representing new files and folders created by this template section. The information is collected for the benefit of build.properties file so that the generated files and folders are included in the binary build. The tokens will be added as-is to the variable bin.includes. For this reason, wild cards and other syntax rules applicable to this variable can be used in this method. For example:

 return new String[]{"/icons/*.gif"};
 

an array of strings that fully describe the files and folderscreated by this template section as required by bin.includes variable in build.propertiesfile.



getNumberOfWorkUnits
public int getNumberOfWorkUnits()(Code)
Returns the number of work units that this template will consume during the execution. This number is used to calculate the total number of work units when initializing the progress indicator. the number of work units



getPage
public WizardPage getPage(int pageIndex)(Code)
Returns a wizard page at the provided index. wizard page index.



getPageCount
public int getPageCount()(Code)
Returns number of pages that are contributed by this template.



getPagesAdded
public boolean getPagesAdded()(Code)
Tests whether this template have had a chance to create its pages. This method returns true after 'addPages' has been called. true if wizard pages have been created by thistemplate.



getReplacementString
public String getReplacementString(String fileName, String key)(Code)
Returns a replacement string for the provided key. When a token is found in the template file with a form '$key$', the actual key is passed to this method to obtain the replacement. If replacement is provided, it is substituted for the token (including the '$' characters). Otherwise, it is transfered as-is.
Parameters:
  fileName - the name of the file in which the key was found. You can useit to return different values for different files.
Parameters:
  key - the replacement key found in the template file replacement string for the provided key, or the key itself if notfound.



getTemplateLocation
public URL getTemplateLocation()(Code)
Returns the URL of the zip file containing template files and directories that will be created in the plug-in project. If URL protocol is 'file', and the URL ends with a trailing file separator, an attempt will be made to treat the URL as a root directory and iterate using standard Java I/O classes. If template files are stored in a ZIP or JAR archive, the name of the archive must be part of the URL. a template location URL



getUsedExtensionPoint
public String getUsedExtensionPoint()(Code)
Returns identifier of the extension point used in this section. extension point id if this section contributes into an extensionpoint or null if not applicable.



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