public interface IStandbyContentPart
<extension point="org.eclipse.ui.intro.configExtension"> <standbyPart pluginId="com.x.y.somePluginId" class="com.x.y.someClass" id="com.x.y.someContentPartId"> </standbyPart> </extension>Standby content parts have a life cycle that starts with a call to init, shortly after part construction, followed by a call to createPartControl. During these two calls, the part is responsible for creating its content and using the memento to try to recreate its previous state. SetInput is the last method called when trying to create a standby part.
Modifier and Type | Method and Description |
---|---|
void |
createPartControl(Composite parent,
FormToolkit toolkit)
Creates the SWT controls for this standby part.
|
void |
dispose()
Disposes of this standby part.
|
Control |
getControl()
Returns the primary control associated with this standby part.
|
void |
init(IIntroPart introPart,
IMemento memento)
Initializes this intro standby content part with the given intro site.
|
void |
saveState(IMemento memento)
Saves the object state within a memento.
|
void |
setFocus()
Asks this standby part to take focus.
|
void |
setInput(Object input)
Sets the input to show in this standby part.
|
void createPartControl(Composite parent, FormToolkit toolkit)
Clients should not call this method. The intro framework calls this method when it needs to.
parent
- the parent controltoolkit
- the form toolkit being used by the IIntroPart implementationControl getControl()
null
if this standby part's controls have not yet
been created.void init(IIntroPart introPart, IMemento memento) throws PartInitException
This method is automatically called by the workbench shortly after part construction. It marks the start of this parts' lifecycle. Clients must not call this method.
introPart
- the intro part hosting this stanndby content part.memento
- this part state or null
if there is no previous
saved statePartInitException
- if this part was not initialized successfully.void setInput(Object input)
input
- the input object to be used by this standby part.void setFocus()
Clients should not call this method (the intro framework calls this method at appropriate times).
void dispose()
Clients should not call this method. The intro framework calls this method when the Customizable IntroPart is closed.
void saveState(IMemento memento)
This method is automatically called by the workbench at appropriate times. Clients must not call this method directly.
memento
- a memento to receive the object state
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.