org.eclipse.ui.part.MessagePage Java Examples
The following examples show how to use
org.eclipse.ui.part.MessagePage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ResourceUtils.java From LogViewer with Eclipse Public License 2.0 | 6 votes |
public static ITextViewer getViewer(IPage page) { if(page == null){ return null; } if(page instanceof TextConsolePage) { return ((TextConsolePage)page).getViewer(); } if(page.getClass().equals(MessagePage.class)){ // empty page placeholder return null; } try { /* * org.eclipse.cdt.internal.ui.buildconsole.BuildConsolePage does not * extend TextConsolePage, so we get access to the viewer with dirty tricks */ Method method = page.getClass().getDeclaredMethod("getViewer", (Class<?>[])null); method.setAccessible(true); return (ITextViewer) method.invoke(page, (Object[])null); } catch (Exception e) { // AnyEditToolsPlugin.logError("Can't get page viewer from the console page", e); } return null; }
Example #2
Source File: SpringConfigurationView.java From tesb-studio-se with Apache License 2.0 | 5 votes |
@Override protected IPage createDefaultPage(PageBook book) { MessagePage page = new MessagePage(); initPage(page); page.createControl(book); page.setMessage(CamelDesignerMessages.getString("SpringConfigurationView_defaultMessage")); //$NON-NLS-1$ return page; }
Example #3
Source File: LibraryExplorerView.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Creates and returns the default page for this view. * * @param book * the pagebook control * @return the default page */ protected IPage createDefaultPage( PageBook book ) { MessagePage page = new MessagePage( ); initPage( page ); page.createControl( book ); page.setMessage( defaultText ); return page; }
Example #4
Source File: DataView.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Creates and returns the default page for this view. * * @param book * the pagebook control * @return the default page */ protected IPage createDefaultPage( PageBook book ) { MessagePage page = new MessagePage( ); initPage( page ); page.createControl( book ); page.setMessage( defaultText ); return page; }
Example #5
Source File: AttributeView.java From birt with Eclipse Public License 1.0 | 5 votes |
protected IPage createDefaultPage( PageBook book ) { MessagePage page = new MessagePage( ); initPage( page ); page.createControl( book ); page.setMessage( defaultText ); if ( defaultPartName == null ) { defaultPartName = getPartName( ); } return page; }
Example #6
Source File: CasEditorView.java From uima-uimaj with Apache License 2.0 | 5 votes |
@Override protected IPage createDefaultPage(PageBook book) { MessagePage page = new MessagePage(); initPage(page); page.createControl(book); page.setMessage(editorNotAvailableMessage); return page; }
Example #7
Source File: AnnotationEditorView.java From uima-uimaj with Apache License 2.0 | 5 votes |
@Override protected IPage createDefaultPage(PageBook book) { MessagePage page = new MessagePage(); initPage(page); page.createControl(book); page.setMessage(editorNotAvailableMessage); return page; }