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


001:        /*******************************************************************************
002:         * Copyright (c) 2007 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.ui.splash;
011:
012:        import org.eclipse.core.runtime.IProgressMonitor;
013:        import org.eclipse.core.runtime.NullProgressMonitor;
014:        import org.eclipse.swt.widgets.Shell;
015:        import org.eclipse.ui.IWorkbench;
016:        import org.eclipse.ui.IWorkbenchPreferenceConstants;
017:        import org.eclipse.ui.PlatformUI;
018:        import org.eclipse.ui.application.WorkbenchAdvisor;
019:
020:        /**
021:         * Baseclass for splash implementations. Please note that methods on this class
022:         * will be invoked while the Workbench is being instantiated. As such, any
023:         * resource provided by the workbench plug-in cannot be guarenteed to be
024:         * available to this class while executing. No attempt should be made to access
025:         * {@link IWorkbench} or any subordinate interfaces or resources.
026:         * 
027:         * @since 3.3
028:         */
029:        public abstract class AbstractSplashHandler {
030:
031:            private Shell shell;
032:
033:            /**
034:             * Initialize this splash implementation. This is called very early in the
035:             * workbench lifecycle before any window is created. The provided shell will
036:             * already have a background image provided to it but subclasses are free to
037:             * customize the shell in whatever way they see fit. Subclasses should
038:             * ensure that they call the base implementation of this method at some
039:             * point after their own method is invoked.
040:             * 
041:             * <p>
042:             * Calls to this method will be made from the UI thread.
043:             * </p>
044:             * 
045:             * @param splash
046:             *            the splash shell
047:             */
048:            public void init(Shell splash) {
049:                this .shell = splash;
050:            }
051:
052:            /**
053:             * Signal the handler to end the splash and dispose of any resources.
054:             * Subclasses should ensure that they call the base implementation of this
055:             * method at some point after their own method is invoked.
056:             * 
057:             * <p>
058:             * Calls to this method will be made from the UI thread.
059:             * </p>
060:             */
061:            public void dispose() {
062:                shell.close();
063:                shell = null;
064:            }
065:
066:            /**
067:             * Return the progress monitor responsible for showing bundle loading.
068:             * Default implementation returns a null progress monitor.
069:             * 
070:             * <p>
071:             * Calls made to methods on this progress monitor may be made from non-UI
072:             * threads so implementors must take care to ensure proper synchronization
073:             * with the UI thread if necessary.
074:             * </p>
075:             * 
076:             * <p>
077:             * Please note that progress will only be shown if the
078:             * "org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP" property has been set to
079:             * <code>true</code>. Because this property defaults to <code>false</code>
080:             * RCP developers must set this property via a
081:             * <code>plugin_customization.ini</code> file or by setting the preference
082:             * on the Platform UI perference store in the
083:             * {@link WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)}
084:             * method if they wish to have progress reported on startup.
085:             * </p>
086:             * 
087:             * @return the progress monitor
088:             * @see NullProgressMonitor
089:             * @see PlatformUI#getPreferenceStore()
090:             * @see IWorkbenchPreferenceConstants#SHOW_PROGRESS_ON_STARTUP
091:             * @see WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)
092:             */
093:            public IProgressMonitor getBundleProgressMonitor() {
094:                return new NullProgressMonitor();
095:            }
096:
097:            /**
098:             * Get the {@link Shell} associated with this splash screen. If this method
099:             * returns a non-<code>null</code> value prior to the
100:             * {@link #init(Shell)} being invoked then this shell will be used for the
101:             * splash shell and it will subsequently be passed to the
102:             * {@link #init(Shell)} method. In this way a splash handler may participate
103:             * in splash processes prior to the workbench startup.
104:             * 
105:             * <p>
106:             * Calls to this method may be made from any thread. Implementors must take
107:             * care to ensure proper synchronization with the UI thread if necessary.
108:             * </p>
109:             * 
110:             * @return the splash shell
111:             */
112:            public Shell getSplash() {
113:                return shell;
114:            }
115:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.