* Adds the control to the display area that allows the
*/
private void addHelpTextControl() {
createLabel(HELP_LABEL);
helpTextArea = new Text(displayArea, SWT.MULTI | SWT.BORDER | SWT.WRAP);
context.getHandler().addControl(new TextActionable(helpTextArea));
helpTextArea.setLayoutData(new GridData(GridData.FILL_BOTH));
GridData gridData = new GridData(GridData.FILL_BOTH);
gridData.widthHint = HELP_WIDTH;
helpTextArea.setLayoutData(gridData);
helpTextAreaListener = new ModifyListener() {
// javadoc inherited
public void modifyText(ModifyEvent event) {
updateHelpProperty();
}
};
helpTextArea.addModifyListener(helpTextAreaListener);
// Associate an actionable handler with the control to provide
// cut, copy, paste and delete actions.
context.getHandler().addControl(new TextActionable(helpTextArea));
}