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]);
}