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


org.eclipse.ui.SubActionBars

All known Subclasses:   org.eclipse.ui.internal.ViewActionBars,  org.eclipse.ui.SubActionBars2,
SubActionBars
public class SubActionBars extends EventManager implements IActionBars(Code)
Generic implementation of the IActionBars interface.


Field Summary
final public static  StringP_ACTION_HANDLERS
     Property constant for changes to action handlers.

Constructor Summary
public  SubActionBars(IActionBars parent)
     Construct a new SubActionBars object.
public  SubActionBars(IActionBars parent, IServiceLocator serviceLocator)
     Constructs a new instance of SubActionBars.

Method Summary
public  voidactivate()
     Activate the contributions.
public  voidactivate(boolean forceVisibility)
     Activate the contributions.

Workaround for toolbar layout flashing when editors contribute large amounts of items.

public  voidaddPropertyChangeListener(IPropertyChangeListener listener)
     Adds a property change listener.
final protected  voidbasicSetActive(boolean active)
     Sets the active flag.
public  voidclearGlobalActionHandlers()
     Clear the global action handlers.
protected  SubMenuManagercreateSubMenuManager(IMenuManager parent)
     Returns a new sub menu manager.
protected  SubToolBarManagercreateSubToolBarManager(IToolBarManager parent)
     Returns a new sub toolbar manager.
public  voiddeactivate()
     Deactivate the contributions.
public  voiddeactivate(boolean forceHide)
     Deactivate the contributions.

Workaround for menubar/toolbar layout flashing when editors have many contributions.

public  voiddispose()
     Dispose the contributions.
protected  voidfireActionHandlersChanged()
    
protected  voidfirePropertyChange(PropertyChangeEvent event)
     Notifies any property change listeners that a property has changed.
final protected  booleangetActive()
     Return whether the manager is currently active or not.
public  IActiongetGlobalActionHandler(String actionID)
     Get the handler for a window action.
public  MapgetGlobalActionHandlers()
     Returns the complete list of active global action handlers.
public  IMenuManagergetMenuManager()
     Returns the abstract menu manager.
final protected  IActionBarsgetParent()
     Return the parent action bar manager.
final public  IServiceLocatorgetServiceLocator()
     Answer the service locator for this action bar.
public  IStatusLineManagergetStatusLineManager()
     Returns the status line manager.
public  IToolBarManagergetToolBarManager()
     Returns the tool bar manager.
final protected  booleanisSubMenuManagerCreated()
     Return whether the sub menu manager has been created yet.
final protected  booleanisSubStatusLineManagerCreated()
     Return whether the sub status line manager has been created yet.
final protected  booleanisSubToolBarManagerCreated()
     Return whether the sub toolbar manager has been created yet.
public  voidpartChanged(IWorkbenchPart part)
     Notification that the target part for the action bars has changed.
public  voidremovePropertyChangeListener(IPropertyChangeListener listener)
     Removes the given property change listener.
protected  voidsetActive(boolean set)
     Activate / deactivate the contributions.
public  voidsetGlobalActionHandler(String actionID, IAction handler)
     Add a handler for a window action.
Parameters:
  actionID - an action ID declared in the registry
Parameters:
  handler - an action which implements the action ID.
final protected  voidsetServiceLocator(IServiceLocator locator)
     Sets the service locator for this action bar.
public  voidupdateActionBars()
     Commits all UI changes.

Field Detail
P_ACTION_HANDLERS
final public static String P_ACTION_HANDLERS(Code)
Property constant for changes to action handlers.




Constructor Detail
SubActionBars
public SubActionBars(IActionBars parent)(Code)
Construct a new SubActionBars object. The service locator will simply be the service locator of the parent.
Parameters:
  parent - The parent of this action bar; must not be null.



SubActionBars
public SubActionBars(IActionBars parent, IServiceLocator serviceLocator)(Code)
Constructs a new instance of SubActionBars.
Parameters:
  parent - The parent of this action bar; must not be null.
Parameters:
  serviceLocator - The service locator for this action bar; should not benull.
since:
   3.2




Method Detail
activate
public void activate()(Code)
Activate the contributions.



activate
public void activate(boolean forceVisibility)(Code)
Activate the contributions.

Workaround for toolbar layout flashing when editors contribute large amounts of items. In this case we want to force the items to be visible/hidden only when required, otherwise just change the enablement state.




