Java Doc for PartSite.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » internal » 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.internal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.ui.internal.PartSite

All known Subclasses:   org.eclipse.ui.internal.EditorSite,  org.eclipse.ui.internal.ViewSite,
PartSite
abstract public class PartSite implements IWorkbenchPartSite(Code)
PartSite is the general implementation for an IWorkbenchPartSite. A site maintains the context for a part, including the part, its pane, active contributions, selection provider, etc. Together, these components make up the complete behavior for a part as if it was implemented by one person. The PartSite lifecycle is as follows ..
  1. a site is constructed
  2. a part is constructed and stored in the part
  3. the site calls part.init()
  4. a pane is constructed and stored in the site
  5. the action bars for a part are constructed and stored in the site
  6. the pane is added to a presentation
  7. the SWT widgets for the pane and part are created
  8. the site is activated, causing the actions to become visible


Field Summary
protected  ArrayListmenuExtenders
    
final protected  ServiceLocatorserviceLocator
    

Constructor Summary
public  PartSite(IWorkbenchPartReference ref, IWorkbenchPart part, IWorkbenchPage page)
     Build the part site.

Method Summary
public  voidactivateActionBars(boolean forceVisibility)
    
public  voiddeactivateActionBars(boolean forceHide)
    
public  voiddispose()
     Dispose the contributions.
public  IActionBarsgetActionBars()
     Returns the action bars for the part.
final public  ObjectgetAdapter(Class adapter)
     Get an adapter for this type.
public  String[]getContextMenuIds()
    
public  StringgetId()
     Returns the part registry extension ID.
protected  StringgetInitialScopeId()
    
public  IKeyBindingServicegetKeyBindingService()
    
public  IWorkbenchPagegetPage()
     Returns the page containing this workbench site's part.
public  PartPanegetPane()
     Gets the part pane.
public  IWorkbenchPartgetPart()
     Returns the part.
public  IWorkbenchPartReferencegetPartReference()
     Returns the part reference.
public  StringgetPluginId()
     Returns the part registry plugin ID.
public  StringgetRegisteredName()
     Returns the registered name for this part.
public  ISelectionProvidergetSelectionProvider()
     Returns the selection provider for a part.
final public  ObjectgetService(Class key)
    
public  ShellgetShell()
     Returns the shell containing this part.
public  IWorkbenchWindowgetWorkbenchWindow()
     Returns the workbench window containing this part.
final public  booleanhasService(Class key)
    
final public static  voidregisterContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider, boolean includeEditorInput, IWorkbenchPart part, Collection menuExtenders)
     This is a helper method for the register context menu functionality.
public  voidregisterContextMenu(String menuID, MenuManager menuMgr, ISelectionProvider selProvider)
     Register a popup menu for extension.
public  voidregisterContextMenu(MenuManager menuMgr, ISelectionProvider selProvider)
     Register a popup menu with the default id for extension.
public  voidsetActionBars(SubActionBars bars)
     Sets the action bars for the part.
public  voidsetConfigurationElement(IConfigurationElement configElement)
     Sets the configuration element for a part.
protected  voidsetId(String id)
     Sets the part registry extension ID.
public  voidsetPart(IWorkbenchPart newPart)
     Sets the part.
protected  voidsetPluginId(String pluginId)
    
protected  voidsetRegisteredName(String name)
     Sets the registered name for this part.
public  voidsetSelectionProvider(ISelectionProvider provider)
     Set the selection provider for a part.
public  StringtoString()
     Prints out the identifier, the plug-in identifier and the registered name.

Field Detail
menuExtenders
protected ArrayList menuExtenders(Code)



serviceLocator
final protected ServiceLocator serviceLocator(Code)




Constructor Detail
PartSite
public PartSite(IWorkbenchPartReference ref, IWorkbenchPart part, IWorkbenchPage page)(Code)
Build the part site.
Parameters:
  ref - the part reference
Parameters:
  part - the part
Parameters:
  page - the page it belongs to




