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


java.lang.Object
   org.eclipse.ui.internal.progress.ProgressManagerUtil

ProgressManagerUtil
public class ProgressManagerUtil (Code)
The ProgressUtil is a class that contains static utility methods used for the progress API.


Field Summary
final static  Object[]EMPTY_OBJECT_ARRAY
    
final static  QualifiedNameINFRASTRUCTURE_PROPERTY
    
final static  QualifiedNameKEEPONE_PROPERTY
    
final static  QualifiedNameKEEP_PROPERTY
    
public static  longSHORT_OPERATION_TIME
     A constant used by the progress support to determine if an operation is too short to show progress.


Method Summary
public static  voidanimateDown(Rectangle startPosition)
     Animate the closing of a window given the start position down to the progress region.
Parameters:
  startPosition - Rectangle.
public static  voidanimateUp(Rectangle endPosition)
     Animate the opening of a window given the start position down to the progress region.
Parameters:
  endPosition - Rectangle.
static  IStatusexceptionStatus(Throwable exception)
     Return a status for the exception.
public static  ShellgetDefaultParent()
     Utility method to get the best parenting possible for a dialog.
public static  URLgetIconsRoot()
     Get the icons root for the progress support.
public static  ShellgetModalShellExcluding(Shell shell)
     Return the modal shell that is currently open.
public static  ShellgetNonModalShell()
     Get the active non modal shell.
public static  URLgetProgressSpinnerLocation()
     Return the location of the progress spinner.
static  ViewerComparatorgetProgressViewerComparator()
     Return a viewer comparator for looking at the jobs.
static  IShellProvidergetShellProvider()
     Get the shell provider to use in the progress support dialogs.
static  voidlogException(Throwable exception)
     Log the exception for debugging.
static  voidopenProgressView(WorkbenchWindow window)
     Open the progress view in the supplied window.
public static  booleanrescheduleIfModalShellOpen(Job openJob)
     If there are any modal shells open reschedule openJob to wait until they are closed.
public static  booleansafeToOpen(ProgressMonitorJobsDialog dialog, Shell excludedShell)
     Return whether or not it is safe to open this dialog.
static  StringshortenText(String textValue, Control control)
     Shorten the given text t so that its length doesn't exceed the given width.

Field Detail
EMPTY_OBJECT_ARRAY
final static Object[] EMPTY_OBJECT_ARRAY(Code)



INFRASTRUCTURE_PROPERTY
final static QualifiedName INFRASTRUCTURE_PROPERTY(Code)



KEEPONE_PROPERTY
final static QualifiedName KEEPONE_PROPERTY(Code)



KEEP_PROPERTY
final static QualifiedName KEEP_PROPERTY(Code)



SHORT_OPERATION_TIME
public static long SHORT_OPERATION_TIME(Code)
A constant used by the progress support to determine if an operation is too short to show progress.





Method Detail
animateDown
public static void animateDown(Rectangle startPosition)(Code)
Animate the closing of a window given the start position down to the progress region.
Parameters:
  startPosition - Rectangle. The position to start drawing from.



animateUp
public static void animateUp(Rectangle endPosition)(Code)
Animate the opening of a window given the start position down to the progress region.
Parameters:
  endPosition - Rectangle. The position to end drawing at.



exceptionStatus
static IStatus exceptionStatus(Throwable exception)(Code)
Return a status for the exception.
Parameters:
  exception - IStatus



getDefaultParent
public static Shell getDefaultParent()(Code)
Utility method to get the best parenting possible for a dialog. If there is a modal shell create it so as to avoid two modal dialogs. If not then return the shell of the active workbench window. If neither can be found return null. Shell or null



getIconsRoot
public static URL getIconsRoot()(Code)
Get the icons root for the progress support. URL



getModalShellExcluding
public static Shell getModalShellExcluding(Shell shell)(Code)
Return the modal shell that is currently open. If there isn't one then return null.
Parameters:
  shell - A shell to exclude from the search. May be null. Shell or null.



getNonModalShell
public static Shell getNonModalShell()(Code)
Get the active non modal shell. If there isn't one return null. Shell



getProgressSpinnerLocation
public static URL getProgressSpinnerLocation()(Code)
Return the location of the progress spinner. URL or null if it cannot be found



getProgressViewerComparator
static ViewerComparator getProgressViewerComparator()(Code)
Return a viewer comparator for looking at the jobs. ViewerComparator



getShellProvider
static IShellProvider getShellProvider()(Code)
Get the shell provider to use in the progress support dialogs. This provider will try to always parent off of an existing modal shell. If there isn't one it will use the current workbench window. IShellProvider



logException
static void logException(Throwable exception)(Code)
Log the exception for debugging.
Parameters:
  exception -



openProgressView
static void openProgressView(WorkbenchWindow window)(Code)
Open the progress view in the supplied window.
Parameters:
  window -



rescheduleIfModalShellOpen
public static boolean rescheduleIfModalShellOpen(Job openJob)(Code)
If there are any modal shells open reschedule openJob to wait until they are closed. Return true if it rescheduled, false if there is nothing blocking it.
Parameters:
  openJob - boolean. true if the job was rescheduled due to modal dialogs.



safeToOpen
public static boolean safeToOpen(ProgressMonitorJobsDialog dialog, Shell excludedShell)(Code)
Return whether or not it is safe to open this dialog. If so then return true. If not then set it to open itself when it has had ProgressManager#longOperationTime worth of ticks.
Parameters:
  dialog - ProgressMonitorJobsDialog that will be opening
Parameters:
  excludedShell - The shell boolean. true if it can open. Otherwise returnfalse and set the dialog to tick.



shortenText
static String shortenText(String textValue, Control control)(Code)
Shorten the given text t so that its length doesn't exceed the given width. The default implementation replaces characters in the center of the original string with an ellipsis ("..."). Override if you need a different strategy.
Parameters:
  textValue -
Parameters:
  control - String



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.