Examples of IWizardPage


Examples of org.eclipse.jface.wizard.IWizardPage

    public void setMessage( String newMessage, int newType ) {
        super.setMessage(newMessage, newType);

        // wizard pages are decorated by a connection page, so the default
        // implementation of this method will not do anything
        IWizardPage page = getContainer().getCurrentPage();
        if (page != this && page instanceof WizardPage) {
            ((WizardPage) page).setMessage(newMessage, newType);
        } else {
            CatalogUIPlugin.log("A WizardPage was expected but instead was a " //$NON-NLS-1$
                    + page.getClass().getName(), new Exception());
        }
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

    public void setErrorMessage( String newMessage ) {
        super.setErrorMessage(newMessage);

        // wizard pages are decorated by a connection page, so the default
        // implementation of this method will not do anything
        IWizardPage page = getContainer().getCurrentPage();
        if (page != this && page instanceof WizardPage) {
            ((WizardPage) page).setErrorMessage(newMessage);
        } else {
            CatalogUIPlugin.log("A WizardPage was expected but instead was a " //$NON-NLS-1$
                    + page.getClass().getName(), new Exception());
        }
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

            Workflow pipe = getWizard().getWorkflow();
            pipe.run(new SubProgressMonitor(monitor, ticks));
            final boolean[] result = new boolean[]{true};
            if (!pipe.isFinished()) {
                // show the page corresponding to the current state
                final IWizardPage page = getWizard().getPage(pipe.getCurrentState());
                if (page != null) {
                    // ensure the page has a state if it is a DataPipelinePage
                    if (page instanceof WorkflowWizardPage) {
                        WorkflowWizardPage dpPage = (WorkflowWizardPage) page;
                        if (dpPage.getState() == null)
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

     * @param workflowWizardAdapter the adapter that interfaces with the other wizard.
     * @param previousPage the page that is previous to this page
     */
    void setAdapter(final WorkflowWizardAdapter workflowWizardAdapter, IWizardPage previousPage ) {
        this.workflowWizardAdapter = workflowWizardAdapter;
        IWizardPage startingPage = getWizard().getStartingPage();
        startingPage.setPreviousPage(previousPage);
        updateButtons();
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

     *
     * @see org.eclipse.jface.wizard.IWizard#canFinish()
     */
    public boolean canFinish() {
        // check if current page is complete
        IWizardPage page = getContainer().getCurrentPage();
        if (!page.isPageComplete())
            return false;

        // first as the page if it has more pages
        if (page.canFlipToNextPage()) {
            return false;
        }

        // find out if there is another primary page
        return getNextPrimaryPage(page) == null;
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

        return super.getControl();
    }
       
    public void setPreviousPage( IWizardPage page ) {
        super.setPreviousPage(page);
        IWizardPage previousPage = page;
        if (page instanceof ConnectionPageDecorator) {
            previousPage = ((ConnectionPageDecorator) page).page;
        }
        this.page.setPreviousPage(previousPage);
    }
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

  public void testRunHeadless() {
    s3.run = false;
    Assertion a1 = new Assertion() {
      @Override
      public void run() {
        IWizardPage page = dialog.getCurrentPage();
        fail = !"three".equals(page.getName()); //$NON-NLS-1$
      }
    };
   
    DialogDriver driver = new DialogDriver(dialog,new Object[]{a1, IDialogConstants.CANCEL_ID});
    driver.schedule();
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

            }
        }

        viewer.addDoubleClickListener(new IDoubleClickListener() {
            public void doubleClick(DoubleClickEvent event) {
                IWizardPage next = getNextPage();
                getWizard().getContainer().showPage(next);
            }
        });
       
        viewer.addSelectionChangedListener(this);
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

        super();
    }
   
    @Override
    public boolean canFinish() {
        IWizardPage page = getContainer().getCurrentPage();
        if(page instanceof ExternalCatalogueImportPage) {
            return true;
        }
        if(page instanceof BrowserSelectionPage) {
            return ((BrowserSelectionPage)page).canFinish();
View Full Code Here

Examples of org.eclipse.jface.wizard.IWizardPage

//        setDefaultPageImageDescriptor( Images.getDescriptor( ImageConstants.DATA_WIZBAN ));
    }

    @Override
    public boolean performFinish() {
        IWizardPage ipage = getContainer().getCurrentPage();
        String name = null;
        URL url = null;
        //String viewName = null;
        ImageDescriptor image = null;
        LocationListener listen = null;
        if(ipage instanceof BrowserSelectionPage) {
            BrowserSelectionPage page = (BrowserSelectionPage)ipage;
            listen = page.getListener();
            url = page.getUrl();
            image = page.getIconDescriptor();
            name = page.getTitle();
            //viewName = page.getViewName();
        } else {
            ExternalCatalogueImportPage page = (ExternalCatalogueImportPage)ipage;
               
            //if import page returns a new page, then an error occured
            IWizardPage next = page.getNextPage();
            if (next != null) {
                //error,
                getContainer().showPage(next);
                return false;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.