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

ResourceListSelectionDialog
public class ResourceListSelectionDialog extends SelectionDialog (Code)
Shows a list of resources to the user with a text entry field for a string pattern used to filter the list of resources.


since:
   2.1


Inner Class :static class ResourceDescriptor implements Comparable
Inner Class :class UpdateFilterThread extends Thread
Inner Class :class UpdateGatherThread extends Thread

Field Summary
 IContainercontainer
    
 ResourceDescriptor[]descriptors
    
 intdescriptorsSize
    
 TablefolderNames
    
 booleangatherResourcesDynamically
    
 WorkbenchLabelProviderlabelProvider
    
 booleanokEnabled
    
 Textpattern
    
 StringpatternString
    
 TableresourceNames
    
 StringMatcherstringMatcher
    
 inttypeMask
    
 UpdateFilterThreadupdateFilterThread
    
 UpdateGatherThreadupdateGatherThread
    

Constructor Summary
public  ResourceListSelectionDialog(Shell parentShell, IResource[] resources)
     Creates a new instance of the class.
public  ResourceListSelectionDialog(Shell parentShell, IContainer container, int typeMask)
     Creates a new instance of the class.

Method Summary
protected  StringadjustPattern()
     Adjust the pattern string for matching.
protected  voidcancelPressed()
    
public  booleanclose()
    
public  voidcreate()
    
protected  ControlcreateDialogArea(Composite parent)
     Creates the contents of this dialog, initializes the listener and the update thread.
public  booleangetAllowUserToToggleDerived()
     Returns whether to include a "Show derived resources" checkbox in the dialog.
protected  IDialogSettingsgetDialogBoundsSettings()
    
protected  booleangetShowDerived()
     Returns whether derived resources should be shown in the list.
protected  voidokPressed()
     The user has selected a resource and the dialog is closing.
protected  voidrefresh(boolean force)
     Refreshes the filtered list of resources.
protected  booleanselect(IResource resource)
     Use this method to further filter resources.
public  voidsetAllowUserToToggleDerived(boolean allow)
     Sets whether to include a "Show derived resources" checkbox in the dialog.
protected  voidsetShowDerived(boolean show)
     Sets whether derived resources should be shown in the list.
protected  voidupdateOKState(boolean state)
     Update the enabled state of the OK button.

Field Detail
container
IContainer container(Code)



descriptors
ResourceDescriptor[] descriptors(Code)



descriptorsSize
int descriptorsSize(Code)



folderNames
Table folderNames(Code)



gatherResourcesDynamically
boolean gatherResourcesDynamically(Code)



labelProvider
WorkbenchLabelProvider labelProvider(Code)



okEnabled
boolean okEnabled(Code)



pattern
Text pattern(Code)



patternString
String patternString(Code)



resourceNames
Table resourceNames(Code)



stringMatcher
StringMatcher stringMatcher(Code)



typeMask
int typeMask(Code)



updateFilterThread
UpdateFilterThread updateFilterThread(Code)



updateGatherThread
UpdateGatherThread updateGatherThread(Code)




Constructor Detail
ResourceListSelectionDialog
public ResourceListSelectionDialog(Shell parentShell, IResource[] resources)(Code)
Creates a new instance of the class.
Parameters:
  parentShell - shell to parent the dialog on
Parameters:
  resources - resources to display in the dialog



ResourceListSelectionDialog
public ResourceListSelectionDialog(Shell parentShell, IContainer container, int typeMask)(Code)
Creates a new instance of the class. When this constructor is used to create the dialog, resources will be gathered dynamically as the pattern string is specified. Only resources of the given types that match the pattern string will be listed. To further filter the matching resources,
See Also:   ResourceListSelectionDialog.select(IResource)
Parameters:
  parentShell - shell to parent the dialog on
Parameters:
  container - container to get resources from
Parameters:
  typeMask - mask containing IResource types to be considered




Method Detail
adjustPattern
protected String adjustPattern()(Code)
Adjust the pattern string for matching.



cancelPressed
protected void cancelPressed()(Code)

See Also:   org.eclipse.jface.dialogs.Dialog.cancelPressed



close
public boolean close()(Code)

See Also:   org.eclipse.jface.window.Window.close



create
public void create()(Code)

See Also:   org.eclipse.jface.window.Window.create



createDialogArea
protected Control createDialogArea(Composite parent)(Code)
Creates the contents of this dialog, initializes the listener and the update thread.
Parameters:
  parent - parent to create the dialog widgets in



getAllowUserToToggleDerived
public boolean getAllowUserToToggleDerived()(Code)
Returns whether to include a "Show derived resources" checkbox in the dialog. The default is false. true to include the checkbox, false to omit
since:
   3.1



getDialogBoundsSettings
protected IDialogSettings getDialogBoundsSettings()(Code)



getShowDerived
protected boolean getShowDerived()(Code)
Returns whether derived resources should be shown in the list. The default is false. true to show derived resources, false to hide them
since:
   3.1



okPressed
protected void okPressed()(Code)
The user has selected a resource and the dialog is closing. Set the selected resource as the dialog result.



refresh
protected void refresh(boolean force)(Code)
Refreshes the filtered list of resources. Called when the text in the pattern text entry has changed.
Parameters:
  force - if true a refresh is forced, if false a refresh onlyoccurs if the pattern has changed
since:
   3.1



select
protected boolean select(IResource resource)(Code)
Use this method to further filter resources. As resources are gathered, if a resource matches the current pattern string, this method will be called. If this method answers false, the resource will not be included in the list of matches and the resource's children will NOT be considered for matching.



setAllowUserToToggleDerived
public void setAllowUserToToggleDerived(boolean allow)(Code)
Sets whether to include a "Show derived resources" checkbox in the dialog.
Parameters:
  allow - true to include the checkbox, false to omit
since:
   3.1



setShowDerived
protected void setShowDerived(boolean show)(Code)
Sets whether derived resources should be shown in the list.
Parameters:
  show - true to show derived resources, false to hide them
since:
   3.1



updateOKState
protected void updateOKState(boolean state)(Code)
Update the enabled state of the OK button. To be called when the resource list is updated.
Parameters:
  state - the new enabled state of the button



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.