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

All known Subclasses:   org.eclipse.ui.statushandlers.WorkbenchErrorHandler,  org.eclipse.ui.internal.WorkbenchErrorHandlerProxy,
AbstractStatusHandler
abstract public class AbstractStatusHandler (Code)

Status handlers are part of the status handling facility. The facility is responsible for handling errors and other important issues in Eclipse based applications. The handlers are responsible for presenting this errors by logging or showing error dialogs.

All status handlers extends org.eclipse.ui.statushandlers.AbstractStatusHandler. Each handler implements handle(StatusAdapter status, int style). This method handles statuses due to handling style. The style indicates how status handler should handle a status.

For acceptable styles check StatusManager .

Handlers shoudn't be used directly but through the StatusManager . It chooses which handler should be used for handling. 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.

A status handler has the id and a set of parameters. The handler can use them during handling. If the handler is added as an extension, both are set during initialization of the handler using elements and attributes of statusHandler element.


since:
   3.3




Method Summary
public  StringgetId()
     Returns the id of the handler.
public  ObjectgetParam(Object key)
     Returns the value of the handler's parameter identified by the given key, or null if this handler has no such parameter.
public  MapgetParams()
     Returns all parameters of the handler.
abstract public  voidhandle(StatusAdapter statusAdapter, int style)
     Handles StatusAdapter objects based on the set style.
public  voidsetId(String id)
     Sets the id for the handler.
public  voidsetParams(Map params)
     Sets the parameters for the handler.



Method Detail
getId
public String getId()(Code)
Returns the id of the handler. the id



getParam
public Object getParam(Object key)(Code)
Returns the value of the handler's parameter identified by the given key, or null if this handler has no such parameter.
Parameters:
  key - the name of the property the value of the parameter, or null if thishandler has no such parameter



getParams
public Map getParams()(Code)
Returns all parameters of the handler. the parameters



handle
abstract public void handle(StatusAdapter statusAdapter, int style)(Code)
Handles StatusAdapter objects based on the set style.
Parameters:
  statusAdapter - the status adapter. May not be null.
Parameters:
  style - style constant. Acceptable values are defined inStatusManager and can be combined with logical OR.
See Also:   StatusManager.BLOCK
See Also:   StatusManager.NONE
See Also:   StatusManager.SHOW
See Also:   StatusManager.LOG



setId
public void setId(String id)(Code)
Sets the id for the handler. If the handler is added as an extension, the id is set during initialization of the handler using id attribute of statusHandler element.
Parameters:
  id - the id to set



setParams
public void setParams(Map params)(Code)
Sets the parameters for the handler. If the handler is added via the org.eclipse.ui.statushandlers extension, the parameters are set during initialization of the handler using parameter elements from statusHandler element.
Parameters:
  params - the parameters to set



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.