addPropertyChangeListener
public void addPropertyChangeListener(IPropertyChangeListener listener)(Code)
Adds a property change listener. Has no effect if an identical listener is already registered.
Parameters:
  listener - a property change listener



basicSetActive
final protected void basicSetActive(boolean active)(Code)
Sets the active flag. Clients should not call this method directly unless they are overriding the setActive() method.



clearGlobalActionHandlers
public void clearGlobalActionHandlers()(Code)
Clear the global action handlers.



createSubMenuManager
protected SubMenuManager createSubMenuManager(IMenuManager parent)(Code)
Returns a new sub menu manager.
Parameters:
  parent - the parent menu manager the menu manager



createSubToolBarManager
protected SubToolBarManager createSubToolBarManager(IToolBarManager parent)(Code)
Returns a new sub toolbar manager.
Parameters:
  parent - the parent toolbar manager the tool bar manager



deactivate
public void deactivate()(Code)
Deactivate the contributions.



deactivate
public void deactivate(boolean forceHide)(Code)
Deactivate the contributions.

Workaround for menubar/toolbar layout flashing when editors have many contributions. In this case we want to force the contributions to be visible/hidden only when required, otherwise just change the enablement state.




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



fireActionHandlersChanged
protected void fireActionHandlersChanged()(Code)
Notifies any property change listeners if the global action handlers have changed



firePropertyChange
protected void firePropertyChange(PropertyChangeEvent event)(Code)
Notifies any property change listeners that a property has changed. Only listeners registered at the time this method is called are notified.
Parameters:
  event - the property change event
See Also:   IPropertyChangeListener.propertyChange



getActive
final protected boolean getActive()(Code)
Return whether the manager is currently active or not.



getGlobalActionHandler
public IAction getGlobalActionHandler(String actionID)(Code)
Get the handler for a window action.
Parameters:
  actionID - an action ID declared in the registry an action handler which implements the action ID, ornull if none is registered.



getGlobalActionHandlers
public Map getGlobalActionHandlers()(Code)
Returns the complete list of active global action handlers. If there are no global action handlers registered return null.



getMenuManager
public IMenuManager getMenuManager()(Code)
Returns the abstract menu manager. If items are added or removed from the manager be sure to call updateActionBars. the menu manager



getParent
final protected IActionBars getParent()(Code)
Return the parent action bar manager.



getServiceLocator
final public IServiceLocator getServiceLocator()(Code)
Answer the service locator for this action bar. an IServiceLocater or the parents if the receiver does not have one
since:
   3.2



getStatusLineManager
public IStatusLineManager getStatusLineManager()(Code)
Returns the status line manager. If items are added or removed from the manager be sure to call updateActionBars. the status line manager



getToolBarManager
public IToolBarManager getToolBarManager()(Code)
Returns the tool bar manager. If items are added or removed from the manager be sure to call updateActionBars. the tool bar manager



isSubMenuManagerCreated
final protected boolean isSubMenuManagerCreated()(Code)
Return whether the sub menu manager has been created yet.



isSubStatusLineManagerCreated
final protected boolean isSubStatusLineManagerCreated()(Code)
Return whether the sub status line manager has been created yet.



isSubToolBarManagerCreated
final protected boolean isSubToolBarManagerCreated()(Code)
Return whether the sub toolbar manager has been created yet.



partChanged
public void partChanged(IWorkbenchPart part)(Code)
Notification that the target part for the action bars has changed.



removePropertyChangeListener
public void removePropertyChangeListener(IPropertyChangeListener listener)(Code)
Removes the given property change listener. Has no effect if an identical listener is not registered.
Parameters:
  listener - a property change listener



setActive
protected void setActive(boolean set)(Code)
Activate / deactivate the contributions.



setGlobalActionHandler
public void setGlobalActionHandler(String actionID, IAction handler)(Code)
Add a handler for a window action.
Parameters:
  actionID - an action ID declared in the registry
Parameters:
  handler - an action which implements the action ID. nullmay be passed to deregister a handler.



setServiceLocator
final protected void setServiceLocator(IServiceLocator locator)(Code)
Sets the service locator for this action bar.
Parameters:
  locator - The new locator; must not be null.
since:
   3.2



updateActionBars
public void updateActionBars()(Code)
Commits all UI changes. This should be called after additions or subtractions have been made to a menu, status line, or toolbar.



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