TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.drivers.ui.internal
Class ViewerRegistry

java.lang.Object
  extended by org.eclipse.tptp.platform.report.drivers.ui.internal.ViewerRegistry
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.internal.SWTEventListener, IDObject, IDRegistry

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class ViewerRegistry
extends java.lang.Object
implements IDRegistry, org.eclipse.swt.events.DisposeListener

A ViewerRegistry is a registry collecting SWTViewer objects and their name. A ViewerRegistry stores only one instance of SWTViewer if two SWTViewers are equals. Before to store a new SWTViewer the registry checks if the SWTViewer doesn't exist in the registry by calling the method contains.

See Also:
SWTViewer, contains(org.eclipse.tptp.platform.report.drivers.ui.internal.SWTViewer)

Field Summary
static Signal sgn_putViewer
          Deprecated. This signal is emitted each time a new viewer is added to this registry.
static Signal sgn_removeViewer
          Deprecated. This signal is emitted each time a viewer is removed to this registry.
 
Constructor Summary
ViewerRegistry()
          Deprecated. Creates an empty ViewerRegistry.
 
Method Summary
 void clear()
          Deprecated. Clears the registry
 boolean contains(java.lang.String name)
          Deprecated. Returns true if the viewer name is already stored in the registry.
 boolean contains(SWTViewer v)
          Deprecated. Returns true if the SWTViewer is already stored in the registry.
 SWTViewer getViewer(java.lang.String name)
          Deprecated. Returns the registered viewer named name
 java.util.Iterator iterator()
          Deprecated. Returns an iterator to access to all colors.
 boolean putViewer(java.lang.String key, SWTViewer v)
          Deprecated. Put the color in the registry only if color isn't already stored.
 void removeViewer(java.lang.String name)
          Deprecated. Remove the color if stored in registry.
 void updateViewer(SWTViewer viewer)
          Deprecated. Update the viewer
 void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sgn_putViewer

public static final Signal sgn_putViewer
Deprecated. 
This signal is emitted each time a new viewer is added to this registry.


sgn_removeViewer

public static final Signal sgn_removeViewer
Deprecated. 
This signal is emitted each time a viewer is removed to this registry.

Constructor Detail

ViewerRegistry

public ViewerRegistry()
Deprecated. 
Creates an empty ViewerRegistry.

Method Detail

clear

public void clear()
Deprecated. 
Clears the registry

Specified by:
clear in interface IDRegistry

iterator

public java.util.Iterator iterator()
Deprecated. 
Returns an iterator to access to all colors.

Specified by:
iterator in interface IDRegistry

contains

public boolean contains(SWTViewer v)
Deprecated. 
Returns true if the SWTViewer is already stored in the registry.


contains

public boolean contains(java.lang.String name)
Deprecated. 
Returns true if the viewer name is already stored in the registry.


removeViewer

public void removeViewer(java.lang.String name)
Deprecated. 
Remove the color if stored in registry.


updateViewer

public void updateViewer(SWTViewer viewer)
Deprecated. 
Update the viewer

Parameters:
viewer - updated viewer

putViewer

public boolean putViewer(java.lang.String key,
                         SWTViewer v)
Deprecated. 
Put the color in the registry only if color isn't already stored.


getViewer

public SWTViewer getViewer(java.lang.String name)
Deprecated. 
Returns the registered viewer named name

Parameters:
name - name of the researched viewer
Returns:
the viewer

widgetDisposed

public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
Deprecated. 
Specified by:
widgetDisposed in interface org.eclipse.swt.events.DisposeListener

TPTP 4.5.0 Platform Project
Internal API Specification