Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 88456 Details for
Bug 215734
[Progress] Need way to listen to when DeferredTreeContentManager is finished
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Suggested API
215734patch (text/plain), 1.74 KB, created by
Tod Creasey
on 2008-01-31 15:43:07 EST
(
hide
)
Description:
Suggested API
Filename:
MIME Type:
Creator:
Tod Creasey
Created:
2008-01-31 15:43:07 EST
Size:
1.74 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.workbench >Index: Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java,v >retrieving revision 1.56 >diff -u -r1.56 DeferredTreeContentManager.java >--- Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java 9 Jan 2008 15:56:02 -0000 1.56 >+++ Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java 31 Jan 2008 20:41:53 -0000 >@@ -15,6 +15,7 @@ > import org.eclipse.core.runtime.IStatus; > import org.eclipse.core.runtime.Status; > import org.eclipse.core.runtime.jobs.IJobChangeEvent; >+import org.eclipse.core.runtime.jobs.IJobChangeListener; > import org.eclipse.core.runtime.jobs.Job; > import org.eclipse.core.runtime.jobs.JobChangeAdapter; > import org.eclipse.jface.viewers.AbstractTreeViewer; >@@ -49,6 +50,8 @@ > > IWorkbenchSiteProgressService progressService; > >+ private IJobChangeListener updateCompleteListener; >+ > /** > * The DeferredContentFamily is a class used to keep track of a > * manager-object pair so that only jobs scheduled by the receiver are >@@ -400,6 +403,9 @@ > } > }; > clearJob.setSystem(true); >+ >+ if(updateCompleteListener != null) >+ clearJob.addJobChangeListener(updateCompleteListener); > clearJob.schedule(); > } > >@@ -460,4 +466,13 @@ > } > }; > } >+ >+ /** >+ * Add a listener to the job that updates the content after all >+ * has been loaded by clearing the Pending entry etc. >+ * @param listener >+ */ >+ public void addUpdateCompleteListener(IJobChangeListener listener){ >+ updateCompleteListener = listener; >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 215734
:
88373
| 88456