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


org.eclipse.ui.dialogs.WizardResourceImportPage
   org.eclipse.ui.internal.wizards.datatransfer.WizardFileSystemResourceImportPage1

All known Subclasses:   org.eclipse.ui.internal.wizards.datatransfer.WizardArchiveFileResourceImportPage1,
WizardFileSystemResourceImportPage1
public class WizardFileSystemResourceImportPage1 extends WizardResourceImportPage implements Listener(Code)
Page 1 of the base resource import-from-file-system Wizard


Field Summary
final protected static  StringSOURCE_EMPTY_MESSAGE
    
protected  ButtoncreateContainerStructureButton
    
protected  ButtoncreateOnlySelectedButton
    
protected  ButtondeselectAllButton
    
protected  ButtonoverwriteExistingResourcesCheckbox
    
protected  ButtonselectAllButton
    
protected  ButtonselectTypesButton
    
protected  ButtonsourceBrowseButton
    
protected  CombosourceNameField
    

Constructor Summary
protected  WizardFileSystemResourceImportPage1(String name, IWorkbench aWorkbench, IStructuredSelection selection)
    
public  WizardFileSystemResourceImportPage1(IWorkbench aWorkbench, IStructuredSelection selection)
    

Method Summary
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)
    
protected  voidcreateOptionsGroupButtons(Group optionsGroup)
     Create the import options specification widgets.
protected  voidcreateRootDirectoryGroup(Composite parent)
    
protected  MinimizedFileSystemElementcreateRootElement(Object fileSystemObject, IImportStructureProvider provider)
     Creates and returns a FileSystemElement if the specified file system object merits one.
protected  voidcreateSourceGroup(Composite parent)
    
protected  voidenableButtonGroup(boolean enable)
     Enable or disable the button group.
protected  booleanensureSourceIsValid()
    
protected  booleanexecuteImportOperation(ImportOperation op)
     Execute the passed import operation.
public  booleanfinish()
     The Finish button was pressed.
protected  ITreeContentProvidergetFileProvider()
     Returns a content provider for FileSystemElements that returns only files as children.
protected  MinimizedFileSystemElementgetFileSystemTree()
     Answer the root FileSystemElement that represents the contents of the currently-specified source.
protected  ITreeContentProvidergetFolderProvider()
     Returns a content provider for FileSystemElements that returns only folders as children.
protected  FilegetSourceDirectory()
     Returns a File object representing the currently-named source directory iff it exists as a valid directory, or null otherwise.
protected  StringgetSourceLabel()
    
public  voidhandleEvent(Event event)
    
protected  voidhandleSourceBrowseButtonPressed()
    
protected  voidhandleTypesEditButtonPressed()
    
protected  booleanimportResources(List fileSystemObjects)
    
protected  voidinitializeOperation(ImportOperation op)
     Initializes the specified operation appropriately.
protected  booleanisExportableExtension(String extension)
     Returns whether the extension provided is an extension that has been specified for export by the user.
protected  voidresetSelection()
     Repopulate the view based on the currently entered directory.
protected  voidrestoreWidgetValues()
    
protected  voidsaveWidgetValues()
    
protected  MinimizedFileSystemElementselectFiles(Object rootFileSystemObject, IImportStructureProvider structureProvider)
     Invokes a file selection operation using the specified file system and structure provider.
protected  voidsetAllSelections(boolean value)
     Set all of the selections in the selection group to value.
protected  voidsetSourceName(String path)
     Sets the source name of the import to be the supplied path.
public  voidsetVisible(boolean visible)
    
protected  voidsetupSelectionsBasedOnSelectedTypes()
    
protected  booleansourceConflictsWithDestination(IPath sourcePath)
     Returns whether 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.
protected  booleanvalidateSourceGroup()
     Answer a boolean indicating whether self's source specification widgets currently all contain valid values.

Field Detail
SOURCE_EMPTY_MESSAGE
final protected static String SOURCE_EMPTY_MESSAGE(Code)



createContainerStructureButton
protected Button createContainerStructureButton(Code)



createOnlySelectedButton
protected Button createOnlySelectedButton(Code)



deselectAllButton
protected Button deselectAllButton(Code)



overwriteExistingResourcesCheckbox
protected Button overwriteExistingResourcesCheckbox(Code)



selectAllButton
protected Button selectAllButton(Code)



selectTypesButton
protected Button selectTypesButton(Code)



sourceBrowseButton
protected Button sourceBrowseButton(Code)



sourceNameField
protected Combo sourceNameField(Code)




Constructor Detail
WizardFileSystemResourceImportPage1
protected WizardFileSystemResourceImportPage1(String name, IWorkbench aWorkbench, IStructuredSelection selection)(Code)
Creates an instance of this class



WizardFileSystemResourceImportPage1
public WizardFileSystemResourceImportPage1(IWorkbench aWorkbench, IStructuredSelection selection)(Code)
Creates an instance of this class
Parameters:
  aWorkbench - IWorkbench
Parameters:
  selection - IStructuredSelection




Method Detail
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)



createOptionsGroupButtons
protected void createOptionsGroupButtons(Group optionsGroup)(Code)
Create the import options specification widgets.



createRootDirectoryGroup
protected void createRootDirectoryGroup(Composite parent)(Code)
Create the group for creating the root directory



createRootElement
protected MinimizedFileSystemElement createRootElement(Object fileSystemObject, IImportStructureProvider provider)(Code)
Creates and returns a FileSystemElement if the specified file system object merits one. The criteria for this are: Also create the children.



createSourceGroup
protected void createSourceGroup(Composite parent)(Code)
Create the import source specification widgets



enableButtonGroup
protected void enableButtonGroup(boolean enable)(Code)
Enable or disable the button group.



