Java Doc for IWorkbenchWindowConfigurer.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » application » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui workbench » org.eclipse.ui.application 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.application.IWorkbenchWindowConfigurer

All known Subclasses:   org.eclipse.ui.internal.WorkbenchWindowConfigurer,
IWorkbenchWindowConfigurer
public interface IWorkbenchWindowConfigurer (Code)
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.


See Also:   IWorkbenchConfigurer.getWindowConfigurer
See Also:   WorkbenchAdvisor.preWindowOpen
since:
   3.0




Method Summary
public  voidaddEditorAreaTransfer(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.

public  voidconfigureEditorAreaDropListener(DropTargetListener dropTargetListener)
     Configures the drop target listener for the editor area of this workbench window.
public  ControlcreateCoolBarControl(Composite parent)
     Creates the cool bar control.
public  MenucreateMenuBar()
     Creates the menu bar for the window's shell.

This should only be called if the advisor is defining custom window contents in createWindowContents, and may only be called once. 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.

public  ControlcreatePageComposite(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, and may only be called once. 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.

public  ControlcreateStatusLineControl(Composite parent)
     Creates the status line control.
public  IActionBarConfigurergetActionBarConfigurer()
     Returns the action bar configurer for this workbench window.
public  ObjectgetData(String key)
     Returns the data associated with this workbench window at the given key.
public  PointgetInitialSize()
     Returns the size to use for the window's shell when it is created.
public  AbstractPresentationFactorygetPresentationFactory()
     Returns the presentation factory for this window.
public  intgetShellStyle()
     Returns the style bits to use for the window's shell when it is created.
public  booleangetShowCoolBar()
     Returns whether the underlying workbench window has a cool bar.
public  booleangetShowFastViewBars()
     Returns whether the underlying workbench window has fast view bars.
public  booleangetShowMenuBar()
     Returns whether the underlying workbench window has a menu bar.
public  booleangetShowPerspectiveBar()
     Returns whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).
public  booleangetShowProgressIndicator()
     Returns whether the underlying workbench window has a progress indicator.
public  booleangetShowStatusLine()
     Returns whether the underlying workbench window has a status line.
public  StringgetTitle()
     Returns the title of the underlying workbench window.
public  IWorkbenchWindowgetWindow()
     Returns the underlying workbench window.
public  IWorkbenchConfigurergetWorkbenchConfigurer()
     Returns the workbench configurer.
public  IStatussaveState(IMemento memento)
     Saves the current state of the window using the specified memento.
public  voidsetData(String key, Object data)
     Sets the data associated with this workbench window at the given key.
public  voidsetInitialSize(Point initialSize)
     Sets the size to use for the window's shell when it is created.
public  voidsetPresentationFactory(AbstractPresentationFactory factory)
     Sets the presentation factory.
public  voidsetShellStyle(int shellStyle)
     Sets the style bits to use for the window's shell when it is created.
public  voidsetShowCoolBar(boolean show)
     Sets whether the underlying workbench window has a cool bar.
public  voidsetShowFastViewBars(boolean enable)
     Sets whether the underlying workbench window has fast view bars.
public  voidsetShowMenuBar(boolean show)
     Sets whether the underlying workbench window has a menu bar.
public  voidsetShowPerspectiveBar(boolean show)
     Sets whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).
public  voidsetShowProgressIndicator(boolean show)
     Sets whether the underlying workbench window has a progress indicator.
public  voidsetShowStatusLine(boolean show)
     Sets whether the underlying workbench window has a status line.
public  voidsetTitle(String title)
     Sets the title of the underlying workbench window.



Method Detail
addEditorAreaTransfer
public void addEditorAreaTransfer(Transfer transfer)(Code)
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.


Parameters:
  transfer - a drag and drop transfer object
See Also:   IWorkbenchWindowConfigurer.configureEditorAreaDropListener
See Also:   org.eclipse.ui.part.EditorInputTransfer



configureEditorAreaDropListener
public void configureEditorAreaDropListener(DropTargetListener dropTargetListener)(Code)
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.


Parameters:
  dropTargetListener - the drop target listener that will handlerequests to drop an object on to the editor area of this window
See Also:   IWorkbenchWindowConfigurer.addEditorAreaTransfer



createCoolBarControl
public Control createCoolBarControl(Composite parent)(Code)
Creates the cool bar control.

This should only be called if the advisor is defining custom window contents in createWindowContents, and may only be called once. 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.


