Package org.openbp.core.model

Examples of org.openbp.core.model.Model.removeItem()


    removeItemFromStore(item);

    // Remove the item from the model finally
    Model model = item.getModel();

    model.removeItem(item);
  }

  /**
   * Moves an item.
   * This can be used to simply rename an item within a model or to move an item to a new model.
View Full Code Here


    // TODO Fix 5: This does not account any artifacts (e. g. class files) that accompany the item.

    removeItemFromStore(item);

    Model sourceModel = item.getModel();
    sourceModel.removeItem(item);

    if (destinationItemName != null)
      item.setName(destinationItemName);

    destinationModel.addItem(item);
View Full Code Here

      case ModelNotificationService.REMOVED:
        item = getItemByQualifier(qualifier, false);
        if (item != null)
        {
          model = item.getModel();
          model.removeItem(item);
        }
        break;
      }
    }
  }
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.