This exercise takes you through the steps to add a decorator,
or image overlay, to the CARMA members shown in the CARMA
Repositories view.
You will add a lock decorator to display on members when
they are locked and a question mark decorator to display on members
when members need their metadata synchronized.
Note: The sample RAMs
that come with Rational® Developer
for System z® do not support
the Lock function. You will want to use this
exercise with a RAM that supports the Lock functionality.
Learning objectives
After completing
the lessons in this exercise, you will be able to:
- Create a Rational Developer
for System z Plugin Project
- Import graphics to the plugin project
- Modify the Java Activator class,
so the plugin is able to find the necessary graphics
- Create a Java Decorator class
and write code to display the appropriate graphic
- Modify the plugin.xml file to provide the org.eclipse.ui.decorators extension
point
- Run and debug the sample plugin
Time required
This exercise will take
approximately 30 minutes to complete.
Prerequisites
To successfully complete
the lessons in this exercise, you should have:
- Created an Eclipse plugin project
- An accessible directory containing a graphic of a lock and a question
mark, or other representative graphics, with dimensions of approximately
11 x 13 pixels