Class BasicSplashHandler
- Since:
- 3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the progress monitor responsible for showing bundle loading.protected CompositeGet the composite on which any supplemental controls should be drawn.protected ColorGet the foreground text color.protected voidsetForeground(RGB foregroundRGB) Set the foreground text color.protected voidsetMessageRect(Rectangle messageRect) Set the location of the message text in the splash.protected voidsetProgressRect(Rectangle progressRect) Set the location of the progress bar in the splash.Methods inherited from class org.eclipse.ui.splash.AbstractSplashHandler
dispose, getSplash, init
-
Constructor Details
-
BasicSplashHandler
public BasicSplashHandler()
-
-
Method Details
-
getBundleProgressMonitor
Description copied from class:AbstractSplashHandlerReturn the progress monitor responsible for showing bundle loading. Default implementation returns a null progress monitor.Calls made to methods on this progress monitor may be made from non-UI threads so implementors must take care to ensure proper synchronization with the UI thread if necessary.
Please note that progress will only be shown if the "org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP" property has been set to
true. Because this property defaults tofalseRCP developers must set this property via aplugin_customization.inifile or by setting the preference on the Platform UI preference store in theWorkbenchAdvisor.initialize(org.eclipse.ui.application.IWorkbenchConfigurer)method if they wish to have progress reported on startup.- Overrides:
getBundleProgressMonitorin classAbstractSplashHandler- Returns:
- the progress monitor
- See Also:
-
setForeground
Set the foreground text color. This method has no effect aftergetBundleProgressMonitor()has been invoked.- Parameters:
foregroundRGB- the color
-
getForeground
Get the foreground text color. This color should not be disposed by callers.- Returns:
- the foreground color
-
setMessageRect
Set the location of the message text in the splash. This method has no effect aftergetBundleProgressMonitor()has been invoked.- Parameters:
messageRect- the location of the message text
-
setProgressRect
Set the location of the progress bar in the splash. This method has no effect aftergetBundleProgressMonitor()has been invoked.- Parameters:
progressRect- the location of the progress bar
-
getContent
Get the composite on which any supplemental controls should be drawn. This will not have a layout set and clients are responsible for setting the location of child controls manually.This method must be called in the
AbstractSplashHandler.init(org.eclipse.swt.widgets.Shell)method of a subclasses to ensure proper creation of controlsPlease note that the default implementation of this method assumes that the
IProgressMonitorreturned fromgetBundleProgressMonitor()can be safely casted to aComposite. If this is not the case this method must be reimplemented to reflect the new progress controls.- Returns:
- the composite
- See Also:
-