Parameters:
  parent - the parent composite the cool bar control, suitable for laying out in the parent



createMenuBar
public Menu createMenuBar()(Code)
Creates the menu bar for the window's shell.

This should only be called if the advisor is defining custom window contents in createWindowContents, and may only be called once. 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.

the menu bar, suitable for setting in the shell



createPageComposite
public Control createPageComposite(Composite parent)(Code)
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, and may only be called once. 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.


Parameters:
  parent - the parent composite the page composite, suitable for laying out in the parent



createStatusLineControl
public Control createStatusLineControl(Composite parent)(Code)
Creates the status line control.

This should only be called if the advisor is defining custom window contents in createWindowContents, and may only be called once. 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.


Parameters:
  parent - the parent composite the status line control, suitable for laying out in the parent



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



getData
public Object getData(String key)(Code)
Returns the data associated with this workbench window at the given key.
Parameters:
  key - the key the data, or null if there is no data at the givenkey



getInitialSize
public Point getInitialSize()(Code)
Returns the size to use for the window's shell when it is created. the initial size to use for the shell



getPresentationFactory
public AbstractPresentationFactory getPresentationFactory()(Code)
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.

the presentation factory used for this window



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



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

The initial value is true.

true for a cool bar, and falsefor no cool bar



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

The initial value is false.

true for fast view bars, and false for no fast view bars



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

The initial value is true.

true for a menu bar, and falsefor no menu bar



getShowPerspectiveBar
public boolean getShowPerspectiveBar()(Code)
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.

true for a perspective bar, and falsefor no perspective bar



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

The initial value is false.

true for a progress indicator, and falsefor no progress indicator



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

The initial value is true.

true for a status line, and falsefor no status line



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



getWindow
public IWorkbenchWindow getWindow()(Code)
Returns the underlying workbench window. the workbench window



getWorkbenchConfigurer
public IWorkbenchConfigurer getWorkbenchConfigurer()(Code)
Returns the workbench configurer. the workbench configurer



saveState
public IStatus saveState(IMemento memento)(Code)
Saves the current state of the window using the specified memento.
Parameters:
  memento - the memento in which to save the window's state a status object indicating whether the save was successful
See Also:   IWorkbenchConfigurer.restoreWorkbenchWindow(IMemento)
since:
   3.1



setData
public void setData(String key, Object data)(Code)
Sets the data associated with this workbench window at the given key.
Parameters:
  key - the key
Parameters:
  data - the data, or null to delete existing data



setInitialSize
public void setInitialSize(Point initialSize)(Code)
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.
Parameters:
  initialSize - the initial size to use for the shell



setPresentationFactory
public void setPresentationFactory(AbstractPresentationFactory factory)(Code)
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.


Parameters:
  factory - the presentation factory to use for this window



setShellStyle
public void setShellStyle(int shellStyle)(Code)
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.

For more details on the applicable shell style bits, see the documentation for org.eclipse.swt.widgets.Shell .


Parameters:
  shellStyle - the shell style bits



setShowCoolBar
public void setShowCoolBar(boolean show)(Code)
Sets whether the underlying workbench window has a cool bar.
Parameters:
  show - true for a cool bar, and falsefor no cool bar



setShowFastViewBars
public void setShowFastViewBars(boolean enable)(Code)
Sets whether the underlying workbench window has fast view bars.
Parameters:
  enable - true for fast view bars, and false for no fast view bars



setShowMenuBar
public void setShowMenuBar(boolean show)(Code)
Sets whether the underlying workbench window has a menu bar.
Parameters:
  show - true for a menu bar, and falsefor no menu bar



setShowPerspectiveBar
public void setShowPerspectiveBar(boolean show)(Code)
Sets whether the underlying workbench window has a perspective bar (the perspective bar provides buttons to quickly switch between perspectives).
Parameters:
  show - true for a perspective bar, andfalse for no perspective bar



setShowProgressIndicator
public void setShowProgressIndicator(boolean show)(Code)
Sets whether the underlying workbench window has a progress indicator.
Parameters:
  show - true for a progress indicator, and falsefor no progress indicator



setShowStatusLine
public void setShowStatusLine(boolean show)(Code)
Sets whether the underlying workbench window has a status line.
Parameters:
  show - true for a status line, and falsefor no status line



setTitle
public void setTitle(String title)(Code)
Sets the title of the underlying workbench window.
Parameters:
  title - the window title



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.