
150 IBM Workplace Managed Client 2.6 on Linux
{
mAction = action;
run();
}
//... Rest of the methods omitted...
}
Example 5-9 Partial Implementation of the ActionTaskSave class
class ActionTaskSave extends GenericAction {
public ActionTaskSave() {
super();
setText("Save");
setToolTipText("Save");
setImageDescriptor(DetailPlugin
.getImageDescriptor("/icons/new.gif"));
}
public void run() {
//...view.notifyListeners(getTaskDetails());
}
}
We can add New and Delete menu items in a similar fashion.
5.7.2 Adding to the Workplace Managed Client action bars
We now add an action bar to the List View. It will contain two actions: New and
Delete. Perform the following ...