Interface IWorkbenchWindowConfigurer
- All Known Implementing Classes:
- WorkbenchWindowConfigurer
 Window configurer objects are in 1-1 correspondence with the workbench
 windows they configure. Clients may use get/setData to associate
 arbitrary state with the window configurer object.
 
Note that these objects are only available to the main application (the plug-in that creates and owns the workbench).
This interface is not intended to be implemented by clients.
- Since:
- 3.0
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddEditorAreaTransfer(Transfer transfer) Adds the given drag and dropTransfertype to the ones supported for drag and drop on the editor area of this workbench window.voidconfigureEditorAreaDropListener(DropTargetListener dropTargetListener) Configures the drop target listener for the editor area of this workbench window.Returns the action bar configurer for this workbench window.Returns the data associated with this workbench window at the given key.Returns the size to use for the window's shell when it is created.intReturns the style bits to use for the window's shell when it is created.booleanReturns whether the underlying workbench window has a cool bar.booleanReturns whether the underlying workbench window has a menu bar.booleanReturns whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).booleanReturns whether the underlying workbench window has a progress indicator.booleanReturns whether the underlying workbench window has a status line.getTitle()Returns the title of the underlying workbench window.Returns the underlying workbench window.Returns the workbench configurer.Saves the current state of the window using the specified memento.voidSets the data associated with this workbench window at the given key.voidsetInitialSize(Point initialSize) Sets the size to use for the window's shell when it is created.voidsetShellStyle(int shellStyle) Sets the style bits to use for the window's shell when it is created.voidsetShowCoolBar(boolean show) Sets whether the underlying workbench window has a cool bar.voidsetShowMenuBar(boolean show) Sets whether the underlying workbench window has a menu bar.voidsetShowPerspectiveBar(boolean show) Sets whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).voidsetShowProgressIndicator(boolean show) Sets whether the underlying workbench window has a progress indicator.voidsetShowStatusLine(boolean show) Sets whether the underlying workbench window has a status line.voidSets the title of the underlying workbench window.
- 
Method Details- 
getWindowIWorkbenchWindow getWindow()Returns the underlying workbench window.- Returns:
- the workbench window
 
- 
getWorkbenchConfigurerIWorkbenchConfigurer getWorkbenchConfigurer()Returns the workbench configurer.- Returns:
- the workbench configurer
 
- 
getActionBarConfigurerIActionBarConfigurer getActionBarConfigurer()Returns the action bar configurer for this workbench window.- Returns:
- the action bar configurer
 
- 
getTitleString getTitle()Returns the title of the underlying workbench window.- Returns:
- the window title
 
- 
setTitleSets the title of the underlying workbench window.- Parameters:
- title- the window title
 
- 
getShowMenuBarboolean getShowMenuBar()Returns whether the underlying workbench window has a menu bar.The initial value is true.- Returns:
- truefor a menu bar, and- falsefor no menu bar
 
- 
setShowMenuBarvoid setShowMenuBar(boolean show) Sets whether the underlying workbench window has a menu bar.- Parameters:
- show-- truefor a menu bar, and- falsefor no menu bar
 
- 
getShowCoolBarboolean getShowCoolBar()Returns whether the underlying workbench window has a cool bar.The initial value is true.- Returns:
- truefor a cool bar, and- falsefor no cool bar
 
- 
setShowCoolBarvoid setShowCoolBar(boolean show) Sets whether the underlying workbench window has a cool bar.- Parameters:
- show-- truefor a cool bar, and- falsefor no cool bar
 
- 
getShowStatusLineboolean getShowStatusLine()Returns whether the underlying workbench window has a status line.The initial value is true.- Returns:
- truefor a status line, and- falsefor no status line
 
- 
setShowStatusLinevoid setShowStatusLine(boolean show) Sets whether the underlying workbench window has a status line.- Parameters:
- show-- truefor a status line, and- falsefor no status line
 
- 
getShowPerspectiveBarboolean getShowPerspectiveBar()Returns whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).The initial value is false.- Returns:
- truefor a perspective bar, and- falsefor no perspective bar
 
- 
setShowPerspectiveBarvoid setShowPerspectiveBar(boolean show) Sets whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).- Parameters:
- show-- truefor a perspective bar, and- falsefor no perspective bar
 
- 
getShowProgressIndicatorboolean getShowProgressIndicator()Returns whether the underlying workbench window has a progress indicator.The initial value is false.- Returns:
- truefor a progress indicator, and- falsefor no progress indicator
 
- 
setShowProgressIndicatorvoid setShowProgressIndicator(boolean show) Sets whether the underlying workbench window has a progress indicator.- Parameters:
- show-- truefor a progress indicator, and- falsefor no progress indicator
 
- 
getShellStyleint getShellStyle()Returns the style bits to use for the window's shell when it is created. The default isSWT.SHELL_TRIM.- Returns:
- the shell style bits
 
- 
setShellStylevoid setShellStyle(int shellStyle) Sets the style bits to use for the window's shell when it is created. This method has no effect after the shell is created. That is, it must be called within thepreWindowOpencallback onWorkbenchAdvisor.For more details on the applicable shell style bits, see the documentation for Shell.- Parameters:
- shellStyle- the shell style bits
 
- 
getInitialSizePoint getInitialSize()Returns the size to use for the window's shell when it is created.- Returns:
- the initial size to use for the shell
 
- 
setInitialSizeSets the size to use for the window's shell when it is created. This method has no effect after the shell is created. That is, it must be called within thepreWindowOpencallback onWorkbenchAdvisor.- Parameters:
- initialSize- the initial size to use for the shell
 
- 
getDataReturns the data associated with this workbench window at the given key.- Parameters:
- key- the key
- Returns:
- the data, or nullif there is no data at the given key
 
- 
setDataSets the data associated with this workbench window at the given key.- Parameters:
- key- the key
- data- the data, or- nullto delete existing data
 
- 
addEditorAreaTransferAdds the given drag and dropTransfertype to the ones supported for drag and drop on the editor area of this workbench window.The workbench advisor would ordinarily call this method from the preWindowOpencallback. A newly-created workbench window supports no drag and drop transfer types. AddingEditorInputTransfer.getInstance()enablesIEditorInputs to be transferred.Note that drag and drop to the editor area requires adding one or more transfer types (using addEditorAreaTransfer) and configuring a drop target listener (withconfigureEditorAreaDropListener) capable of handling any of those transfer types.- Parameters:
- transfer- a drag and drop transfer object
- See Also:
 
- 
configureEditorAreaDropListenerConfigures the drop target listener for the editor area of this workbench window.The workbench advisor ordinarily calls this method from the preWindowOpencallback. A newly-created workbench window has no configured drop target listener for its editor area.Note that drag and drop to the editor area requires adding one or more transfer types (using addEditorAreaTransfer) and configuring a drop target listener (withconfigureEditorAreaDropListener) capable of handling any of those transfer types.- Parameters:
- dropTargetListener- the drop target listener that will handle requests to drop an object on to the editor area of this window
- See Also:
 
- 
saveStateSaves the current state of the window using the specified memento.- Parameters:
- memento- the memento in which to save the window's state
- Returns:
- a status object indicating whether the save was successful
- Since:
- 3.1
- See Also:
 
 
-