Package org.openbp.core.model.item

Examples of org.openbp.core.model.item.Item.maintainReferences()


      // Copy the item data
      currentItem.copyFrom(argItem, Copyable.COPY_DEEP);

      // Repair hiearchy and establish links
      currentItem.setModel(currentModel);
      currentItem.maintainReferences(ModelObject.RESOLVE_GLOBAL_REFS | ModelObject.RESOLVE_LOCAL_REFS);
    }
    catch (CloneNotSupportedException e)
    {
      throw new ModelException("Clone", "Cannot update component '" + currentItem.getQualifier() + "': " + e.getMessage());
    }
View Full Code Here


      {
        Item item = (Item) itItems.next();

        item.setModel(this);

        item.maintainReferences(flag);

        if ((flag & INSTANTIATE_ITEM) != 0)
        {
          // Instantiate classes referenced by the item
          item.instantiate();
View Full Code Here

        // TODONOW Item item = (Item) source.clone();

        Model model = getSelectedModel(ItemBrowserPlugin.GUESS_MODEL | ItemBrowserPlugin.USE_CURRENT_MODEL);
        item.setModel(model);

        item.maintainReferences(ModelObject.SYNC_GLOBAL_REFNAMES | ModelObject.RESOLVE_LOCAL_REFS);

        // Find a new name for the item; we generate the name by appending a running number to the item type
        String oldName = item.getName();
        ItemUtil.ensureUniqueItemName(item, model);
        String newName = item.getName();
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.