Examples of ImporterInfo


Examples of net.sf.myway.edit.importer.ImporterInfo

   * @see org.eclipse.jface.wizard.WizardPage#getNextPage()
   */
  @Override
  public IWizardPage getNextPage() {
    IStructuredSelection sel = (IStructuredSelection) _importerList.getSelection();
    ImporterInfo seletedImporter = (ImporterInfo) sel.getFirstElement();
    if (seletedImporter == null)
      return null;
    List<WizardPage> pages = seletedImporter.getPages();
    return pages.size() == 0 ? null : pages.get(0);
  }
View Full Code Here

Examples of net.sf.myway.edit.importer.ImporterInfo

   */
  @Override
  public boolean canFinish() {
    if (_mainPage.isPageComplete())
      return false;
    final ImporterInfo selectedImporter = _mainPage.getSelectedImporter();
    if (selectedImporter == null)
      return false;
    for (final WizardPage p : selectedImporter.getPages())
      if (!p.isPageComplete())
        return false;
    return true;
  }
View Full Code Here

Examples of net.sf.myway.edit.importer.ImporterInfo

    for (final IExtension ext : extensions) {
      final IConfigurationElement[] elements = ext.getConfigurationElements();
      for (final IConfigurationElement ce : elements) {
        final MapDataImporter mdi = (MapDataImporter) ce.createExecutableExtension("class"); //$NON-NLS-1$
        final String name = ce.getAttribute("name"); //$NON-NLS-1$
        r.add(new ImporterInfo(name, mdi));
      }
    }
    return r;
  }
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.