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


java.lang.Object
   org.eclipse.ui.PlatformUI

PlatformUI
final public class PlatformUI (Code)
The central class for access to the Eclipse Platform User Interface. This class cannot be instantiated; all functionality is provided by static methods. Features provided:
  • creation of the workbench.
  • access to the workbench.


See Also:   IWorkbench



Field Summary
final public static  StringPLUGIN_ID
     Identifies the workbench plug-in.
final public static  intRETURN_EMERGENCY_CLOSE
     Return code (value 3) indicating that the workbench was terminated with a call to IWorkbenchConfigurer#emergencyClose.
final public static  intRETURN_OK
     Return code (value 0) indicating that the workbench terminated normally.
final public static  intRETURN_RESTART
     Return code (value 1) indicating that the workbench was terminated with a call to IWorkbench.restart.
final public static  intRETURN_UNSTARTABLE
     Return code (value 2) indicating that the workbench failed to start.


Method Summary
public static  intcreateAndRunWorkbench(Display display, WorkbenchAdvisor advisor)
     Creates the workbench and associates it with the given display and workbench advisor, and runs the workbench UI.
public static  DisplaycreateDisplay()
     Creates the Display to be used by the workbench.
public static  IPreferenceStoregetPreferenceStore()
     Returns the preference store used for publicly settable workbench preferences.
public static  TestableObjectgetTestableObject()
     Returns the testable object facade, for use by the test harness.
public static  IWorkbenchgetWorkbench()
     Returns the workbench.
public static  booleanisWorkbenchRunning()
     Returns whether PlatformUI.createAndRunWorkbench createAndRunWorkbench has been called to create the workbench, and the workbench has yet to terminate.

Note that this method may return true while the workbench is still being initialized, so it may not be safe to call workbench API methods even if this method returns true.


Field Detail
PLUGIN_ID
final public static String PLUGIN_ID(Code)
Identifies the workbench plug-in.



RETURN_EMERGENCY_CLOSE
final public static int RETURN_EMERGENCY_CLOSE(Code)
Return code (value 3) indicating that the workbench was terminated with a call to IWorkbenchConfigurer#emergencyClose.
See Also:   PlatformUI.createAndRunWorkbench
since:
   3.0



RETURN_OK
final public static int RETURN_OK(Code)
Return code (value 0) indicating that the workbench terminated normally.
See Also:   PlatformUI.createAndRunWorkbench
since:
   3.0



RETURN_RESTART
final public static int RETURN_RESTART(Code)
Return code (value 1) indicating that the workbench was terminated with a call to IWorkbench.restart.
See Also:   PlatformUI.createAndRunWorkbench
See Also:   IWorkbench.restart
since:
   3.0



RETURN_UNSTARTABLE
final public static int RETURN_UNSTARTABLE(Code)
Return code (value 2) indicating that the workbench failed to start.
See Also:   PlatformUI.createAndRunWorkbench
See Also:   IWorkbench.restart
since:
   3.0





Method Detail
createAndRunWorkbench
public static int createAndRunWorkbench(Display display, WorkbenchAdvisor advisor)(Code)
Creates the workbench and associates it with the given display and workbench advisor, and runs the workbench UI. This entails processing and dispatching events until the workbench is closed or restarted.

This method is intended to be called by the main class (the "application"). Fails if the workbench UI has already been created.

Use PlatformUI.createDisplay createDisplay to create the display to pass in.

Note that this method is intended to be called by the application (org.eclipse.core.boot.IPlatformRunnable). It must be called exactly once, and early on before anyone else asks getWorkbench() for the workbench.


Parameters:
  display - the display to be used for all UI interactions with the workbench
Parameters:
  advisor - the application-specific advisor that configures andspecializes the workbench return code PlatformUI.RETURN_OK RETURN_OK for normal exit; PlatformUI.RETURN_RESTART RETURN_RESTART if the workbench was terminatedwith a call to IWorkbench.restart IWorkbench.restart; PlatformUI.RETURN_UNSTARTABLE RETURN_UNSTARTABLE if the workbench couldnot be started; PlatformUI.RETURN_EMERGENCY_CLOSE RETURN_EMERGENCY_CLOSE if the UI quitbecause of an emergency; other values reserved for future use
since:
   3.0



createDisplay
public static Display createDisplay()(Code)
Creates the Display to be used by the workbench. It is the caller's responsibility to dispose the resulting Display, not the workbench's. the display
since:
   3.0



getPreferenceStore
public static IPreferenceStore getPreferenceStore()(Code)
Returns the preference store used for publicly settable workbench preferences. Constants for these preferences are defined on org.eclipse.ui.IWorkbenchPreferenceConstants . the workbench public preference store
since:
   3.0



getTestableObject
public static TestableObject getTestableObject()(Code)
Returns the testable object facade, for use by the test harness.

IMPORTANT: This method is only for use by the test harness. Applications and regular plug-ins should not call this method.

the testable object facade
since:
   3.0



getWorkbench
public static IWorkbench getWorkbench()(Code)
Returns the workbench. Fails if the workbench has not been created yet. the workbench



isWorkbenchRunning
public static boolean isWorkbenchRunning()(Code)
Returns whether PlatformUI.createAndRunWorkbench createAndRunWorkbench has been called to create the workbench, and the workbench has yet to terminate.

Note that this method may return true while the workbench is still being initialized, so it may not be safe to call workbench API methods even if this method returns true. See bug 49316 for details.

true if the workbench has been created and isstill running, and false if the workbench has notyet been created or has completed
since:
   3.0



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.