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


org.eclipse.ui.internal.progress.ProgressManager

ProgressManager
public class ProgressManager extends ProgressProvider implements IProgressService(Code)
JobProgressManager provides the progress monitor to the job manager and informs any ProgressContentProviders of changes.

Inner Class :class JobMonitor implements IProgressMonitorWithBlocking

Field Summary
final public static  StringBLOCKED_JOB_KEY
     The key for the locked job icon.
final static  StringERROR_JOB_KEY
    
final static  StringPROGRESS_FOLDER
    
final static  StringPROGRESS_VIEW_NAME
    
final public static  QualifiedNamePROPERTY_IN_DIALOG
     A property to determine if the job was run in the dialog.
final public static  StringSLEEPING_JOB_KEY
     The key for the sleeping job icon.
final public static  StringWAITING_JOB_KEY
     The key for the waiting job icon.
 IJobChangeListenerchangeListener
    
final  ObjectfamilyKey
    
 FinishedJobsfinishedJobs
    
final  ObjectlistenersKey
    
final  ObjectmonitorKey
    
final  MaprunnableMonitors
    

Constructor Summary
 ProgressManager()
     Create a new instance of the receiver.

Method Summary
public  voidaddJobInfo(JobInfo info)
     Refresh the content providers as a result of an addition of info.
 voidaddListener(IJobProgressManagerListener listener)
     Add an IJobProgressManagerListener to listen to the changes.
 voidaddListenerToFamily(Object family, IJobBusyListener listener)
     Add the listener to the family.
public  voidbusyCursorWhile(IRunnableWithProgress runnable)
    
 booleancheckForStaleness(Job job)
     Check the if the job should be removed from the list as it may be stale.
public  IProgressMonitorcreateMonitor(Job job)
    
public  IProgressMonitorcreateMonitor(Job job, IProgressMonitor group, int ticks)
    
public  IProgressMonitorcreateProgressGroup()
    
public  IProgressMonitorgetDefaultMonitor()
    
public  ImagegetIconFor(Job job)
    
 ImagegetImage(ImageData source)
     Returns the image descriptor with the given relative path.
 ImageData[]getImageData(URL fileSystemPath, ImageLoader loader)
     Returns the image descriptor with the given relative path.
public static  ProgressManagergetInstance()
     Get the progress manager currently in use.
 JobInfogetJobInfo(Job job)
     Get the JobInfo for the job.
public  JobInfo[]getJobInfos(boolean debug)
     Return the current job infos filtered on debug mode.
public  intgetLongOperationTime()
    
public  JobTreeElement[]getRootElements(boolean debug)
     Return the current root elements filtered on the debug mode.
public  booleanhasJobInfos()
     Return whether or not there are any jobs being displayed.
 JobInfointernalGetJobInfo(Job job)
     Return an existing job info for the given Job or null if there isn't one.
 booleanisNonDisplayableJob(Job job, boolean debug)
     Return whether or not this job is currently displayable.
Parameters:
  job -
Parameters:
  debug - If the listener is in debug mode.
public  JobMonitorprogressFor(Job job)
     Return a monitor for the job.
public  voidrefreshAll()
     Refresh all the IJobProgressManagerListener as a result of a change in the whole model.
public  voidrefreshGroup(GroupInfo info)
     Refresh the IJobProgressManagerListeners as a result of a change in info.
public  voidrefreshJobInfo(JobInfo info)
     Refresh the IJobProgressManagerListeners as a result of a change in info.
public  voidregisterIconForFamily(ImageDescriptor icon, Object family)
    
public  voidremoveGroup(GroupInfo group)
     Remove the group from the roots and inform the listeners.
public  voidremoveJobInfo(JobInfo info)
     Refresh the content providers as a result of a deletion of info.
 voidremoveListener(IJobProgressManagerListener listener)
     Remove the supplied IJobProgressManagerListener from the list of listeners.
 voidremoveListener(IJobBusyListener listener)
     Remove the listener from all families.
public  voidrun(boolean fork, boolean cancelable, IRunnableWithProgress runnable)
    
public  voidrunInUI(IRunnableContext context, IRunnableWithProgress runnable, ISchedulingRule rule)
    
public  voidsetShowSystemJobs(boolean showSystem)
     Set whether or not the ProgressViewUpdater should show system jobs.
 voidsetUpImages(URL iconsRoot)
     Set up any images the error management needs.
public  voidshowInDialog(Shell shell, Job job)
    
public static  voidshutdownProgressManager()
     Shutdown the singleton if there is one.

Field Detail
BLOCKED_JOB_KEY
final public static String BLOCKED_JOB_KEY(Code)
The key for the locked job icon.



ERROR_JOB_KEY
final static String ERROR_JOB_KEY(Code)



PROGRESS_FOLDER
final static String PROGRESS_FOLDER(Code)



PROGRESS_VIEW_NAME
final static String PROGRESS_VIEW_NAME(Code)



PROPERTY_IN_DIALOG
final public static QualifiedName PROPERTY_IN_DIALOG(Code)
A property to determine if the job was run in the dialog. Kept for backwards compatability.
See Also:   IProgressConstants.PROPERTY_IN_DIALOG



SLEEPING_JOB_KEY
final public static String SLEEPING_JOB_KEY(Code)
The key for the sleeping job icon.



WAITING_JOB_KEY
final public static String WAITING_JOB_KEY(Code)
The key for the waiting job icon.



