Package org.openbp.cockpit.generator

Examples of org.openbp.cockpit.generator.Generator


      }

      // Select the tree node corresponding to the currently selected generator
      GeneratorNode currentNode = null;
      GeneratorContext context = getContext();
      Generator generator = context.getSelectedGenerator();
      if (generator != null)
      {
        currentNode = findNode(rootNode, generator);
      }
View Full Code Here


   */
  public void valueChanged(TreeSelectionEvent e)
  {
    GeneratorContext context = getContext();

    Generator generator = null;

    // Display either the description of the selected element or the default description
    TreePath path = e.getNewLeadSelectionPath();
    if (path != null)
    {
View Full Code Here

   * Updates the status (description, next/finish buttons) of the page.
   */
  private void updatePageStatus()
  {
    GeneratorContext context = getContext();
    Generator generator = context.getSelectedGenerator();

    String description = generator != null ? generator.getDescription() : defaultDescription;
    setDescription(description);

    canFinish = false;
    canMoveForward = false;
    if (generator != null)
View Full Code Here

          // Get the node by the row number
          TreePath path = tree.getPathForRow(row);
          if (path != null)
          {
            GeneratorNode node = (GeneratorNode) path.getLastPathComponent();
            Generator generator = node.getGenerator();

            if (generator == null)
            {
              // Use folder icons for non-leaf nodes
              icon = expanded ? StdIcons.openFolderIcon : StdIcons.closedFolderIcon;
View Full Code Here

          {
            WizardSelectionPage selectionPage = new WizardSelectionPage(this);

            for (int i = 0; i < n; ++i)
            {
              Generator generator = (Generator) list.get(i);
              selectionPage.addGenerator(generator);
            }

            selectionPage.expandTree();
            addAndLinkPage(GeneratorWizard.SELECTION_PAGE, selectionPage);
          }
          else if (n == 1)
          {
            Generator gen = (Generator) list.get(0);
            if (gen != null)
            {
              // Initialize the generator context and settings as if we would have gotten them from an item of newer type
              context.setSelectedGenerator(gen);

              GeneratorSettings settings = new GeneratorSettings();
              settings.setGeneratorName(gen.getName());
              context.setGeneratorSettings(settings);
              context.setProperty(GeneratorWizard.SETTINGS_PAGE, settings);
            }
          }
        }
View Full Code Here

    {
      // Existing item
      String page = null;

      // Check if we should display a particular page
      Generator generator = context.getSelectedGenerator();
      if (generator != null)
      {
        page = generator.getDefaultStartPageName();
      }

      if (page == null)
      {
        // Display the editor page by default
View Full Code Here

TOP

Related Classes of org.openbp.cockpit.generator.Generator

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.