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

All known Subclasses:   org.eclipse.ui.internal.wizards.datatransfer.WizardFileSystemResourceExportPage1,
WizardExportResourcesPage
abstract public class WizardExportResourcesPage 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  WizardExportResourcesPage(String pageName, IStructuredSelection selection)
     Creates an export wizard page.

Method Summary
protected  booleanallowNewContainerName()
     The addToHierarchyToCheckedStore implementation of this WizardDataTransferPage method returns false.
protected  ButtoncreateButton(Composite parent, int id, String label, boolean defaultButton)
     Creates a new button with the given id.
final protected  voidcreateButtonsGroup(Composite parent)
     Creates the buttons for selecting specific types or selecting all or none of the elements.
public  voidcreateControl(Composite parent)
     (non-Javadoc) Method declared on IDialogPage.
abstract protected  voidcreateDestinationGroup(Composite parent)
     Creates the export destination specification visual components.
final protected  voidcreateResourcesGroup(Composite parent)
     Creates the checkbox tree and list for selecting resources.
protected  booleanensureResourcesLocal(List resources)
     Obsolete method.
protected  ListextractNonLocalResources(List originalList)
     Returns a new subcollection containing only those resources which are not local.
protected  StringgetErrorDialogTitle()
    
protected  ListgetSelectedResources()
     Returns this page's collection of currently-specified resources to be exported.
protected  IteratorgetSelectedResourcesIterator()
     Returns this page's collection of currently-specified resources to be exported.
protected  ListgetTypesToExport()
     Returns the resource extensions currently specified to be exported.
protected  ListgetWhiteCheckedResources()
     Returns this page's collection of currently-specified resources to be exported.
protected  voidhandleTypesEditButtonPressed()
     Queries the user for the types of resources to be exported and selects them in the checkbox group.
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[]queryResourceTypesToExport()
     Queries the user for the resource types that are to be exported and returns these types as an array.
protected  voidrestoreResourceSpecificationWidgetValues()
     Restores resource specification control settings that were persisted in the previous instance of this page.
protected  booleansaveDirtyEditors()
     Save any editors that the user wants to save before export.
protected  voidsaveWidgetValues()
     Persists resource specification control setting that are to be restored in the next instance of this page.
protected  voidsetupBasedOnInitialSelections()
     Set the initial selections in the resource group.
protected  voidupdateWidgetEnablements()
     Check if widgets are enabled or disabled by a change in the dialog.


Constructor Detail
WizardExportResourcesPage
protected WizardExportResourcesPage(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 - IStructuredSelection of IResource
See Also:   IDE.computeSelectedResources(IStructuredSelection)




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



createButton
protected Button createButton(Composite parent, int id, String label, boolean defaultButton)(Code)
Creates a new button with the given id.

The Dialog implementation of this framework method creates a standard push button, registers for selection events including button presses and registers default buttons with its shell. The button id is stored as the buttons client data. Note that the parent's layout is assumed to be a GridLayout and the number of columns in this layout is incremented. Subclasses may override.


Parameters:
  parent - the parent composite
Parameters:
  id - the id of the button (seeIDialogConstants.*_ID constants for standard dialog button ids)
Parameters:
  label - the label from the button
Parameters:
  defaultButton - true if the button is to be thedefault button, and false otherwise



createButtonsGroup
final protected void createButtonsGroup(Composite parent)(Code)
Creates the buttons for selecting specific types or selecting all or none of the elements.
Parameters:
  parent - the parent control



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



createResourcesGroup
final protected void createResourcesGroup(Composite parent)(Code)
Creates the checkbox tree and list for selecting resources.
Parameters:
  parent - the parent control



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.



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)



getErrorDialogTitle
protected String getErrorDialogTitle()(Code)



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. a collection of resources currently selected for export (element type: IResource)



getSelectedResourcesIterator
protected Iterator getSelectedResourcesIterator()(Code)
Returns this page's collection of currently-specified resources to be exported. This is the primary resource selection facility accessor for subclasses. an iterator over the collection of resources currently selected for export (element type: IResource). This will includewhite checked folders and individually checked files.



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)



getWhiteCheckedResources
protected List getWhiteCheckedResources()(Code)
Returns this page's collection of currently-specified resources to be exported. This returns both folders and files - for just the files use getSelectedResources. a collection of resources currently selected for export (element type: IResource)



handleTypesEditButtonPressed
protected void handleTypesEditButtonPressed()(Code)
Queries the user for the types of resources to be exported and selects them in the checkbox group.



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.




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



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.



saveDirtyEditors
protected boolean saveDirtyEditors()(Code)
Save any editors that the user wants to save before export. boolean if the save was successful.



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.



setupBasedOnInitialSelections
protected void setupBasedOnInitialSelections()(Code)
Set the initial selections in the resource group.



updateWidgetEnablements
protected void updateWidgetEnablements()(Code)
Check if widgets are enabled or disabled by a change in the dialog.



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.