Class AbstractDtImportWizard

  • All Implemented Interfaces:
    org.eclipse.jface.window.IShellProvider, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.IImportWizard, org.eclipse.ui.IWorkbenchWizard

    public abstract class AbstractDtImportWizard
    extends org.eclipse.jface.wizard.Wizard
    implements org.eclipse.ui.IImportWizard
    An abstract base implementation of one page 1C:Enterprise Development Tools import wizard.

    Subclasses must overide getImportWizardPage() method for determine import wizard main page.

    • Field Summary

      • Fields inherited from class org.eclipse.jface.wizard.Wizard

        DEFAULT_IMAGE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractDtImportWizard()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addPages()  
      protected abstract IImportWizardPage getImportWizardPage()
      Get instance of wizard main page
      protected IV8Project getV8ProjectBySelection​(IStructuredSelection selection)
      Try to determine current IV8Project by given selection object
      boolean performFinish()  
      • Methods inherited from class org.eclipse.jface.wizard.Wizard

        addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
      • Methods inherited from interface org.eclipse.jface.wizard.IWizard

        canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
      • Methods inherited from interface org.eclipse.ui.IWorkbenchWizard

        init
    • Constructor Detail

      • AbstractDtImportWizard

        protected AbstractDtImportWizard()
        Default constructor.
    • Method Detail

      • addPages

        public final void addPages()
        Specified by:
        addPages in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        addPages in class org.eclipse.jface.wizard.Wizard
      • performFinish

        public boolean performFinish()
        Specified by:
        performFinish in interface org.eclipse.jface.wizard.IWizard
        Specified by:
        performFinish in class org.eclipse.jface.wizard.Wizard
      • getImportWizardPage

        protected abstract IImportWizardPage getImportWizardPage()
        Get instance of wizard main page
        Returns:
        instance of IImportWizardPage, cannot be null
      • getV8ProjectBySelection

        protected IV8Project getV8ProjectBySelection​(IStructuredSelection selection)
        Try to determine current IV8Project by given selection object

        If given selection contain many elements, this method return the first successfully received project

        Parameters:
        selection - the current selection object for determine current project.
        Returns:
        current IV8Project or null if no projects can be determined by specified selection