IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.presentation.services.decorator
Interface IDecorator


public interface IDecorator

Clients providing an extension to the DecoratorService need to create a decorator class that implements the IDecorator interface. This is the interface that a decorator must implement. A decorator is installed on a decorator target to which it will add decoration figures.

See Also:
IDecoratorProvider

Method Summary
 void activate()
          Activates this decorator.
 void deactivate()
          Deactivates this decorator, the inverse of activate().
 void refresh()
          Refreshes the decorations.
 

Method Detail

activate

public void activate()
Activates this decorator. The decorator might need to hook listeners. These listeners should be unhooked in deactivate().

See Also:
deactivate()

deactivate

public void deactivate()
Deactivates this decorator, the inverse of activate(). Deactivate is called when the host decorator target is deactivated. Deactivate unhooks any listeners, and removes decoration figures that have been added.

See Also:
activate()

refresh

public void refresh()
Refreshes the decorations. This is called when the host decorator target is refreshed.


IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.