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

All known Subclasses:   org.eclipse.ui.internal.wizards.datatransfer.WizardFileSystemResourceImportPage1,
WizardResourceImportPage
abstract public class WizardResourceImportPage extends WizardDataTransferPage (Code)
The abstract superclass for a typical import wizard's main page.

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

Subclasses must implement

  • createSourceGroup

Subclasses may override

  • allowNewContainerName

Subclasses may extend

  • handleEvent



Field Summary
protected  java.util.ListselectedTypes
    
protected  ResourceTreeAndListGroupselectionGroup
     The selectionGroup field should have been created with a private modifier.

Constructor Summary
protected  WizardResourceImportPage(String name, IStructuredSelection selection)
     Creates an import wizard page.

Method Summary
protected  booleanallowNewContainerName()
     The WizardResourceImportPage implementation of this WizardDataTransferPage method returns true.
public  voidcreateControl(Composite parent)
     (non-Javadoc) Method declared on IDialogPage.
final protected  voidcreateDestinationGroup(Composite parent)
     Creates the import destination specification controls.
protected  voidcreateFileSelectionGroup(Composite parent)
    
abstract protected  voidcreateSourceGroup(Composite parent)
     Creates the import source specification controls.
protected  booleandeterminePageCompletion()
    
protected  IPathgetContainerFullPath()
     Returns the path of the container resource specified in the container name entry field, or null if no name has been typed in.
protected  StringgetErrorDialogTitle()
    
abstract protected  ITreeContentProvidergetFileProvider()
     Returns a content provider for FileSystemElements that returns only files as children.
abstract protected  ITreeContentProvidergetFolderProvider()
     Returns a content provider for FileSystemElements that returns only folders as children.
protected  IPathgetResourcePath()
     Return the path for the resource field.
protected  java.util.ListgetSelectedResources()
     Returns this page's list of currently-specified resources to be imported.
protected  voidgetSelectedResources(IElementFilter filter, IProgressMonitor monitor)
     Returns this page's list of currently-specified resources to be imported filtered by the IElementFilter.
final protected  StringgetSourceConflictMessage()
     Returns the error message for when the source conflicts with the destination.
protected  IContainergetSpecifiedContainer()
     Returns the container resource specified in the container name entry field, or null if such a container does not exist in the workbench.
protected  java.util.ListgetTypesToImport()
     Returns a collection of the currently-specified resource types for use by the type selection dialog.
protected  voidhandleContainerBrowseButtonPressed()
     Opens a container selection dialog and displays the user's subsequent container resource selection in this page's container name field.
public  voidhandleEvent(Event event)
     The WizardResourceImportPage implementation of this Listener method handles all events and enablements for controls on this page.
protected  voidhandleTypesEditButtonPressed()
    
final protected  voidinitialPopulateContainerField()
     Sets the initial contents of the container name field.
protected  voidsetAllSelections(boolean value)
    
public  voidsetContainerFieldValue(String value)
     Sets the value of this page's container resource field, or stores it for future use if this page's controls do not exist yet.
protected  voidsetupSelectionsBasedOnSelectedTypes()
     Update the tree to only select those elements that match the selected types.
protected  booleansourceConflictsWithDestination(IPath sourcePath)
     Returns whether or not the source location conflicts with the destination resource.
protected  voidupdateSelections(Map map)
     Update the selections with those in map .
protected  voidupdateWidgetEnablements()
     Check if widgets are enabled or disabled by a change in the dialog.
final protected  booleanvalidateDestinationGroup()
    

Field Detail
selectedTypes
protected java.util.List selectedTypes(Code)



selectionGroup
protected ResourceTreeAndListGroup selectionGroup(Code)
The selectionGroup field should have been created with a private modifier. Subclasses should not access this field directly.




Constructor Detail
WizardResourceImportPage
protected WizardResourceImportPage(String name, IStructuredSelection selection)(Code)
Creates an import wizard page. If the initial resource selection contains exactly one container resource then it will be used as the default import destination.
Parameters:
  name - the name of the page
Parameters:
  selection - the current resource selection




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



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



createDestinationGroup
final protected void createDestinationGroup(Composite parent)(Code)
Creates the import destination specification controls.
Parameters:
  parent - the parent control



createFileSelectionGroup
protected void createFileSelectionGroup(Composite parent)(Code)
Create the import source selection widget



createSourceGroup
abstract protected void createSourceGroup(Composite parent)(Code)
Creates the import source specification controls.

Subclasses must implement this method.


Parameters:
  parent - the parent control



determinePageCompletion
protected boolean determinePageCompletion()(Code)



getContainerFullPath
protected IPath getContainerFullPath()(Code)
Returns the path of the container resource specified in the container name entry field, or null if no name has been typed in.

The container specified by the full path might not exist and would need to be created.

the full path of the container resource specified inthe container name entry field, or null



getErrorDialogTitle
protected String getErrorDialogTitle()(Code)



getFileProvider
abstract protected ITreeContentProvider getFileProvider()(Code)
Returns a content provider for FileSystemElements that returns only files as children.



getFolderProvider
abstract protected ITreeContentProvider getFolderProvider()(Code)
Returns a content provider for FileSystemElements that returns only folders as children.



getResourcePath
protected IPath getResourcePath()(Code)
Return the path for the resource field. IPath



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



getSelectedResources
protected void getSelectedResources(IElementFilter filter, IProgressMonitor monitor) throws InterruptedException(Code)
Returns this page's list of currently-specified resources to be imported filtered by the IElementFilter.



getSourceConflictMessage
final protected String getSourceConflictMessage()(Code)
Returns the error message for when the source conflicts with the destination.



getSpecifiedContainer
protected IContainer getSpecifiedContainer()(Code)
Returns the container resource specified in the container name entry field, or null if such a container does not exist in the workbench. the container resource specified in the container name entry field,or null



getTypesToImport
protected java.util.List getTypesToImport()(Code)
Returns a collection of the currently-specified resource types for use by the type selection dialog.



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



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



handleTypesEditButtonPressed
protected void handleTypesEditButtonPressed()(Code)
Open a registered type selection dialog and note the selections in the receivers types-to-export field



initialPopulateContainerField
final protected void initialPopulateContainerField()(Code)
Sets the initial contents of the container name field.



setAllSelections
protected void setAllSelections(boolean value)(Code)
Set all of the selections in the selection group to value
Parameters:
  value - boolean



setContainerFieldValue
public void setContainerFieldValue(String value)(Code)
Sets the value of this page's container resource field, or stores it for future use if this page's controls do not exist yet.
Parameters:
  value - String



setupSelectionsBasedOnSelectedTypes
protected void setupSelectionsBasedOnSelectedTypes()(Code)
Update the tree to only select those elements that match the selected types. Do nothing by default.



sourceConflictsWithDestination
protected boolean sourceConflictsWithDestination(IPath sourcePath)(Code)
Returns whether or not the source location conflicts with the destination resource. By default this is not checked, so false is returned.
Parameters:
  sourcePath - the path being checked true if the source location conflicts with thedestination resource, false if not



updateSelections
protected void updateSelections(Map map)(Code)
Update the selections with those in map .
Parameters:
  map - Map - key tree elements, values Lists of list elements



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



validateDestinationGroup
final protected boolean validateDestinationGroup()(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.