BTT Rich Client Activities
Identifier:
com.ibm.btt.rcp.activities
Since:
BTT 6.1
Description:
This extension point is
used to extend activities. User can create activities based on existing activity
or make a new one. Activity is a unit for user to easily launch a specified
operation, such as launching transaction panels, logging journals, and so on. It
can also be global unique or not.
Configuration Markup:
<!ELEMENT extension (activity+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT activity EMPTY>
<!ATTLIST activity
id CDATA
#REQUIRED
class CDATA
#REQUIRED
name CDATA #IMPLIED
parameter CDATA #IMPLIED
description CDATA #IMPLIED
unique (true |
false) >
- id - The unique identifier for this activity.
- class - The implementation class for this activity.
- name - The name of this activity. If this activity is used to
launch a transaction view, then this name is displayed as the title of this
view.
- parameter - A string parameter can be passed to this activity. If
this activity is used to launch a transaction view, then this parameter
specifies the class name of transaction composite.
- description - The description of this activity.
- unique - Indicates whether this activity is unique during its life
cycle. For example, if this activity is used to launch a transaction view and
if the value of this parameter is set to ¡°true¡±, then this view is unique in
the perspective, otherwise, this view can be opened many times and many
instances.
Examples:
Following is an example:
<extension
point=
"com.ibm.btt.rcp.activity.activities"
>
<activity
class=
"com.ibm.btt.rcp.sample.activity.LoginActivity"
id=
"com.ibm.btt.rcp.sample.activity.LoginActivity"
name=
"Login"
unique=
"true"
/>
</extension>
API Information:
- run(): you can specify what to do when you launch this
activity.
- dispose(): you can specify what should be disposed when you
close this activity.
Supplied Implementation:
BTT provides
an abstract class: com.ibm.btt.rcp.activity.core.Activity for you
to extend. You only need to implement two methods, these are run()
and dispose().
Licensed Materials - Property of IBM Restricted
Materials of IBM 5724-H82 (C) Copyright IBM Corp. 2007, 2008 All Rights
Reserved. US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.