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


org.eclipse.jdt.ui.wizards.NewElementWizardPage
   org.eclipse.jdt.ui.wizards.NewContainerWizardPage

All known Subclasses:   org.eclipse.jdt.ui.wizards.NewTypeWizardPage,  org.eclipse.jdt.ui.wizards.NewPackageWizardPage,
NewContainerWizardPage
abstract public class NewContainerWizardPage extends NewElementWizardPage (Code)
Wizard page that acts as a base class for wizard pages that create new Java elements. The class provides a input field for source folders (called container in this class) and API to validate the enter source folder name.

Clients may subclass.


since:
   2.0


Field Summary
final protected static  StringCONTAINER
    
protected  IStatusfContainerStatus
     The status of the last validation.

Constructor Summary
public  NewContainerWizardPage(String name)
    

Method Summary
protected  IPackageFragmentRootchooseContainer()
     Opens a selection dialog that allows to select a source container.
protected  IStatuscontainerChanged()
     This method is a hook which gets called after the source folder's text input field has changed.
protected  voidcreateContainerControls(Composite parent, int nColumns)
     Creates the necessary controls (label, text field and browse button) to edit the source folder location.
protected  StringgetContainerLabel()
     Returns the label that is used for the container input field.
protected  ITextSelectiongetCurrentTextSelection()
     Returns the text selection of the current editor.
protected  IJavaElementgetInitialJavaElement(IStructuredSelection selection)
     Utility method to inspect a selection to find a Java element.
public  IJavaProjectgetJavaProject()
     Returns the Java project of the currently selected package fragment root or null if no package fragment root is configured.
protected  intgetMaxFieldWidth()
     Returns the recommended maximum width for text fields (in pixels).
public  IPackageFragmentRootgetPackageFragmentRoot()
     Returns the IPackageFragmentRoot that corresponds to the current value of the source folder field.
public  StringgetPackageFragmentRootText()
     Returns the current text of source folder text field.
protected  IWorkspaceRootgetWorkspaceRoot()
     Returns the workspace root.
protected  voidhandleFieldChanged(String fieldName)
     Hook method that gets called when a field on this page has changed.
protected  voidinitContainerPage(IJavaElement elem)
     Initializes the source folder field with a valid package fragment root.
protected  voidsetFocusOnContainer()
     Sets the focus to the source folder's text field.
public  voidsetPackageFragmentRoot(IPackageFragmentRoot root, boolean canBeModified)
     Sets the current source folder (model and text field) to the given package fragment root.
Parameters:
  root - The new root.
Parameters:
  canBeModified - if false the source folder field can not be changed by the user.

Field Detail
CONTAINER
final protected static String CONTAINER(Code)
Id of the container field



fContainerStatus
protected IStatus fContainerStatus(Code)
The status of the last validation.




Constructor Detail
NewContainerWizardPage
public NewContainerWizardPage(String name)(Code)
Create a new NewContainerWizardPage
Parameters:
  name - the wizard page's name




Method Detail
chooseContainer
protected IPackageFragmentRoot chooseContainer()(Code)
Opens a selection dialog that allows to select a source container. returns the selected package fragment root or null if the dialog has been canceled.The caller typically sets the result to the container input field.

Clients can override this method if they want to offer a different dialog.


since:
   3.2



containerChanged
protected IStatus containerChanged()(Code)
This method is a hook which gets called after the source folder's text input field has changed. This default implementation updates the model and returns an error status. The underlying model is only valid if the returned status is OK. the model's error status



createContainerControls
protected void createContainerControls(Composite parent, int nColumns)(Code)
Creates the necessary controls (label, text field and browse button) to edit the source folder location. The method expects that the parent composite uses a GridLayout as its layout manager and that the grid layout has at least 3 columns.
Parameters:
  parent - the parent composite
Parameters:
  nColumns - the number of columns to span. This number must begreater or equal three



getContainerLabel
protected String getContainerLabel()(Code)
Returns the label that is used for the container input field. the label that is used for the container input field.
since:
   3.2



getCurrentTextSelection
protected ITextSelection getCurrentTextSelection()(Code)
Returns the text selection of the current editor. null is returned when the current editor does not have focus or does not return a text selection. Returns the text selection of the current editor or null.
since:
   3.0



getInitialJavaElement
protected IJavaElement getInitialJavaElement(IStructuredSelection selection)(Code)
Utility method to inspect a selection to find a Java element.
Parameters:
  selection - the selection to be inspected a Java element to be used as the initial selection, or null,if no Java element exists in the given selection



getJavaProject
public IJavaProject getJavaProject()(Code)
Returns the Java project of the currently selected package fragment root or null if no package fragment root is configured. The current Java project or null.
since:
   3.3



getMaxFieldWidth
protected int getMaxFieldWidth()(Code)
Returns the recommended maximum width for text fields (in pixels). This method requires that createContent has been called before this method is call. Subclasses may override to change the maximum width for text fields. the recommended maximum width for text fields.



getPackageFragmentRoot
public IPackageFragmentRoot getPackageFragmentRoot()(Code)
Returns the IPackageFragmentRoot that corresponds to the current value of the source folder field. the IPackageFragmentRoot or null if the current sourcefolder value is not a valid package fragment root



getPackageFragmentRootText
public String getPackageFragmentRootText()(Code)
Returns the current text of source folder text field. the text of the source folder text field



getWorkspaceRoot
protected IWorkspaceRoot getWorkspaceRoot()(Code)
Returns the workspace root. the workspace root



handleFieldChanged
protected void handleFieldChanged(String fieldName)(Code)
Hook method that gets called when a field on this page has changed. For this page the method gets called when the source folder field changes.

Every sub type is responsible to call this method when a field on its page has changed. Subtypes override (extend) the method to add verification when a own field has a dependency to an other field. For example the class name input must be verified again when the package field changes (check for duplicated class names).
Parameters:
  fieldName - The name of the field that has changed (field id). For thesource folder the field id is CONTAINER




initContainerPage
protected void initContainerPage(IJavaElement elem)(Code)
Initializes the source folder field with a valid package fragment root. The package fragment root is computed from the given Java element.
Parameters:
  elem - the Java element used to compute the initial packagefragment root used as the source folder



setFocusOnContainer
protected void setFocusOnContainer()(Code)
Sets the focus to the source folder's text field.



setPackageFragmentRoot
public void setPackageFragmentRoot(IPackageFragmentRoot root, boolean canBeModified)(Code)
Sets the current source folder (model and text field) to the given package fragment root.
Parameters:
  root - The new root.
Parameters:
  canBeModified - if false the source folder field can not be changed by the user. If true the field is editable



Methods inherited from org.eclipse.jdt.ui.wizards.NewElementWizardPage
public void setVisible(boolean visible)(Code)(Java Doc)
protected void updateStatus(IStatus status)(Code)(Java Doc)
protected void updateStatus(IStatus[] status)(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.