Examples of ItemEditor


Examples of org.openbp.guiclient.model.item.ItemEditor

    }

    // Reinitialize the item's standard configuration now that we have fixed the process type
    ItemCreationUtil.setupStandardConfiguration(item);

    ItemEditor editor = ItemEditorRegistry.getInstance().lookupItemEditor(itd.getItemType());
    if (editor != null)
    {
      // Edit the item
      item = editor.openItem(item, EditedItemStatus.NEW);
    }
    else
    {
      if (!ModelConnector.getInstance().saveItem(item, true))
        item = null;
View Full Code Here

Examples of org.openbp.guiclient.model.item.ItemEditor

            activity.getHandlerDefinition().setHandlerClassName(className);
          }
        }

        // Get the item type editor associated with this item
        ItemEditor editor = ItemEditorRegistry.getInstance().lookupItemEditor(item.getItemType());
        if (editor != null)
        {
          // For compatibility with pre-2.0 process items
          StandardItemEditor.ensureProcessType(item);

          // Open the item wizard for the item
          final Item newItem = editor.openItem(item, EditedItemStatus.COPIED);
          if (newItem != null)
          {
            if (ModelConnector.getInstance().saveItem(item, true))
            {
              SwingUtilities.invokeLater(new Runnable()
View Full Code Here

Examples of org.openbp.guiclient.model.item.ItemEditor

      if (o instanceof ActivityItem || o instanceof ProcessItem || o instanceof ComplexTypeItem)
      {
        // Open actions and processes in the item wizard
        Item item = (Item) o;

        ItemEditor editor = ItemEditorRegistry.getInstance().lookupItemEditor(item.getItemType());
        if (editor != null)
        {
          // For compatibility with pre-2.0 process items
          StandardItemEditor.ensureProcessType(item);

          editor.openItem(item, EditedItemStatus.EXISTING);
        }

        return EVENT_CONSUMED;
      }
      else if (o instanceof Model || o instanceof Item)
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.