public class MultiLauncherBuilder extends java.lang.Object implements ICompositeItemBuilder
The MultiLauncherBuilder will check the list of ItemBuilders for those with a type of ItemType.Simulation. It will not include itself in the list it creates.
item
Constructor and Description |
---|
MultiLauncherBuilder()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addBuilders(java.util.ArrayList<ItemBuilder> itemBuilders)
This operation sets the list of ItemBuilders that may be used by the
composite Item to construct its children.
|
Item |
build(org.eclipse.core.resources.IProject projectSpace)
This operation builds and returns an instance of the Item that can be
constructed by the ItemBuilder.
|
java.lang.String |
getItemName()
This operation returns the short name of the Item that can be constructed
by this ItemBuilder.
|
ItemType |
getItemType()
This operation returns the type of Item that can be built by the
ItemBuilder.
|
public java.lang.String getItemName()
ItemBuilder
This operation returns the short name of the Item that can be constructed by this ItemBuilder.
getItemName
in interface ItemBuilder
The name
public ItemType getItemType()
ItemBuilder
This operation returns the type of Item that can be built by the ItemBuilder.
getItemType
in interface ItemBuilder
The type
public Item build(org.eclipse.core.resources.IProject projectSpace)
ItemBuilder
This operation builds and returns an instance of the Item that can be constructed by the ItemBuilder.
build
in interface ItemBuilder
projectSpace
- The Eclipse project that the Item should use for storage.
The newly created Item.
public void addBuilders(java.util.ArrayList<ItemBuilder> itemBuilders)
ICompositeItemBuilder
This operation sets the list of ItemBuilders that may be used by the composite Item to construct its children. This operation should be called before ICompositeItemBuilder.build().
addBuilders
in interface ICompositeItemBuilder
itemBuilders
- The list of ItemBuilders. This list should contain one or more ItemBuilders. If it does not, then building a composite Item with this builder must fail.