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


org.eclipse.ui.dialogs.WizardDataTransferPage
   org.eclipse.ui.dialogs.WizardExportPage

WizardExportPage
abstract public class WizardExportPage extends WizardDataTransferPage (Code)
Abstract superclass for a typical export wizard's main page.

Clients may subclass this page to inherit its common destination resource selection facilities.

Subclasses must implement

  • createDestinationGroup

Subclasses may override

  • allowNewContainerName

Subclasses may extend

  • handleEvent
  • internalSaveWidgetValues
  • updateWidgetEnablements




Constructor Summary
protected  WizardExportPage(String pageName, IStructuredSelection selection)
     Creates an export wizard page.

Method Summary
protected  booleanallowNewContainerName()
     The WizardExportPage implementation of this WizardDataTransferPage method returns false.
public  voidcreateControl(Composite parent)
     (non-Javadoc) Method declared on IDialogPage.
abstract protected  voidcreateDestinationGroup(Composite parent)
     Creates the export destination specification visual components.
final protected  voidcreateSourceGroup(Composite parent)
     Creates the export source resource specification controls.
protected  voiddisplayErrorDialog(String message)
     Display an error dialog with the specified message.
protected  voiddisplayResourcesSelectedCount(int selectedResourceCount)
     Displays a description message that indicates a selection of resources of the specified size.
protected  booleanensureResourcesLocal(List resources)
     Obsolete method.
protected  ListextractNonLocalResources(List originalList)
     Returns a new subcollection containing only those resources which are not local.
public  booleangetExportAllTypesValue()
     Returns the current selection value of the "Export all types" radio, or its set initial value if it does not exist yet.
public  StringgetResourceFieldValue()
     Returns the current contents of the resource name entry field, or its set initial value if it does not exist yet (which could be null).
protected  IPathgetResourcePath()
     Return the path for the resource field.
protected  ListgetSelectedResources()
     Returns this page's collection of currently-specified resources to be exported.
protected  IResourcegetSourceResource()
     Returns the resource object specified in the resource name entry field, or null if such a resource does not exist in the workbench.
public  StringgetTypesFieldValue()
     Returns the current contents of the types entry field, or its set initial value if it does not exist yet (which could be null).
protected  ListgetTypesToExport()
     Returns the resource extensions currently specified to be exported.
public  voidhandleEvent(Event event)
     The WizardExportPage implementation of this Listener method handles all events and enablements for controls on this page.
protected  voidhandleResourceBrowseButtonPressed()
     Opens a container selection dialog and displays the user's subsequent container selection in this page's resource name field.
protected  voidhandleResourceDetailsButtonPressed()
     Opens a resource selection dialog and records the user's subsequent resource selections.
protected  voidhandleTypesEditButtonPressed()
     Queries the user for the types of resources to be exported and displays these types in this page's "Types to export" field.
protected  booleanhasExportableExtension(String resourceName)
     Returns whether the extension of the given resource name is an extension that has been specified for export by the user.
protected  voidinternalSaveWidgetValues()
     Persists additional setting that are to be restored in the next instance of this page.

The WizardImportPage implementation of this method does nothing.

protected  Object[]queryIndividualResourcesToExport(IAdaptable rootResource)
     Queries the user for the individual resources that are to be exported and returns these resources as a collection.
protected  Object[]queryResourceTypesToExport()
     Queries the user for the resource types that are to be exported and returns these types as a collection.
protected  voidresetSelectedResources()
     Resets this page's selected resources collection and updates its controls accordingly.
protected  voidrestoreResourceSpecificationWidgetValues()
     Restores resource specification control settings that were persisted in the previous instance of this page.
protected  voidsaveWidgetValues()
     Persists resource specification control setting that are to be restored in the next instance of this page.
protected  voidselectAppropriateFolderContents(IContainer resource)
     Records a container's recursive file descendents which have an extension that has been specified for export by the user.
protected  voidselectAppropriateResources(Object resource)
     Records a resource's recursive descendents which are appropriate for export based upon this page's current controls contents.
public  voidsetExportAllTypesValue(boolean value)
     Sets the selection value of this page's "Export all types" radio, or stores it for future use if this visual component does not exist yet.
public  voidsetResourceFieldValue(String value)
     Sets the value of this page's source resource field, or stores it for future use if this visual component does not exist yet.
protected  voidsetResourceToDisplay(IResource resource)
     Set the resource whos name we will display.
public  voidsetTypesFieldValue(String value)
     Sets the value of this page's "Types to export" field, or stores it for future use if this visual component does not exist yet.
protected  voidsetTypesToExport(List typeStrings)
     Sets the value of this page's "Types to export" field based upon the collection of extensions.
protected  voidsetupBasedOnInitialSelections()
     Populates the resource name field based upon the currently selected resources.
