/*
   * (non-Javadoc)
   * @see org.eclipse.ice.item.AbstractItemBuilder#getInstance(org.eclipse.core.resources.IProject)
   */
  @Override
  public Item getInstance(IProject projectSpace) {

    // Create a model
    Item item = new VibeModel(projectSpace);

    // Set the item builder's name
    item.setItemBuilderName(getItemName());

    // Return the item
    return item;
  }
Example #2
0
  /**
   * Copy the provided Item into this Item.
   *
   * @param otherMoose
   *     <p>This operation performs a deep copy of the attributes of another MOOSE Item into the
   *     current MOOSE Item.
   */
  @Override
  public void copy(Item otherItem) {

    // Return if otherMoose is null
    if (otherItem == null) {
      return;
    }

    // Cast to a MOOSE Item
    MOOSE otherMoose = (MOOSE) otherItem;

    // Copy contents into super and current object
    super.copy(otherMoose);

    // Add the model files component
    modelFiles = (DataComponent) form.getComponent(1);

    // Get a handle to the model input tree
    modelTree = (TreeComposite) form.getComponent(2);

    // Must do this or we can't walk the tree to
    // get file entries correctly
    mooseModel.setActiveDataNodes(modelTree);

    return;
  }
Example #3
0
 /*
  * (non-Javadoc)
  *
  * @see
  * org.eclipse.ice.item.Item#setProject(org.eclipse.core.resources.IProject)
  */
 @Override
 public void setProject(IProject projectSpace) {
   super.setProject(projectSpace);
   mooseModel.setProject(projectSpace);
   mooseLauncher.setProject(projectSpace);
 }