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


org.eclipse.ui.internal.decorators.DecoratorManager

DecoratorManager
public class DecoratorManager extends LabelDecorator implements IDelayedLabelDecorator,ILabelProviderListener,IDecoratorManager,IFontDecorator,IColorDecorator,IExtensionChangeHandler(Code)
The DecoratorManager is the class that handles all of the decorators defined in the image.
since:
   2.0


Field Summary
final public static  ObjectFAMILY_DECORATE
     The family for the decorate job.

Constructor Summary
public  DecoratorManager()
     Create a new instance of the receiver and load the settings from the installed plug-ins.

Method Summary
public  voidaddDecorator(DecoratorDefinition definition)
    
public  voidaddExtension(IExtensionTracker tracker, IExtension addedExtension)
    
public  voidaddListener(ILabelProviderListener listener)
     Add the listener to the list of listeners.
public  voidapplyDecoratorsPreference()
     Get the currently enabled decorators in preference store and set the state of the current definitions accordingly.
public  voidclearCaches()
     Clear the caches in the manager.
public  ColordecorateBackground(Object element)
    
public  FontdecorateFont(Object element)
    
public  ColordecorateForeground(Object element)
    
public  ImagedecorateImage(Image image, Object element, IDecorationContext context)
    
public  ImagedecorateImage(Image image, Object element)
    
public  StringdecorateText(String text, Object element, IDecorationContext context)
    
public  StringdecorateText(String text, Object element)
    
public  voiddispose()
    
 voidfireListener(LabelProviderChangedEvent event, ILabelProviderListener listener)
     Inform all of the listeners that require an update
Parameters:
  listener - The listener we are updating.
 voidfireListeners(LabelProviderChangedEvent event)
    
 voidfireListenersInUIThread(LabelProviderChangedEvent event)
     Fire any listeners from the UIThread.
public  DecoratorDefinition[]getAllDecoratorDefinitions()
     Get the DecoratorDefinitions defined on the receiver.
public  IBaseLabelProvidergetBaseLabelProvider(String decoratorId)
    
static  CollectiongetDecoratorsFor(Object element, DecoratorDefinition[] enabledDefinitions)
     See if the supplied decorator cache has a value for the element.
public  booleangetEnabled(String decoratorId)
    
public  ILabelDecoratorgetLabelDecorator()
    
public  ILabelDecoratorgetLabelDecorator(String decoratorId)
    
public  ILightweightLabelDecoratorgetLightweightLabelDecorator(String decoratorId)
    
public  LightweightDecoratorManagergetLightweightManager()
     Returns the lightweightManager.
 ILabelProviderListener[]getListeners()
     Get the list of elements listening to the receiver.
public  booleanisLabelProperty(Object element, String property)
     Return whether or not the decorator registered for element has a label property called property name.
public  booleanisLabelProperty(Object element, String property, boolean checkAdapted)
     Return whether or not the decorator registered for element has a label property called property name.
public  voidlabelProviderChanged(LabelProviderChangedEvent event)
    
public  booleanprepareDecoration(Object element, String originalText, IDecorationContext context)
    
public  booleanprepareDecoration(Object element, String originalText)
    
public  voidremoveExtension(IExtension source, Object[] objects)
    
public  voidremoveListener(ILabelProviderListener listener)
     Remove the listener from the list.
public  voidsetEnabled(String decoratorId, boolean enabled)
    
public  voidshutdown()
     Shutdown the decorator manager by disabling all of the decorators so that dispose() will be called on them.
public  voidupdate(String decoratorId)
    
public  voidupdateForEnablementChange()
     Enablement had changed.

Field Detail
FAMILY_DECORATE
final public static Object FAMILY_DECORATE(Code)
The family for the decorate job.




Constructor Detail
DecoratorManager
public DecoratorManager()(Code)
Create a new instance of the receiver and load the settings from the installed plug-ins.




Method Detail
addDecorator
public void addDecorator(DecoratorDefinition definition)(Code)
For dynamic UI
Parameters:
  definition - the definition to add
since:
   3.0



addExtension
public void addExtension(IExtensionTracker tracker, IExtension addedExtension)(Code)



addListener
public void addListener(ILabelProviderListener listener)(Code)
Add the listener to the list of listeners.



applyDecoratorsPreference
public void applyDecoratorsPreference()(Code)
Get the currently enabled decorators in preference store and set the state of the current definitions accordingly.



