SpellcheckableMessageArea textContent = new SpellcheckableMessageArea(
messageArea, message, true, toolkit.getBorderStyle()) {
@Override
protected IAdaptable getDefaultTarget() {
return new PlatformObject() {
public Object getAdapter(Class adapter) {
return Platform.getAdapterManager().getAdapter(
getEditorInput(), adapter);
}
};