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());