public Object execute(ExecutionEvent event) throws ExecutionException {
IEditorPart editorPart = Plugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
if (editorPart != null && editorPart instanceof AbstractWGATextEditor) {
AbstractWGATextEditor editor = (AbstractWGATextEditor) editorPart;
InformationPresenter presenter=
new InformationPresenter(new HTMLInformationControlCreator(500,250));
presenter.setDocumentPartitioning(editor.getViewerConfiguration().getConfiguredDocumentPartitioning(editor.getViewer()));
IInformationProvider provider= new TMLInformationProvider();
String[] contentTypes = editor.getViewerConfiguration().getConfiguredContentTypes(editor.getViewer());
for (int i= 0; i < contentTypes.length; i++) {
presenter.setInformationProvider(provider, contentTypes[i]);
}
presenter.install(editor.getViewer());
presenter.showInformation();
}
return null;
}