gpt4 book ai didi

org.eclipse.jface.wizard.WizardSelectionPage类的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 13:43:05 25 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.jface.wizard.WizardSelectionPage类的一些代码示例,展示了WizardSelectionPage类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WizardSelectionPage类的具体详情如下:
包路径:org.eclipse.jface.wizard.WizardSelectionPage
类名称:WizardSelectionPage

WizardSelectionPage介绍

[英]An abstract implementation of a wizard page that manages a set of embedded wizards.

A wizard selection page should present a list of wizard nodes corresponding to other wizards. When the end user selects one of them from the list, the first page of the selected wizard becomes the next page. The only new methods introduced by this class are getSelectedNode and setSelectedNode. Otherwise, the subclass contract is the same as WizardPage.
[中]向导页的抽象实现,用于管理一组嵌入式向导。
向导选择页面应显示与其他向导相对应的向导节点列表。当最终用户从列表中选择其中一个向导时,所选向导的第一页将成为下一页。这个类引入的唯一新方法是getSelectedNodesetSelectedNode。否则,子类合同与WizardPage相同。

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
   * Sets or clears the currently selected wizard node within this page.
   *
   * @param node the wizard node, or <code>null</code> to clear
   */
  protected void setSelectedNode(IWizardNode node) {
    addSelectedNode(node);
    selectedNode = node;
    if (isCurrentPage()) {
      getContainer().updateButtons();
    }
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
 * Creates a new wizard selection page with the given name, and
 * with no title or image.
 *
 * @param pageName the name of the page
 */
protected WizardSelectionPage(String pageName) {
  super(pageName);
  // Cannot finish from this page
  setPageComplete(false);
}

代码示例来源:origin: org.eclipse/org.eclipse.jst.pagedesigner

public boolean canFlipToNextPage() {
    return getCurrentHandler() instanceof IWizardNode
        && super.canFlipToNextPage();
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
  public IWizardPage getNextPage() {
    ITriggerPoint triggerPoint = getWorkbench().getActivitySupport()
    .getTriggerPointManager().getTriggerPoint(triggerPointId);
    if (triggerPoint == null || WorkbenchActivityHelper.allowUseOf(triggerPoint, getSelectedNode())) {
      return super.getNextPage();
    }
    return null;
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
 * The <code>WizardSelectionPage</code> implementation of 
 * this <code>IWizardPage</code> method returns the first page 
 * of the currently selected wizard if there is one.
 */
public IWizardPage getNextPage() {
  if (selectedNode == null) {
    return null;
  }
  boolean isCreated = selectedNode.isContentCreated();
  IWizard wizard = selectedNode.getWizard();
  if (wizard == null) {
    setSelectedNode(null);
    return null;
  }
  if (!isCreated) {
    // Allow the wizard to create its pages
    wizard.addPages();
  }
  return wizard.getStartingPage();
}

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.converter

@Override
public void dispose()
{
 if (descriptorTableViewer != null)
 {
  descriptorTableViewer.removeSelectionChangedListener(this);
  descriptorTableViewer = null;
 }
 
 if (initializedWizards != null)
 {
  initializedWizards.clear();
  initializedWizards = null;
 }
 
 modeConverterWizardDefaultImageDescriptor = null;
 
 descriptor = null;
 modelConverterManager = null;
 clearCache();
 
 super.dispose();
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
public IWizard getWizard() {
  if (wizard != null)
    return wizard; // we've already created it
  IBasePluginWizard pluginWizard;
  try {
    pluginWizard = createWizard(); // create instance of target wizard
  } catch (CoreException e) {
    if (parentWizardPage instanceof BaseWizardSelectionPage)
      ((BaseWizardSelectionPage) parentWizardPage).setDescriptionText(""); //$NON-NLS-1$
    PDEPlugin.logException(e);
    parentWizardPage.setErrorMessage(PDEUIMessages.Errors_CreationError_NoWizard);
    MessageDialog.openError(parentWizardPage.getWizard().getContainer().getShell(), PDEUIMessages.Errors_CreationError, PDEUIMessages.Errors_CreationError_NoWizard);
    return null;
  }
  wizard = pluginWizard;
  //wizard.setUseContainerState(false);
  return wizard;
}

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.converter

IWizardPage wizardPage = super.getNextPage();

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

/**
 * The <code>WizardSelectionPage</code> implementation of
 * this <code>IWizardPage</code> method returns the first page
 * of the currently selected wizard if there is one.
 */
@Override
public IWizardPage getNextPage() {
  if (selectedNode == null) {
    return null;
  }
  boolean isCreated = selectedNode.isContentCreated();
  IWizard wizard = selectedNode.getWizard();
  if (wizard == null) {
    setSelectedNode(null);
    return null;
  }
  if (!isCreated) {
    // Allow the wizard to create its pages
    wizard.addPages();
  }
  return wizard.getStartingPage();
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

@Override
public void dispose() {
  PDEPlugin.getDefault().getLabelProvider().disconnect(this);
  super.dispose();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

/**
   * Sets or clears the currently selected wizard node within this page.
   *
   * @param node the wizard node, or <code>null</code> to clear
   */
  protected void setSelectedNode(IWizardNode node) {
    addSelectedNode(node);
    selectedNode = node;
    if (isCurrentPage()) {
      getContainer().updateButtons();
    }
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

/**
 * Creates a new wizard selection page with the given name, and
 * with no title or image.
 *
 * @param pageName the name of the page
 */
protected WizardSelectionPage(String pageName) {
  super(pageName);
  // Cannot finish from this page
  setPageComplete(false);
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

ITargetDefinition target = null;
    int option = getInitializationOption();
    if (fTargetDefs[option] == null) {
      fTargetDefs[option] = createTarget(option);
    } else if (option == USE_EXISTING_TARGET) {
      try {
        populateFromTemplate(fTargetDefs[option], getTargetId());
      } catch (CoreException e) {
        setErrorMessage(e.getMessage());
      }
    }
    target = fTargetDefs[option];
    if (target != null) {
      ((NewTargetDefinitionWizard2) getWizard()).setTargetDefinition(target);
      ((EditTargetNode) getSelectedNode()).setTargetDefinition(target);
      return super.getNextPage();
    }
    return null;
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
 * The <code>WizardSelectionPage</code> implementation of
 * this <code>IWizardPage</code> method returns the first page
 * of the currently selected wizard if there is one.
 */
@Override
public IWizardPage getNextPage() {
  if (selectedNode == null) {
    return null;
  }
  boolean isCreated = selectedNode.isContentCreated();
  IWizard wizard = selectedNode.getWizard();
  if (wizard == null) {
    setSelectedNode(null);
    return null;
  }
  if (!isCreated) {
    // Allow the wizard to create its pages
    wizard.addPages();
  }
  return wizard.getStartingPage();
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
   * Sets or clears the currently selected wizard node within this page. 
   * 
   * @param node the wizard node, or <code>null</code> to clear
   */
  protected void setSelectedNode(IWizardNode node) {
    addSelectedNode(node);
    selectedNode = node;
    if (isCurrentPage()) {
      getContainer().updateButtons();
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
 * Creates a new wizard selection page with the given name, and
 * with no title or image.
 *
 * @param pageName the name of the page
 */
protected WizardSelectionPage(String pageName) {
  super(pageName);
  // Cannot finish from this page
  setPageComplete(false);
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com