Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.MessagePage


    this.editorNotAvailableMessage = editorNotAvailableMessage;
  }

  @Override
  protected IPage createDefaultPage(PageBook book) {
    MessagePage page = new MessagePage();
    initPage(page);
    page.createControl(book);
    page.setMessage(editorNotAvailableMessage);
    return page;
  }
View Full Code Here


  public TestPageBookView() {
  }

  @Override
  protected IPage createDefaultPage(PageBook book) {
    MessagePage messagePage = new MessagePage();
    initPage(messagePage);
    messagePage.setMessage("This view is not available");
    messagePage.createControl(book);
    return messagePage;
  }
View Full Code Here

    return false;
  }
 
  @Override
  protected IPage createDefaultPage(PageBook book) {
    MessagePage page = new MessagePage();
    initPage(page);
    page.createControl(book);
    page.setMessage(editorNotAvailableMessage);
    return page;
  }
View Full Code Here

        this.pageSite = new PageSite( site );
    }
   
    public void createPartControl( Composite parent ) {
        book = new PageBook( parent, SWT.NONE );
        messagePage = new MessagePage();
        messagePage.setMessage("Please select a feature with the edit geometry tool");
        messagePage.init( pageSite );
        messagePage.createControl(book);
       
        featurePage = new FeaturePanelPage(this);
View Full Code Here

        return selectedLayer.getSchema();
    }

    @Override
    protected IPage createDefaultPage(PageBook book) {
        MessagePage page = new MessagePage();
        page.setMessage("Default Page");

        initPage((IPageBookViewPage) page);
        page.createControl(getPageBook());

        return page;
    }
View Full Code Here

    @Override
    protected PageRec doCreatePage(IWorkbenchPart part) {
        IMap map = (IMap) part.getAdapter(IMap.class);
        if (map == null) {
            MessagePage page = new MessagePage();
            page.setMessage("Please select a Map");
            initPage(page);
            page.createControl(getPageBook());

            PageRec rec = new PageRec(part, page);
            return rec;
        }
        setContributor(part);
        IPage page = (IPage) new FeaturePanelPage(this);
        initPage((IPageBookViewPage) page);
        page.createControl(getPageBook());
        return new PageRec(part, page);
    }
View Full Code Here

        PageRecord record = pages.get(selected);
        if( record == null ){
            // record has not been created yet
            IPageBookViewPage page = selected.createPage();
            if( page == null ){
                MessagePage messagePage = new MessagePage();
               
                record = new PageRecord( this, messagePage);
               
                messagePage.init( record.getSite() );
               
                messagePage.createControl( pagebook );
                messagePage.setMessage( selected.getName() );
            }
            else {
                record = new PageRecord( this, page );   
                try {
                    page.init( record.getSite() );
View Full Code Here

    /* (non-Javadoc)
     * Method declared on PageBookView.
     */
    protected IPage createDefaultPage(PageBook book) {
        MessagePage page = new MessagePage();
        initPage(page);
        page.createControl(book);
        page.setMessage("No components available!");
        return page;
    }
View Full Code Here

/**
* A view providing a summary of a selected resource
*/
public class StyleRuleView extends PageBookView {
    protected IPage createDefaultPage(PageBook pageBook) {
        MessagePage page = new MessagePage();
        initPage(page);
        page.createControl(pageBook);
        page.setMessage(EditorMessages.getString("StyleRuleViewPage.noDeviceTheme"));
        return page;
    }
View Full Code Here

    public FormatAttributesView() {
    }

    // javadoc inherited
    protected IPage createDefaultPage(PageBook book) {
        MessagePage page = new MessagePage();
        initPage(page);
        page.createControl(book);
        page.setMessage(DEFAULT_TEXT);
        return page;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.part.MessagePage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.