Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.ui.application
Interface IWorkbenchWindowConfigurer  view IWorkbenchWindowConfigurer download IWorkbenchWindowConfigurer.java


public interface IWorkbenchWindowConfigurer

Interface providing special access for configuring workbench windows.

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

Method Summary
 void addEditorAreaTransfer(org.eclipse.swt.dnd.Transfer transfer)
          Adds the given drag and drop Transfer type to the ones supported for drag and drop on the editor area of this workbench window.
 void configureEditorAreaDropListener(org.eclipse.swt.dnd.DropTargetListener dropTargetListener)
          Configures the drop target listener for the editor area of this workbench window.
 org.eclipse.swt.widgets.Control createCoolBarControl(org.eclipse.swt.widgets.Composite parent)
          Creates the cool bar control.
 org.eclipse.swt.widgets.Menu createMenuBar()
          Creates the menu bar for the window's shell.
 org.eclipse.swt.widgets.Control createPageComposite(org.eclipse.swt.widgets.Composite parent)
          Creates the page composite, in which the window's pages, and their views and editors, appear.
 org.eclipse.swt.widgets.Control createStatusLineControl(org.eclipse.swt.widgets.Composite parent)
          Creates the status line control.
 IActionBarConfigurer getActionBarConfigurer()
          Returns the action bar configurer for this workbench window.
 java.lang.Object getData(java.lang.String key)
          Returns the data associated with this workbench window at the given key.
 org.eclipse.swt.graphics.Point getInitialSize()
          Returns the size to use for the window's shell when it is created.
 org.eclipse.ui.presentations.AbstractPresentationFactory getPresentationFactory()
          Deprecated. the presentation factory is now obtained via extension point and a preference on org.eclipse.ui specifying which one to use; see IWorkbenchPreferenceConstants.PRESENTATION_FACTORY_ID
 int getShellStyle()
          Returns the style bits to use for the window's shell when it is created.
 boolean getShowCoolBar()
          Returns whether the underlying workbench window has a cool bar.
 boolean getShowFastViewBars()
          Returns whether the underlying workbench window has fast view bars.
 boolean getShowMenuBar()
          Returns whether the underlying workbench window has a menu bar.
 boolean getShowPerspectiveBar()
          Returns whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).
 boolean getShowProgressIndicator()
          Returns whether the underlying workbench window has a progress indicator.
 boolean getShowStatusLine()
          Returns whether the underlying workbench window has a status line.
 java.lang.String getTitle()
          Returns the title of the underlying workbench window.
 org.eclipse.ui.IWorkbenchWindow getWindow()
          Returns the underlying workbench window.
 IWorkbenchConfigurer getWorkbenchConfigurer()
          Returns the workbench configurer.
 void setData(java.lang.String key, java.lang.Object data)
          Sets the data associated with this workbench window at the given key.
 void setInitialSize(org.eclipse.swt.graphics.Point initialSize)
          Sets the size to use for the window's shell when it is created.
 void setPresentationFactory(org.eclipse.ui.presentations.AbstractPresentationFactory factory)
          Deprecated. the presentation factory is now obtained via extension point and a preference on org.eclipse.ui specifying which one to use; see IWorkbenchPreferenceConstants.PRESENTATION_FACTORY_ID
 void setShellStyle(int shellStyle)
          Sets the style bits to use for the window's shell when it is created.
 void setShowCoolBar(boolean show)
          Sets whether the underlying workbench window has a cool bar.
 void setShowFastViewBars(boolean enable)
          Sets whether the underlying workbench window has fast view bars.
 void setShowMenuBar(boolean show)
          Sets whether the underlying workbench window has a menu bar.
 void setShowPerspectiveBar(boolean show)
          Sets whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).
 void setShowProgressIndicator(boolean show)
          Sets whether the underlying workbench window has a progress indicator.
 void setShowStatusLine(boolean show)
          Sets whether the underlying workbench window has a status line.
 void setTitle(java.lang.String title)
          Sets the title of the underlying workbench window.
 

Method Detail

getWindow

public org.eclipse.ui.IWorkbenchWindow getWindow()
Returns the underlying workbench window.


getWorkbenchConfigurer

public IWorkbenchConfigurer getWorkbenchConfigurer()
Returns the workbench configurer.


getActionBarConfigurer

public IActionBarConfigurer getActionBarConfigurer()
Returns the action bar configurer for this workbench window.


getTitle

public java.lang.String getTitle()
Returns the title of the underlying workbench window.


setTitle

public void setTitle(java.lang.String title)
Sets the title of the underlying workbench window.


getShowMenuBar

public boolean getShowMenuBar()
Returns whether the underlying workbench window has a menu bar.

The initial value is true.


setShowMenuBar

public void setShowMenuBar(boolean show)
Sets whether the underlying workbench window has a menu bar.


getShowCoolBar

public boolean getShowCoolBar()
Returns whether the underlying workbench window has a cool bar.

The initial value is true.


setShowCoolBar

public void setShowCoolBar(boolean show)
Sets whether the underlying workbench window has a cool bar.


getShowStatusLine

