|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ui.part.IntroPart
Abstract base implementation of an intro part.
Subclasses must implement the following methods:
Subclasses may extend or reimplement the following methods as required:
Field Summary |
Fields inherited from interface org.eclipse.ui.intro.IIntroPart |
PROP_TITLE |
Constructor Summary | |
protected | IntroPart()
Creates a new intro part. |
Method Summary | |
void | addPropertyListener(IPropertyListener l)
Adds a listener for changes to properties of this intro part. |
abstract void | createPartControl(Composite parent)
Creates the SWT controls for this intro part. |
void | dispose()
The IntroPart implementation of this IIntroPart method disposes the title image loaded by setInitializationData. |
protected void | firePropertyChange(int propertyId)
Fires a property changed event. |
Object | getAdapter(Class adapter)
This implementation of the method declared by IAdaptable passes the request along to the platform's adapter manager; roughly Platform.getAdapterManager().getAdapter(this, adapter). |
protected IConfigurationElement | getConfigurationElement()
Returns the configuration element for this part. |
protected Image | getDefaultImage()
Returns the default title image. |
IIntroSite | getIntroSite()
Returns the site for this intro part. |
Image | getTitleImage()
Returns the title image of this intro part. |
void | init(IIntroSite site,
IMemento memento)
The base implementation of this IIntroPartmethod ignores the memento and initializes the part in a fresh state. |
void | removePropertyListener(IPropertyListener l)
Removes the given property listener from this intro part. |
void | saveState(IMemento memento)
The base implementation of this IIntroPart method does nothing. |
abstract void | setFocus()
Asks this part to take focus within the workbench. |
void | setInitializationData(IConfigurationElement cfig,
String propertyName,
Object data)
The IntroPart implementation of this IExecutableExtension records the configuration element in and internal state variable (accessible via getConfigElement). |
protected void | setSite(IIntroSite site)
Sets the part site. |
protected void | setTitleImage(Image titleImage)
Sets or clears the title image of this part. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.intro.IIntroPart |
standbyStateChanged |
Constructor Detail |
protected IntroPart()
Method Detail |
public void addPropertyListener(IPropertyListener l)
The properties ids are as follows:
public abstract void createPartControl(Composite parent)
Clients should not call this method (the workbench calls this method when it needs to, which may be never).
For implementors this is a multi-step process:
public void dispose()
protected void firePropertyChange(int propertyId)
public Object getAdapter(Class adapter)
protected IConfigurationElement getConfigurationElement()
protected Image getDefaultImage()
public final IIntroSite getIntroSite()
public Image getTitleImage()
The title image is usually used to populate the title bar of this part's visual container. Since this image is managed by the part itself, callers must not dispose the returned image.
public void init(IIntroSite site, IMemento memento) throws PartInitException
protected void setSite(IIntroSite site)
Subclasses must invoke this method from IIntroPart.init(IIntroSite, IMemento).
public void removePropertyListener(IPropertyListener l)
public void saveState(IMemento memento)
public abstract void setFocus()
Clients should not call this method (the workbench calls this method at appropriate times). To have the workbench activate a part, use IIntroManager.showIntro(IWorkbenchWindow, boolean).
public void setInitializationData(IConfigurationElement cfig, String propertyName, Object data)
protected void setTitleImage(Image titleImage)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.