changeListener
IJobChangeListener changeListener(Code)



familyKey
final Object familyKey(Code)



finishedJobs
FinishedJobs finishedJobs(Code)



listenersKey
final Object listenersKey(Code)



monitorKey
final Object monitorKey(Code)



runnableMonitors
final Map runnableMonitors(Code)




Constructor Detail
ProgressManager
ProgressManager()(Code)
Create a new instance of the receiver.




Method Detail
addJobInfo
public void addJobInfo(JobInfo info)(Code)
Refresh the content providers as a result of an addition of info.
Parameters:
  info -



addListener
void addListener(IJobProgressManagerListener listener)(Code)
Add an IJobProgressManagerListener to listen to the changes.
Parameters:
  listener -



addListenerToFamily
void addListenerToFamily(Object family, IJobBusyListener listener)(Code)
Add the listener to the family.
Parameters:
  family -
Parameters:
  listener -



busyCursorWhile
public void busyCursorWhile(IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException(Code)



checkForStaleness
boolean checkForStaleness(Job job)(Code)
Check the if the job should be removed from the list as it may be stale.
Parameters:
  job - boolean



createMonitor
public IProgressMonitor createMonitor(Job job)(Code)



createMonitor
public IProgressMonitor createMonitor(Job job, IProgressMonitor group, int ticks)(Code)



createProgressGroup
public IProgressMonitor createProgressGroup()(Code)



getDefaultMonitor
public IProgressMonitor getDefaultMonitor()(Code)



getIconFor
public Image getIconFor(Job job)(Code)



getImage
Image getImage(ImageData source)(Code)
Returns the image descriptor with the given relative path.
Parameters:
  source - Image



getImageData
ImageData[] getImageData(URL fileSystemPath, ImageLoader loader)(Code)
Returns the image descriptor with the given relative path.
Parameters:
  fileSystemPath - The URL for the file system to the image.
Parameters:
  loader - -the loader used to get this data ImageData[]



getInstance
public static ProgressManager getInstance()(Code)
Get the progress manager currently in use. JobProgressManager



getJobInfo
JobInfo getJobInfo(Job job)(Code)
Get the JobInfo for the job. If it does not exist create it.
Parameters:
  job - JobInfo



getJobInfos
public JobInfo[] getJobInfos(boolean debug)(Code)
Return the current job infos filtered on debug mode.
Parameters:
  debug - JobInfo[]



getLongOperationTime
public int getLongOperationTime()(Code)



getRootElements
public JobTreeElement[] getRootElements(boolean debug)(Code)
Return the current root elements filtered on the debug mode.
Parameters:
  debug - JobTreeElement[]



hasJobInfos
public boolean hasJobInfos()(Code)
Return whether or not there are any jobs being displayed. boolean



internalGetJobInfo
JobInfo internalGetJobInfo(Job job)(Code)
Return an existing job info for the given Job or null if there isn't one.
Parameters:
  job - JobInfo



isNonDisplayableJob
boolean isNonDisplayableJob(Job job, boolean debug)(Code)
Return whether or not this job is currently displayable.
Parameters:
  job -
Parameters:
  debug - If the listener is in debug mode. boolean true if the job is not displayed.



progressFor
public JobMonitor progressFor(Job job)(Code)
Return a monitor for the job. Check if we cached a monitor for this job previously for a long operation timeout check.
Parameters:
  job - IProgressMonitor



refreshAll
public void refreshAll()(Code)
Refresh all the IJobProgressManagerListener as a result of a change in the whole model.



refreshGroup
public void refreshGroup(GroupInfo info)(Code)
Refresh the IJobProgressManagerListeners as a result of a change in info.
Parameters:
  info -



refreshJobInfo
public void refreshJobInfo(JobInfo info)(Code)
Refresh the IJobProgressManagerListeners as a result of a change in info.
Parameters:
  info -



registerIconForFamily
public void registerIconForFamily(ImageDescriptor icon, Object family)(Code)



removeGroup
public void removeGroup(GroupInfo group)(Code)
Remove the group from the roots and inform the listeners.
Parameters:
  group - GroupInfo



removeJobInfo
public void removeJobInfo(JobInfo info)(Code)
Refresh the content providers as a result of a deletion of info.
Parameters:
  info - JobInfo



removeListener
void removeListener(IJobProgressManagerListener listener)(Code)
Remove the supplied IJobProgressManagerListener from the list of listeners.
Parameters:
  listener -



removeListener
void removeListener(IJobBusyListener listener)(Code)
Remove the listener from all families.
Parameters:
  listener -



run
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException(Code)



runInUI
public void runInUI(IRunnableContext context, IRunnableWithProgress runnable, ISchedulingRule rule) throws InvocationTargetException, InterruptedException(Code)



setShowSystemJobs
public void setShowSystemJobs(boolean showSystem)(Code)
Set whether or not the ProgressViewUpdater should show system jobs.
Parameters:
  showSystem -



setUpImages
void setUpImages(URL iconsRoot) throws MalformedURLException(Code)
Set up any images the error management needs.
Parameters:
  iconsRoot -
throws:
  MalformedURLException -



showInDialog
public void showInDialog(Shell shell, Job job)(Code)



shutdownProgressManager
public static void shutdownProgressManager()(Code)
Shutdown the singleton if there is one.



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