ensureSourceIsValid
protected boolean ensureSourceIsValid()(Code)
Answer a boolean indicating whether the specified source currently exists and is valid



executeImportOperation
protected boolean executeImportOperation(ImportOperation op)(Code)
Execute the passed import operation. Answer a boolean indicating success.



finish
public boolean finish()(Code)
The Finish button was pressed. Try to do the required work now and answer a boolean indicating success. If false is returned then the wizard will not close. boolean



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



getFileSystemTree
protected MinimizedFileSystemElement getFileSystemTree()(Code)
Answer the root FileSystemElement that represents the contents of the currently-specified source. If this FileSystemElement is not currently defined then create and return it.



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



getSourceDirectory
protected File getSourceDirectory()(Code)
Returns a File object representing the currently-named source directory iff it exists as a valid directory, or null otherwise.



getSourceLabel
protected String getSourceLabel()(Code)
Answer the string to display as the label for the source specification field



handleEvent
public void handleEvent(Event event)(Code)
Handle all events and enablements for widgets in this dialog
Parameters:
  event - Event



handleSourceBrowseButtonPressed
protected void handleSourceBrowseButtonPressed()(Code)
Open an appropriate source browser so that the user can specify a source to import from



handleTypesEditButtonPressed
protected void handleTypesEditButtonPressed()(Code)
Open a registered type selection dialog and note the selections in the receivers types-to-export field., Added here so that inner classes can have access



importResources
protected boolean importResources(List fileSystemObjects)(Code)
Import the resources with extensions as specified by the user



initializeOperation
protected void initializeOperation(ImportOperation op)(Code)
Initializes the specified operation appropriately.



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



resetSelection
protected void resetSelection()(Code)
Repopulate the view based on the currently entered directory.



restoreWidgetValues
protected void restoreWidgetValues()(Code)
Use the dialog store to restore widget values to the values that they held last time this wizard was used to completion



saveWidgetValues
protected void saveWidgetValues()(Code)
Since Finish was pressed, write widget values to the dialog store so that they will persist into the next invocation of this wizard page



selectFiles
protected MinimizedFileSystemElement selectFiles(Object rootFileSystemObject, IImportStructureProvider structureProvider)(Code)
Invokes a file selection operation using the specified file system and structure provider. If the user specifies files to be imported then this selection is cached for later retrieval and is returned.



setAllSelections
protected void setAllSelections(boolean value)(Code)
Set all of the selections in the selection group to value. Implemented here to provide access for inner classes.
Parameters:
  value - boolean



setSourceName
protected void setSourceName(String path)(Code)
Sets the source name of the import to be the supplied path. Adds the name of the path to the list of items in the source combo and selects it.
Parameters:
  path - the path to be added



setVisible
public void setVisible(boolean visible)(Code)



setupSelectionsBasedOnSelectedTypes
protected void setupSelectionsBasedOnSelectedTypes()(Code)
Update the tree to only select those elements that match the selected types



sourceConflictsWithDestination
protected boolean sourceConflictsWithDestination(IPath sourcePath)(Code)
Returns whether the source location conflicts with the destination resource. This will occur if the source is already under the destination.
Parameters:
  sourcePath - the path to check true if there is a conflict, false if not



updateSelections
protected void updateSelections(Map map)(Code)
Update the selections with those in map . Implemented here to give inner class visibility
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. Provided here to give access to inner classes.



validateSourceGroup
protected boolean validateSourceGroup()(Code)
Answer a boolean indicating whether self's source specification widgets currently all contain valid values.



Fields inherited from org.eclipse.ui.dialogs.WizardResourceImportPage
protected java.util.List selectedTypes(Code)(Java Doc)
protected ResourceTreeAndListGroup selectionGroup(Code)(Java Doc)

Methods inherited from org.eclipse.ui.dialogs.WizardResourceImportPage
protected boolean allowNewContainerName()(Code)(Java Doc)
public void createControl(Composite parent)(Code)(Java Doc)
final protected void createDestinationGroup(Composite parent)(Code)(Java Doc)
protected void createFileSelectionGroup(Composite parent)(Code)(Java Doc)
abstract protected void createSourceGroup(Composite parent)(Code)(Java Doc)
protected boolean determinePageCompletion()(Code)(Java Doc)
protected IPath getContainerFullPath()(Code)(Java Doc)
protected String getErrorDialogTitle()(Code)(Java Doc)
abstract protected ITreeContentProvider getFileProvider()(Code)(Java Doc)
abstract protected ITreeContentProvider getFolderProvider()(Code)(Java Doc)
protected IPath getResourcePath()(Code)(Java Doc)
protected java.util.List getSelectedResources()(Code)(Java Doc)
protected void getSelectedResources(IElementFilter filter, IProgressMonitor monitor) throws InterruptedException(Code)(Java Doc)
final protected String getSourceConflictMessage()(Code)(Java Doc)
protected IContainer getSpecifiedContainer()(Code)(Java Doc)
protected java.util.List getTypesToImport()(Code)(Java Doc)
protected void handleContainerBrowseButtonPressed()(Code)(Java Doc)
public void handleEvent(Event event)(Code)(Java Doc)
protected void handleTypesEditButtonPressed()(Code)(Java Doc)
final protected void initialPopulateContainerField()(Code)(Java Doc)
protected void setAllSelections(boolean value)(Code)(Java Doc)
public void setContainerFieldValue(String value)(Code)(Java Doc)
protected void setupSelectionsBasedOnSelectedTypes()(Code)(Java Doc)
protected boolean sourceConflictsWithDestination(IPath sourcePath)(Code)(Java Doc)
protected void updateSelections(Map map)(Code)(Java Doc)
protected void updateWidgetEnablements()(Code)(Java Doc)
final protected boolean validateDestinationGroup()(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.