IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.presentation.services.decorator
Class CreateDecoratorsOperation

java.lang.Object
  extended bycom.ibm.xtools.presentation.services.decorator.CreateDecoratorsOperation
All Implemented Interfaces:
IOperation

public final class CreateDecoratorsOperation
extends Object
implements IOperation

The operation used with the Decoration Service. The CreateDecoratorsOperation is instantiated with an IDecoratorTarget. The decorator target is the object that is to be decorated with an image or figure.


Constructor Summary
CreateDecoratorsOperation(IDecoratorTarget decoratorTarget)
          Constructor for CreateDecoratorsOperation.
 
Method Summary
 Object execute(IProvider provider)
          Executes this operation on the specified provider.
 IDecoratorTarget getDecoratorTarget()
          Returns the object to be decorated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateDecoratorsOperation

public CreateDecoratorsOperation(IDecoratorTarget decoratorTarget)
Constructor for CreateDecoratorsOperation.

Parameters:
decoratorTarget - the object to be decorated
Method Detail

execute

public Object execute(IProvider provider)
Description copied from interface: IOperation
Executes this operation on the specified provider.

Service implementers generally implement this method by first casting the provider to their service specific IProvider-derived class and then by delegating it the execution. Delegation is accomplished through the service specific provider derived class API.

Specified by:
execute in interface IOperation
Parameters:
provider - The provider on which to execute the operation.
Returns:
The result of executing this operation.
See Also:
IOperation.execute(IProvider)

getDecoratorTarget

public final IDecoratorTarget getDecoratorTarget()
Returns the object to be decorated.

Returns:
the decorator target

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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