clearCaches
public void clearCaches()(Code)
Clear the caches in the manager. This is required to avoid updates that may occur due to changes in enablement.



decorateBackground
public Color decorateBackground(Object element)(Code)



decorateFont
public Font decorateFont(Object element)(Code)



decorateForeground
public Color decorateForeground(Object element)(Code)



decorateImage
public Image decorateImage(Image image, Object element, IDecorationContext context)(Code)



decorateImage
public Image decorateImage(Image image, Object element)(Code)



decorateText
public String decorateText(String text, Object element, IDecorationContext context)(Code)



decorateText
public String decorateText(String text, Object element)(Code)



dispose
public void dispose()(Code)



fireListener
void fireListener(LabelProviderChangedEvent event, ILabelProviderListener listener)(Code)
Inform all of the listeners that require an update
Parameters:
  listener - The listener we are updating.
Parameters:
  event - the event with the update details



fireListeners
void fireListeners(LabelProviderChangedEvent event)(Code)
Inform all of the listeners that require an update
Parameters:
  event - the event with the update details



fireListenersInUIThread
void fireListenersInUIThread(LabelProviderChangedEvent event)(Code)
Fire any listeners from the UIThread. Used for cases where this may be invoked outside of the UI by the public API.
Parameters:
  event - the event with the update details



getAllDecoratorDefinitions
public DecoratorDefinition[] getAllDecoratorDefinitions()(Code)
Get the DecoratorDefinitions defined on the receiver. DecoratorDefinition[]



getBaseLabelProvider
public IBaseLabelProvider getBaseLabelProvider(String decoratorId)(Code)



getDecoratorsFor
static Collection getDecoratorsFor(Object element, DecoratorDefinition[] enabledDefinitions)(Code)
See if the supplied decorator cache has a value for the element. If not calculate it from the enabledDefinitions and update the cache. Collection of DecoratorDefinition.
Parameters:
  element - The element being tested.
Parameters:
  enabledDefinitions - The definitions currently defined for this decorator.



getEnabled
public boolean getEnabled(String decoratorId)(Code)



getLabelDecorator
public ILabelDecorator getLabelDecorator()(Code)

See Also:   IDecoratorManager.getLabelDecorator



getLabelDecorator
public ILabelDecorator getLabelDecorator(String decoratorId)(Code)



getLightweightLabelDecorator
public ILightweightLabelDecorator getLightweightLabelDecorator(String decoratorId)(Code)



getLightweightManager
public LightweightDecoratorManager getLightweightManager()(Code)
Returns the lightweightManager. This method is public for use by test cases. No other classes outside of this package should use this method. LightweightDecoratorManager



getListeners
ILabelProviderListener[] getListeners()(Code)
Get the list of elements listening to the receiver. ILabelProviderListener []



isLabelProperty
public boolean isLabelProperty(Object element, String property)(Code)
Return whether or not the decorator registered for element has a label property called property name.



isLabelProperty
public boolean isLabelProperty(Object element, String property, boolean checkAdapted)(Code)
Return whether or not the decorator registered for element has a label property called property name. Check for an adapted resource if checkAdapted is true.
Parameters:
  element -
Parameters:
  property -
Parameters:
  checkAdapted - boolean true if there is a label propertyfor element or its adapted value



labelProviderChanged
public void labelProviderChanged(LabelProviderChangedEvent event)(Code)



prepareDecoration
public boolean prepareDecoration(Object element, String originalText, IDecorationContext context)(Code)



prepareDecoration
public boolean prepareDecoration(Object element, String originalText)(Code)



removeExtension
public void removeExtension(IExtension source, Object[] objects)(Code)



removeListener
public void removeListener(ILabelProviderListener listener)(Code)
Remove the listener from the list.



setEnabled
public void setEnabled(String decoratorId, boolean enabled)(Code)

See Also:   IDecoratorManager.setEnabled(Stringboolean)



shutdown
public void shutdown()(Code)
Shutdown the decorator manager by disabling all of the decorators so that dispose() will be called on them.



update
public void update(String decoratorId)(Code)

See Also:   org.eclipse.ui.IDecoratorManager.update(java.lang.String)



updateForEnablementChange
public void updateForEnablementChange()(Code)
Enablement had changed. Fire the listeners and write the preference.



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