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


java.lang.Object
   org.eclipse.ui.statushandlers.StatusManager

StatusManager
public class StatusManager (Code)

StatusManager is the entry point for all statuses to be reported in the user interface.

Handlers shoudn't be used directly but through the StatusManager singleton which keeps the status handling policy and chooses handlers. StatusManager.getManager().handle(IStatus) and handle(IStatus status, int style) are the methods are the primary access points to the StatusManager.

Acceptable styles (can be combined with logical OR)

  • NONE - a style indicating that the status should not be acted on. This is used by objects such as log listeners that do not want to report a status twice
  • LOG - a style indicating that the status should be logged only
  • SHOW - a style indicating that handlers should show a problem to an user without blocking the calling method while awaiting user response. This is generally done using a non modal Dialog
  • BLOCK - a style indicating that the handling should block the calling method until the user has responded. This is generally done using a modal window such as a Dialog

Handlers are intended to be accessed via the status manager. The StatusManager chooses which handler should be used for a particular error. There are two ways for adding handlers to the handling flow. First using extension point org.eclipse.ui.statusHandlers, second by the workbench advisor and its method WorkbenchAdvisor.getWorkbenchErrorHandler . If a handler is associated with a product, it is used instead of this defined in advisor.


since:
   3.3
See Also:   AbstractStatusHandler


Field Summary
final public static  intBLOCK
     A style indicating that the handling should block the calling method until the user has responded.
final public static  intLOG
     A style indicating that the status should be logged only.
final public static  intNONE
     A style indicating that the status should not be acted on.
final public static  intSHOW
     A style indicating that handlers should show a problem to an user without blocking the calling method while awaiting user response.


Method Summary
public  voidaddLoggedStatus(IStatus status)
     This method informs the StatusManager that this IStatus is being handled by the handler and to ignore it when it shows up in our ILogListener.
public static  StatusManagergetManager()
     Returns StatusManager singleton instance.
public  voidhandle(StatusAdapter statusAdapter, int style)
     Handles the given status adapter due to the style.
public  voidhandle(StatusAdapter statusAdapter)
     Handles the given status adapter.
public  voidhandle(IStatus status, int style)
     Handles the given status due to the style.
public  voidhandle(IStatus status)
     Handles the given status.

Field Detail
BLOCK
final public static int BLOCK(Code)
A style indicating that the handling should block the calling method until the user has responded. This is generally done using a modal window such as a Dialog .



LOG
final public static int LOG(Code)
A style indicating that the status should be logged only.



NONE
final public static int NONE(Code)
A style indicating that the status should not be acted on. This is used by objects such as log listeners that do not want to report a status twice.



SHOW
final public static int SHOW(Code)
A style indicating that handlers should show a problem to an user without blocking the calling method while awaiting user response. This is generally done using a non modal Dialog .





Method Detail
addLoggedStatus
public void addLoggedStatus(IStatus status)(Code)
This method informs the StatusManager that this IStatus is being handled by the handler and to ignore it when it shows up in our ILogListener.
Parameters:
  status - already handled and logged status



getManager
public static StatusManager getManager()(Code)
Returns StatusManager singleton instance. the manager instance



handle
public void handle(StatusAdapter statusAdapter, int style)(Code)
Handles the given status adapter due to the style. Because the facility depends on Workbench, this method will log the status, if Workbench isn't initialized and the style isn't NONE. If Workbench isn't initialized and the style is NONE, the manager will do nothing.
Parameters:
  statusAdapter - the status adapter. Both the status adapter and the wrappedstatus may not be null.
Parameters:
  style - the style.Value can be combined with logical OR. One ofStatusManager.NONE, StatusManager.LOG, StatusManager.SHOW and StatusManager.BLOCK.



handle
public void handle(StatusAdapter statusAdapter)(Code)
Handles the given status adapter. The log style is used when this method is called.
Parameters:
  statusAdapter - the status adapter. Both the status adapter and the wrappedstatus may not be null.



handle
public void handle(IStatus status, int style)(Code)
Handles the given status due to the style. Because the facility depends on Workbench, this method will log the status, if Workbench isn't initialized and the style isn't NONE. If Workbench isn't initialized and the style is NONE, the manager will do nothing.
Parameters:
  status - the status to handle. May not be null.
Parameters:
  style - the style. Acceptable values are defined inStatusManager and can be combined with logical OR.



handle
public void handle(IStatus status)(Code)
Handles the given status. The log style is used when this method is called.
Parameters:
  status - the status to handle. May not be null.



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.