Java Doc for WizardArchiveFileResourceImportPage1.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.internal.wizards.datatransfer.WizardFileSystemResourceImportPage1
   org.eclipse.ui.internal.wizards.datatransfer.WizardArchiveFileResourceImportPage1

WizardArchiveFileResourceImportPage1
public class WizardArchiveFileResourceImportPage1 extends WizardFileSystemResourceImportPage1 implements Listener(Code)
Page 1 of the base resource import-from-archive Wizard. Note that importing from .jar is identical to importing from .zip, so all references to .zip in this class are equally applicable to .jar references.
since:
   3.1


Field Summary
 TarLeveledStructureProvidertarCurrentProvider
    
 ZipLeveledStructureProviderzipCurrentProvider
    

Constructor Summary
public  WizardArchiveFileResourceImportPage1(IWorkbench aWorkbench, IStructuredSelection selection)
    

Method Summary
public  booleancancel()
     Called when the user presses the Cancel button.
protected  voidclearProviderCache()
     Clears the cached structure provider after first finalizing it properly.
protected  booleancloseZipFile(ZipFile file)
     Attempts to close the passed zip file, and answers a boolean indicating success.
public  voidcreateControl(Composite parent)
     (non-Javadoc) Method declared on IDialogPage.
protected  voidcreateOptionsGroup(Composite parent)
     Create the options specification widgets.
protected  booleanensureSourceIsValid()
    
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 .zip file.
protected  ITreeContentProvidergetFolderProvider()
     Returns a content provider for FileSystemElements that returns only folders as children.
protected  StringgetSourceLabel()
    
protected  TarFilegetSpecifiedTarSourceFile()
     Answer a handle to the zip file currently specified as being the source.
protected  ZipFilegetSpecifiedZipSourceFile()
     Answer a handle to the zip file currently specified as being the source.
protected  voidhandleSourceBrowseButtonPressed()
    
protected  booleanimportResources(List fileSystemObjects)
    
protected  voidinitializeOperation(ImportOperation op)
     Initializes the specified operation appropriately.
protected  StringqueryZipFileToImport()
     Opens a file selection dialog and returns a string representing the selected file, or null if the dialog was canceled.
protected  voidresetSelection()
     Repopulate the view based on the currently entered directory.
protected  voidrestoreWidgetValues()
    
protected  voidsaveWidgetValues()
     Since Finish was pressed, write widget values to the dialog store so that they will persist into the next invocation of this wizard page.
protected  booleanvalidateSourceGroup()
     Answer a boolean indicating whether self's source specification widgets currently all contain valid values.

Field Detail
tarCurrentProvider
TarLeveledStructureProvider tarCurrentProvider(Code)



zipCurrentProvider
ZipLeveledStructureProvider zipCurrentProvider(Code)




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




Method Detail
cancel
public boolean cancel()(Code)
Called when the user presses the Cancel button. Return a boolean indicating permission to close the wizard. boolean



clearProviderCache
protected void clearProviderCache()(Code)
Clears the cached structure provider after first finalizing it properly.



closeZipFile
protected boolean closeZipFile(ZipFile file)(Code)
Attempts to close the passed zip file, and answers a boolean indicating success.



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



createOptionsGroup
protected void createOptionsGroup(Composite parent)(Code)
Create the options specification widgets. There is only one in this case so create no group.
Parameters:
  parent - org.eclipse.swt.widgets.Composite



ensureSourceIsValid
protected boolean ensureSourceIsValid()(Code)
Answer a boolean indicating whether the specified source currently exists and is valid (ie.- proper format)



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 .zip file. 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.



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



getSpecifiedTarSourceFile
protected TarFile getSpecifiedTarSourceFile()(Code)
Answer a handle to the zip file currently specified as being the source. Return null if this file does not exist or is not of valid format.



getSpecifiedZipSourceFile
protected ZipFile getSpecifiedZipSourceFile()(Code)
Answer a handle to the zip file currently specified as being the source. Return null if this file does not exist or is not of valid format.



handleSourceBrowseButtonPressed
protected void handleSourceBrowseButtonPressed()(Code)
Open a FileDialog so that the user can specify the source file to import from



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.



queryZipFileToImport
protected String queryZipFileToImport()(Code)
Opens a file selection dialog and returns a string representing the selected file, or null if the dialog was canceled.



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. Note that this method is identical to the one that appears in the superclass. This is necessary because proper overriding of instance variables is not occurring.



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.internal.wizards.datatransfer.WizardFileSystemResourceImportPage1
final protected static String SOURCE_EMPTY_MESSAGE(Code)(Java Doc)
protected Button createContainerStructureButton(Code)(Java Doc)
protected Button createOnlySelectedButton(Code)(Java Doc)
protected Button deselectAllButton(Code)(Java Doc)
protected Button overwriteExistingResourcesCheckbox(Code)(Java Doc)
protected Button selectAllButton(Code)(Java Doc)
protected Button selectTypesButton(Code)(Java Doc)
protected Button sourceBrowseButton(Code)(Java Doc)
protected Combo sourceNameField(Code)(Java Doc)

Methods inherited from org.eclipse.ui.internal.wizards.datatransfer.WizardFileSystemResourceImportPage1
protected Button createButton(Composite parent, int id, String label, boolean defaultButton)(Code)(Java Doc)
final protected void createButtonsGroup(Composite parent)(Code)(Java Doc)
public void createControl(Composite parent)(Code)(Java Doc)
protected void createOptionsGroupButtons(Group optionsGroup)(Code)(Java Doc)
protected void createRootDirectoryGroup(Composite parent)(Code)(Java Doc)
protected MinimizedFileSystemElement createRootElement(Object fileSystemObject, IImportStructureProvider provider)(Code)(Java Doc)
protected void createSourceGroup(Composite parent)(Code)(Java Doc)
protected void enableButtonGroup(boolean enable)(Code)(Java Doc)
protected boolean ensureSourceIsValid()(Code)(Java Doc)
protected boolean executeImportOperation(ImportOperation op)(Code)(Java Doc)
public boolean finish()(Code)(Java Doc)
protected ITreeContentProvider getFileProvider()(Code)(Java Doc)
protected MinimizedFileSystemElement getFileSystemTree()(Code)(Java Doc)
protected ITreeContentProvider getFolderProvider()(Code)(Java Doc)
protected File getSourceDirectory()(Code)(Java Doc)
protected String getSourceLabel()(Code)(Java Doc)
public void handleEvent(Event event)(Code)(Java Doc)
protected void handleSourceBrowseButtonPressed()(Code)(Java Doc)
protected void handleTypesEditButtonPressed()(Code)(Java Doc)
protected boolean importResources(List fileSystemObjects)(Code)(Java Doc)
protected void initializeOperation(ImportOperation op)(Code)(Java Doc)
protected boolean isExportableExtension(String extension)(Code)(Java Doc)
protected void resetSelection()(Code)(Java Doc)
protected void restoreWidgetValues()(Code)(Java Doc)
protected void saveWidgetValues()(Code)(Java Doc)
protected MinimizedFileSystemElement selectFiles(Object rootFileSystemObject, IImportStructureProvider structureProvider)(Code)(Java Doc)
protected void setAllSelections(boolean value)(Code)(Java Doc)
protected void setSourceName(String path)(Code)(Java Doc)
public void setVisible(boolean visible)(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)
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.