use of org.eclipse.ui.part.MessagePage in project eclipse.platform.text by eclipse.
the class TemplatesView method createDefaultPage.
@Override
protected IPage createDefaultPage(PageBook book) {
MessagePage page = new MessagePage();
initPage(page);
page.createControl(book);
page.setMessage(TemplatesMessages.TemplatesView_no_templates);
return page;
}
use of org.eclipse.ui.part.MessagePage in project jbosstools-hibernate by jbosstools.
the class QueryParametersView method createDefaultPage.
protected IPage createDefaultPage(PageBook book) {
MessagePage page = new MessagePage();
initPage(page);
page.createControl(book);
page.setMessage(HibernateConsoleMessages.QueryParametersView_no_hql_editor_open);
return page;
}
use of org.eclipse.ui.part.MessagePage in project egit by eclipse.
the class MultiPageEditorContentOutlinePage method createControl.
@Override
public void createControl(Composite parent) {
book = new PageBook(parent, SWT.NONE);
emptyPage = new MessagePage();
emptyPage.createControl(book);
emptyPage.setMessage(UIText.MultiPageEditorContentOutlinePage_NoOutline);
Object activePage = editorPart.getSelectedPage();
if (activePage instanceof IEditorPart) {
showPage(createOutlinePage((IEditorPart) activePage));
} else {
currentPage = emptyPage;
book.showPage(emptyPage.getControl());
}
pageListener = (event) -> {
Object newPage = event.getSelectedPage();
if (!(newPage instanceof IEditorPart)) {
showPage(emptyPage);
return;
}
IPage newOutlinePage = pages.get(newPage);
if (newOutlinePage == null) {
newOutlinePage = createOutlinePage((IEditorPart) newPage);
}
showPage(newOutlinePage);
};
editorPart.addPageChangedListener(pageListener);
}
use of org.eclipse.ui.part.MessagePage in project tesb-studio-se by Talend.
the class SpringConfigurationView method createDefaultPage.
@Override
protected IPage createDefaultPage(PageBook book) {
MessagePage page = new MessagePage();
initPage(page);
page.createControl(book);
// $NON-NLS-1$
page.setMessage(CamelDesignerMessages.getString("SpringConfigurationView_defaultMessage"));
return page;
}
use of org.eclipse.ui.part.MessagePage in project pmd-eclipse-plugin by pmd.
the class AbstractPMDPagebookView method createDefaultPage.
/*
* @see
* org.eclipse.ui.part.PageBookView#createDefaultPage(org.eclipse.ui.part.
* PageBook)
*/
protected IPage createDefaultPage(PageBook book) {
// builds a message page showing a text
MessagePage page = new MessagePage();
initPage(page);
page.createControl(book);
page.setMessage(getString(pageMessageId()));
return page;
}
Aggregations