protected  voidupdateWidgetEnablements()
     Updates the enablements of this page's controls.
final protected  booleanvalidateSourceGroup()
    


Constructor Detail
WizardExportPage
protected WizardExportPage(String pageName, IStructuredSelection selection)(Code)
Creates an export wizard page. If the current resource selection is not empty then it will be used as the initial collection of resources selected for export.
Parameters:
  pageName - the name of the page
Parameters:
  selection - the current resource selection




Method Detail
allowNewContainerName
protected boolean allowNewContainerName()(Code)
The WizardExportPage implementation of this WizardDataTransferPage method returns false. Subclasses may override this method.



createControl
public void createControl(Composite parent)(Code)
(non-Javadoc) Method declared on IDialogPage.



createDestinationGroup
abstract protected void createDestinationGroup(Composite parent)(Code)
Creates the export destination specification visual components.

Subclasses must implement this method.


Parameters:
  parent - the parent control



createSourceGroup
final protected void createSourceGroup(Composite parent)(Code)
Creates the export source resource specification controls.
Parameters:
  parent - the parent control



displayErrorDialog
protected void displayErrorDialog(String message)(Code)
Display an error dialog with the specified message.
Parameters:
  message - the error message



displayResourcesSelectedCount
protected void displayResourcesSelectedCount(int selectedResourceCount)(Code)
Displays a description message that indicates a selection of resources of the specified size.
Parameters:
  selectedResourceCount - the resource selection size to display



ensureResourcesLocal
protected boolean ensureResourcesLocal(List resources)(Code)
Obsolete method. This was implemented to handle the case where ensureLocal() needed to be called but it doesn't use it any longer.
Parameters:
  resources - the list of resources to ensure locality for true for successful completion



extractNonLocalResources
protected List extractNonLocalResources(List originalList)(Code)
Returns a new subcollection containing only those resources which are not local.
Parameters:
  originalList - the original list of resources (element type: IResource) the new list of non-local resources (element type: IResource)



getExportAllTypesValue
public boolean getExportAllTypesValue()(Code)
Returns the current selection value of the "Export all types" radio, or its set initial value if it does not exist yet. the "Export All Types" radio's current value or anticipated initialvalue



getResourceFieldValue
public String getResourceFieldValue()(Code)
Returns the current contents of the resource name entry field, or its set initial value if it does not exist yet (which could be null). the resource name field's current value or anticipated initial value,or null



getResourcePath
protected IPath getResourcePath()(Code)
Return the path for the resource field. org.eclipse.core.runtime.IPath



getSelectedResources
protected List getSelectedResources()(Code)
Returns this page's collection of currently-specified resources to be exported. This is the primary resource selection facility accessor for subclasses. the collection of resources currently selected for export (element type: IResource)



getSourceResource
protected IResource getSourceResource()(Code)
Returns the resource object specified in the resource name entry field, or null if such a resource does not exist in the workbench. the resource specified in the resource name entry field, or null



getTypesFieldValue
public String getTypesFieldValue()(Code)
Returns the current contents of the types entry field, or its set initial value if it does not exist yet (which could be null). the types entry field's current value or anticipated initial value,or null



getTypesToExport
protected List getTypesToExport()(Code)
Returns the resource extensions currently specified to be exported. the resource extensions currently specified to be exported (element type: String)



handleEvent
public void handleEvent(Event event)(Code)
The WizardExportPage implementation of this Listener method handles all events and enablements for controls on this page. Subclasses may extend.



handleResourceBrowseButtonPressed
protected void handleResourceBrowseButtonPressed()(Code)
Opens a container selection dialog and displays the user's subsequent container selection in this page's resource name field.



handleResourceDetailsButtonPressed
protected void handleResourceDetailsButtonPressed()(Code)
Opens a resource selection dialog and records the user's subsequent resource selections.



handleTypesEditButtonPressed
protected void handleTypesEditButtonPressed()(Code)
Queries the user for the types of resources to be exported and displays these types in this page's "Types to export" field.



hasExportableExtension
protected boolean hasExportableExtension(String resourceName)(Code)
Returns whether the extension of the given resource name is an extension that has been specified for export by the user.
Parameters:
  resourceName - the resource name true if the resource name is suitable for export based upon its extension



internalSaveWidgetValues
protected void internalSaveWidgetValues()(Code)
Persists additional setting that are to be restored in the next instance of this page.

The WizardImportPage implementation of this method does nothing. Subclasses may extend to persist additional settings.




queryIndividualResourcesToExport
protected Object[] queryIndividualResourcesToExport(IAdaptable rootResource)(Code)
Queries the user for the individual resources that are to be exported and returns these resources as a collection.
Parameters:
  rootResource - the resource to use as the root of the selection query the resources selected for export (element type: IResource), or null if the user canceled the selection



