Package org.eclipse.ui.internal
Class WorkbenchIntroManager
java.lang.Object
org.eclipse.ui.internal.WorkbenchIntroManager
- All Implemented Interfaces:
IIntroManager
Workbench implementation of the IIntroManager interface.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancloseIntro(IIntroPart part) Closes the given intro part.getIntro()Returns the intro part.booleanhasIntro()Return whether an intro is available.booleanisIntroStandby(IIntroPart part) Return the standby state of the given intro part.booleanReturnstrueif there is an intro content detector and it reports that new intro content is available.voidsetIntroStandby(IIntroPart part, boolean standby) Sets the standby state of the given intro part.showIntro(IWorkbenchWindow preferredWindow, boolean standby) Shows the intro part in the given workbench window.
-
Method Details
-
closeIntro
Description copied from interface:IIntroManagerCloses the given intro part.- Specified by:
closeIntroin interfaceIIntroManager- Parameters:
part- the intro part- Returns:
trueif the intro part was closed, andfalseotherwise.falseis returned if part isnullor it is not the intro part returned byIIntroManager.getIntro().
-
showIntro
Description copied from interface:IIntroManagerShows the intro part in the given workbench window. If the intro part has not been created yet, one will be created. If the intro part is currently being shown in some workbench window, that other window is made active.- Specified by:
showIntroin interfaceIIntroManager- Parameters:
preferredWindow- the preferred workbench window, ornullto indicate the currently active workbench windowstandby-trueto put the intro part in its partially visible standy mode, andfalseto make it fully visible- Returns:
- the newly-created or existing intro part, or
nullif no intro part is available or ifpreferredWindowisnulland there is no currently active workbench window
-
setIntroStandby
Description copied from interface:IIntroManagerSets the standby state of the given intro part. Intro part usually should render themselves differently in the full and standby modes. In standby mode, the part should be partially visible to the user but otherwise allow them to work. In full mode, the part should be fully visible and be the center of the user's attention.This method does nothing if the part is
nullor is not the intro part returned byIIntroManager.getIntro().- Specified by:
setIntroStandbyin interfaceIIntroManager- Parameters:
part- the intro part, ornullstandby-trueto put the part in its partially visible standy mode, andfalseto make it fully visible.
-
isIntroStandby
Description copied from interface:IIntroManagerReturn the standby state of the given intro part.- Specified by:
isIntroStandbyin interfaceIIntroManager- Parameters:
part- the intro part- Returns:
trueif the part in its partially visible standy mode, andfalseif in its fully visible state.falseis returned if part isnullor it is not the intro part returned byIIntroManager.getIntro().
-
getIntro
Description copied from interface:IIntroManagerReturns the intro part. Returnsnullif there is no intro part, if it has been previously closed viaIIntroManager.closeIntro(IIntroPart)or if there is an intro part butIIntroManager.showIntro(IWorkbenchWindow, boolean)has not yet been called to create it.- Specified by:
getIntroin interfaceIIntroManager- Returns:
- the intro part, or
nullif none is available
-
hasIntro
public boolean hasIntro()Description copied from interface:IIntroManagerReturn whether an intro is available. Note that this checks whether there is an applicable intro part that could be instantiated and shown to the user. UseIIntroManager.getIntro()to discover whether an intro part has already been created.- Specified by:
hasIntroin interfaceIIntroManager- Returns:
trueif there is an intro that could be shown, andfalseif there is no intro
-
isNewContentAvailable
public boolean isNewContentAvailable()Description copied from interface:IIntroManagerReturnstrueif there is an intro content detector and it reports that new intro content is available.- Specified by:
isNewContentAvailablein interfaceIIntroManager- Returns:
trueif new intro content is available
-