public boolean getShowStatusLine()
Returns whether the underlying workbench window has a status line.

The initial value is true.


setShowStatusLine

public void setShowStatusLine(boolean show)
Sets whether the underlying workbench window has a status line.


getShowPerspectiveBar

public boolean 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.


setShowPerspectiveBar

public void setShowPerspectiveBar(boolean show)
Sets whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).


getShowFastViewBars

public boolean getShowFastViewBars()
Returns whether the underlying workbench window has fast view bars.

The initial value is false.


setShowFastViewBars

public void setShowFastViewBars(boolean enable)
Sets whether the underlying workbench window has fast view bars.


getShowProgressIndicator

public boolean getShowProgressIndicator()
Returns whether the underlying workbench window has a progress indicator.

The initial value is false.


setShowProgressIndicator

public void setShowProgressIndicator(boolean show)
Sets whether the underlying workbench window has a progress indicator.


getShellStyle

public int getShellStyle()
Returns the style bits to use for the window's shell when it is created. The default is SWT.SHELL_TRIM.


setShellStyle

public void 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 the preWindowOpen callback on WorkbenchAdvisor.


getInitialSize

public org.eclipse.swt.graphics.Point getInitialSize()
Returns the size to use for the window's shell when it is created. The default is 800x600.


setInitialSize

public void setInitialSize(org.eclipse.swt.graphics.Point initialSize)
Sets 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 the preWindowOpen callback on WorkbenchAdvisor.


getData

public java.lang.Object getData(java.lang.String key)
Returns the data associated with this workbench window at the given key.


setData

public void setData(java.lang.String key,
                    java.lang.Object data)
Sets the data associated with this workbench window at the given key.


addEditorAreaTransfer

public void addEditorAreaTransfer(org.eclipse.swt.dnd.Transfer transfer)
Adds the given drag and drop Transfer type 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 preWindowOpen callback. A newly-created workbench window supports no drag and drop transfer types. Adding EditorInputTransfer.getInstance() enables IEditorInputs 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 (with configureEditorAreaDropListener) capable of handling any of those transfer types.


configureEditorAreaDropListener

public void configureEditorAreaDropListener(org.eclipse.swt.dnd.DropTargetListener dropTargetListener)
Configures the drop target listener for the editor area of this workbench window.

The workbench advisor ordinarily calls this method from the preWindowOpen callback. 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 (with configureEditorAreaDropListener) capable of handling any of those transfer types.


getPresentationFactory

public org.eclipse.ui.presentations.AbstractPresentationFactory getPresentationFactory()
Deprecated. the presentation factory is now obtained via extension point and a preference on org.eclipse.ui specifying which one to use; see IWorkbenchPreferenceConstants.PRESENTATION_FACTORY_ID

Returns the presentation factory for this window. The window consults its presentation factory for the presentation aspects of views, editors, status lines, and other components of the window.

If no presentation factory has been set, a default one is returned.


setPresentationFactory

public void setPresentationFactory(org.eclipse.ui.presentations.AbstractPresentationFactory factory)
Deprecated. the presentation factory is now obtained via extension point and a preference on org.eclipse.ui specifying which one to use; see IWorkbenchPreferenceConstants.PRESENTATION_FACTORY_ID

Sets the presentation factory. The window consults its presentation factory for the presentation aspects of views, editors, status lines, and other components of the window.

This must be called before the window's controls are created, for example in preWindowOpen.


createMenuBar

public org.eclipse.swt.widgets.Menu createMenuBar()
Creates the menu bar for the window's shell.

This should only be called if the advisor is defining custom window contents in createWindowContents. The caller must set it in the shell using Shell.setMenuBar(Menu) but must not make add, remove or change items in the result. The menu bar is populated by the window's menu manager. The application can add to the menu manager in the advisor's fillActionBars method instead.


createCoolBarControl

public org.eclipse.swt.widgets.Control createCoolBarControl(org.eclipse.swt.widgets.Composite parent)
Creates the cool bar control.

This should only be called if the advisor is defining custom window contents in createWindowContents. The caller must lay out the cool bar appropriately within the parent, but must not add, remove or change items in the result (hence the return type of Control). The cool bar is populated by the window's cool bar manager. The application can add to the cool bar manager in the advisor's fillActionBars method instead.


createStatusLineControl

public org.eclipse.swt.widgets.Control createStatusLineControl(org.eclipse.swt.widgets.Composite parent)
Creates the status line control.

This should only be called if the advisor is defining custom window contents in createWindowContents. The caller must lay out the status line appropriately within the parent, but must not add, remove or change items in the result (hence the return type of Control). The status line is populated by the window's status line manager. The application can add to the status line manager in the advisor's fillActionBars method instead.


createPageComposite

public org.eclipse.swt.widgets.Control createPageComposite(org.eclipse.swt.widgets.Composite parent)
Creates the page composite, in which the window's pages, and their views and editors, appear.

This should only be called if the advisor is defining custom window contents in createWindowContents. The caller must lay out the page composite appropriately within the parent, but must not add, remove or change items in the result (hence the return type of Control). The page composite is populated by the workbench.