queryResourceTypesToExport
protected Object[] queryResourceTypesToExport()(Code)
Queries the user for the resource types that are to be exported and returns these types as a collection. the resource types selected for export (element type: String), or null if the user canceled the selection



resetSelectedResources
protected void resetSelectedResources()(Code)
Resets this page's selected resources collection and updates its controls accordingly.



restoreResourceSpecificationWidgetValues
protected void restoreResourceSpecificationWidgetValues()(Code)
Restores resource specification control settings that were persisted in the previous instance of this page. Subclasses wishing to restore persisted values for their controls may extend.



saveWidgetValues
protected void saveWidgetValues()(Code)
Persists resource specification control setting that are to be restored in the next instance of this page. Subclasses wishing to persist additional setting for their controls should extend hook method internalSaveWidgetValues.



selectAppropriateFolderContents
protected void selectAppropriateFolderContents(IContainer resource)(Code)
Records a container's recursive file descendents which have an extension that has been specified for export by the user.
Parameters:
  resource - the parent container



selectAppropriateResources
protected void selectAppropriateResources(Object resource)(Code)
Records a resource's recursive descendents which are appropriate for export based upon this page's current controls contents.
Parameters:
  resource - the parent resource



setExportAllTypesValue
public void setExportAllTypesValue(boolean value)(Code)
Sets the selection value of this page's "Export all types" radio, or stores it for future use if this visual component does not exist yet.
Parameters:
  value - new selection value



setResourceFieldValue
public void setResourceFieldValue(String value)(Code)
Sets the value of this page's source resource field, or stores it for future use if this visual component does not exist yet.
Parameters:
  value - new value



setResourceToDisplay
protected void setResourceToDisplay(IResource resource)(Code)
Set the resource whos name we will display.
Parameters:
  resource -



setTypesFieldValue
public void setTypesFieldValue(String value)(Code)
Sets the value of this page's "Types to export" field, or stores it for future use if this visual component does not exist yet.
Parameters:
  value - new value



setTypesToExport
protected void setTypesToExport(List typeStrings)(Code)
Sets the value of this page's "Types to export" field based upon the collection of extensions.
Parameters:
  typeStrings - the collection of extensions to populate the "Types toexport" field with (element type: String)



setupBasedOnInitialSelections
protected void setupBasedOnInitialSelections()(Code)
Populates the resource name field based upon the currently selected resources.



updateWidgetEnablements
protected void updateWidgetEnablements()(Code)
Updates the enablements of this page's controls. Subclasses may extend.



validateSourceGroup
final protected boolean validateSourceGroup()(Code)



Fields inherited from org.eclipse.ui.dialogs.WizardDataTransferPage
final protected static int COMBO_HISTORY_LENGTH(Code)(Java Doc)
final protected static int SIZING_TEXT_FIELD_WIDTH(Code)(Java Doc)

Methods inherited from org.eclipse.ui.dialogs.WizardDataTransferPage
protected String[] addToHistory(String[] history, String newEntry)(Code)(Java Doc)
protected void addToHistory(List history, String newEntry)(Code)(Java Doc)
abstract protected boolean allowNewContainerName()(Code)(Java Doc)
protected Label createBoldLabel(Composite parent, String text)(Code)(Java Doc)
protected void createOptionsGroup(Composite parent)(Code)(Java Doc)
protected void createOptionsGroupButtons(Group optionsGroup)(Code)(Java Doc)
protected Label createPlainLabel(Composite parent, String text)(Code)(Java Doc)
protected void createSpacer(Composite parent)(Code)(Java Doc)
protected boolean determinePageCompletion()(Code)(Java Doc)
protected void displayErrorDialog(String message)(Code)(Java Doc)
protected void displayErrorDialog(Throwable exception)(Code)(Java Doc)
protected String getErrorDialogTitle()(Code)(Java Doc)
protected IPath getPathFromText(Text textField)(Code)(Java Doc)
protected IPath queryForContainer(IContainer initialSelection, String msg)(Code)(Java Doc)
protected IPath queryForContainer(IContainer initialSelection, String msg, String title)(Code)(Java Doc)
public String queryOverwrite(String pathString)(Code)(Java Doc)
protected boolean queryYesNoQuestion(String message)(Code)(Java Doc)
protected void restoreWidgetValues()(Code)(Java Doc)
protected void saveWidgetValues()(Code)(Java Doc)
protected void updatePageCompletion()(Code)(Java Doc)
protected void updateWidgetEnablements()(Code)(Java Doc)
protected boolean validateDestinationGroup()(Code)(Java Doc)
protected boolean validateOptionsGroup()(Code)(Java Doc)
protected boolean validateSourceGroup()(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.