Java Doc for DeferredTreeContentManager.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » progress » 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 workbench » org.eclipse.ui.progress 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.progress.DeferredTreeContentManager

DeferredTreeContentManager
public class DeferredTreeContentManager (Code)
The DeferredContentManager is a class that helps an ITreeContentProvider get its deferred input. NOTE AbstractTreeViewer#isExpandable may need to be implemented in AbstractTreeViewer subclasses with deferred content that use filtering as a call to #getChildren may be required to determine the correct state of the expanding control. AbstractTreeViewers which use this class may wish to sacrifice accuracy of the expandable state indicator for the performance benefits of deferring content.
See Also:   IDeferredWorkbenchAdapter
since:
   3.0

Inner Class :class DeferredContentFamily

Field Summary
 ITreeContentProvidercontentProvider
    
 IWorkbenchSiteProgressServiceprogressService
    
 AbstractTreeViewertreeViewer
    

Constructor Summary
public  DeferredTreeContentManager(ITreeContentProvider provider, AbstractTreeViewer viewer, IWorkbenchPartSite site)
     Create a new instance of the receiver using the supplied content provider and viewer.
public  DeferredTreeContentManager(ITreeContentProvider provider, AbstractTreeViewer viewer)
     Create a new instance of the receiver using the supplied content provider and viewer.

Method Summary
protected  voidaddChildren(Object parent, Object[] children, IProgressMonitor monitor)
     Create a UIJob to add the children to the parent in the tree viewer.
public  voidcancel(Object parent)
     Cancel all jobs that are fetching content for the given parent or any of its children.
protected  IElementCollectorcreateElementCollector(Object parent, PendingUpdateAdapter placeholder)
     Create the element collector for the receiver.
Parameters:
  parent - The parent object being filled in,
Parameters:
  placeholder - The adapter that will be used to indicate that results arepending.
protected  PendingUpdateAdaptercreatePendingUpdateAdapter()
     Factory method for creating the pending update adapter representing the placeholder node.
protected  IDeferredWorkbenchAdaptergetAdapter(Object element)
     Return the IDeferredWorkbenchAdapter for element or the element if it is an instance of IDeferredWorkbenchAdapter.
public  Object[]getChildren(Object parent)
     Returns the child elements of the given element, or in the case of a deferred element, returns a placeholder.
protected  StringgetFetchJobName(Object parent, IDeferredWorkbenchAdapter adapter)
     Returns a name to use for the job that fetches children of the given parent. Subclasses may override.
public  booleanisDeferredAdapter(Object element)
     Return whether or not the element is or adapts to an IDeferredWorkbenchAdapter.
public  booleanmayHaveChildren(Object element)
     Provides an optimized lookup for determining if an element has children. This is required because elements that are populated lazilly can't answer getChildren just to determine the potential for children.
protected  voidrunClearPlaceholderJob(PendingUpdateAdapter placeholder)
     Run a job to clear the placeholder.
protected  voidstartFetchingDeferredChildren(Object parent, IDeferredWorkbenchAdapter adapter, PendingUpdateAdapter placeholder)
     Starts a job and creates a collector for fetching the children of this deferred adapter.

Field Detail
contentProvider
ITreeContentProvider contentProvider(Code)



progressService
IWorkbenchSiteProgressService progressService(Code)



treeViewer
AbstractTreeViewer treeViewer(Code)




Constructor Detail
DeferredTreeContentManager
public DeferredTreeContentManager(ITreeContentProvider provider, AbstractTreeViewer viewer, IWorkbenchPartSite site)(Code)
Create a new instance of the receiver using the supplied content provider and viewer. Run any jobs using the site.
Parameters:
  provider -
Parameters:
  viewer -
Parameters:
  site -



DeferredTreeContentManager
public DeferredTreeContentManager(ITreeContentProvider provider, AbstractTreeViewer viewer)(Code)
Create a new instance of the receiver using the supplied content provider and viewer.
Parameters:
  provider - The content provider that will be updated
Parameters:
  viewer - The tree viewer that the results are added to




Method Detail
addChildren
protected void addChildren(Object parent, Object[] children, IProgressMonitor monitor)(Code)
Create a UIJob to add the children to the parent in the tree viewer.
Parameters:
  parent -
Parameters:
  children -
Parameters:
  monitor -



cancel
public void cancel(Object parent)(Code)
Cancel all jobs that are fetching content for the given parent or any of its children.
Parameters:
  parent -



createElementCollector
protected IElementCollector createElementCollector(Object parent, PendingUpdateAdapter placeholder)(Code)
Create the element collector for the receiver.
Parameters:
  parent - The parent object being filled in,
Parameters:
  placeholder - The adapter that will be used to indicate that results arepending. IElementCollector



createPendingUpdateAdapter
protected PendingUpdateAdapter createPendingUpdateAdapter()(Code)
Factory method for creating the pending update adapter representing the placeholder node. Subclasses may override. a pending update adapter
since:
   3.2



getAdapter
protected IDeferredWorkbenchAdapter getAdapter(Object element)(Code)
Return the IDeferredWorkbenchAdapter for element or the element if it is an instance of IDeferredWorkbenchAdapter. If it does not exist return null.
Parameters:
  element - IDeferredWorkbenchAdapter or null



getChildren
public Object[] getChildren(Object parent)(Code)
Returns the child elements of the given element, or in the case of a deferred element, returns a placeholder. If a deferred element is used, a job is created to fetch the children in the background.
Parameters:
  parent - The parent object. Object[] or null if parent is not an instance ofIDeferredWorkbenchAdapter.



getFetchJobName
protected String getFetchJobName(Object parent, IDeferredWorkbenchAdapter adapter)(Code)
Returns a name to use for the job that fetches children of the given parent. Subclasses may override. Default job name is parent's label.
Parameters:
  parent - parent that children are to be fetched for
Parameters:
  adapter - parent's deferred adapter job name



isDeferredAdapter
public boolean isDeferredAdapter(Object element)(Code)
Return whether or not the element is or adapts to an IDeferredWorkbenchAdapter.
Parameters:
  element - boolean true if the element is anIDeferredWorkbenchAdapter



mayHaveChildren
public boolean mayHaveChildren(Object element)(Code)
Provides an optimized lookup for determining if an element has children. This is required because elements that are populated lazilly can't answer getChildren just to determine the potential for children. Throw an AssertionFailedException if element is null.
Parameters:
  element - The Object being tested. This should not benull. boolean true if there are potentially children.
throws:
  RuntimeException - if the element is null.



runClearPlaceholderJob
protected void runClearPlaceholderJob(PendingUpdateAdapter placeholder)(Code)
Run a job to clear the placeholder. This is used when the update for the tree is complete so that the user is aware that no more updates are pending.
Parameters:
  placeholder -



startFetchingDeferredChildren
protected void startFetchingDeferredChildren(Object parent, IDeferredWorkbenchAdapter adapter, PendingUpdateAdapter placeholder)(Code)
Starts a job and creates a collector for fetching the children of this deferred adapter. If children are waiting to be retrieved for this parent already, that job is cancelled and another is started.
Parameters:
  parent - The parent object being filled in,
Parameters:
  adapter - The adapter being used to fetch the children.
Parameters:
  placeholder - The adapter that will be used to indicate that results arepending.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.