Method Detail
activateActionBars
public void activateActionBars(boolean forceVisibility)(Code)



deactivateActionBars
public void deactivateActionBars(boolean forceHide)(Code)



dispose
public void dispose()(Code)
Dispose the contributions.



getActionBars
public IActionBars getActionBars()(Code)
Returns the action bars for the part. If this part is a view then it has exclusive use of the action bars. If this part is an editor then the action bars are shared among this editor and other editors of the same type.



getAdapter
final public Object getAdapter(Class adapter)(Code)
Get an adapter for this type.
Parameters:
  adapter -



getContextMenuIds
public String[] getContextMenuIds()(Code)
Get the registered popup menu identifiers



getId
public String getId()(Code)
Returns the part registry extension ID. the registry extension ID



getInitialScopeId
protected String getInitialScopeId()(Code)



getKeyBindingService
public IKeyBindingService getKeyBindingService()(Code)



getPage
public IWorkbenchPage getPage()(Code)
Returns the page containing this workbench site's part. the page containing this part



getPane
public PartPane getPane()(Code)
Gets the part pane.



getPart
public IWorkbenchPart getPart()(Code)
Returns the part.



getPartReference
public IWorkbenchPartReference getPartReference()(Code)
Returns the part reference.



getPluginId
public String getPluginId()(Code)
Returns the part registry plugin ID. It cannot be null. the registry plugin ID



getRegisteredName
public String getRegisteredName()(Code)
Returns the registered name for this part.



getSelectionProvider
public ISelectionProvider getSelectionProvider()(Code)
Returns the selection provider for a part.



getService
final public Object getService(Class key)(Code)



getShell
public Shell getShell()(Code)
Returns the shell containing this part. the shell containing this part



getWorkbenchWindow
public IWorkbenchWindow getWorkbenchWindow()(Code)
Returns the workbench window containing this part. the workbench window containing this part



hasService
final public boolean hasService(Class key)(Code)



registerContextMenu
final public static void registerContextMenu(String menuId, MenuManager menuManager, ISelectionProvider selectionProvider, boolean includeEditorInput, IWorkbenchPart part, Collection menuExtenders)(Code)
This is a helper method for the register context menu functionality. It is provided so that different implementations of the IWorkbenchPartSite interface don't have to worry about how context menus should work.
Parameters:
  menuId - the menu id
Parameters:
  menuManager - the menu manager
Parameters:
  selectionProvider - the selection provider
Parameters:
  includeEditorInput - whether editor inputs should be included in the structuredselection when calculating contributions
Parameters:
  part - the part for this site
Parameters:
  menuExtenders - the collection of menu extenders for this site
See Also:   IWorkbenchPartSite.registerContextMenu(MenuManagerISelectionProvider)



registerContextMenu
public void registerContextMenu(String menuID, MenuManager menuMgr, ISelectionProvider selProvider)(Code)
Register a popup menu for extension.



registerContextMenu
public void registerContextMenu(MenuManager menuMgr, ISelectionProvider selProvider)(Code)
Register a popup menu with the default id for extension.



setActionBars
public void setActionBars(SubActionBars bars)(Code)
Sets the action bars for the part.



setConfigurationElement
public void setConfigurationElement(IConfigurationElement configElement)(Code)
Sets the configuration element for a part.



setId
protected void setId(String id)(Code)
Sets the part registry extension ID.
Parameters:
  id - the registry extension ID



setPart
public void setPart(IWorkbenchPart newPart)(Code)
Sets the part.



setPluginId
protected void setPluginId(String pluginId)(Code)



setRegisteredName
protected void setRegisteredName(String name)(Code)
Sets the registered name for this part.
Parameters:
  name - the registered name



setSelectionProvider
public void setSelectionProvider(ISelectionProvider provider)(Code)
Set the selection provider for a part.



toString
public String toString()(Code)
Prints out the identifier, the plug-in identifier and the registered name. This is for debugging purposes only.
since:
   3.2



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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