Previous Topic Next topic Print topic


Create Resource

Function:

This tool creates new Eclipse folders or files. It supports mass processing.

Tool Attribute:

Attribute Type Description
Create Link Boolean Determines whether the created resource will be a linked resource.
With UI Boolean Determines whether the Eclipse UI dialog box should be used to prompt for additional parameters.
Resource Type Selection Defines the Eclipse resource type to be created. Valid values include:
  • Folder
  • File
  • From Parameter. Use this value to allow the Eclipse resource type to be defined by a tool input parameter.
Existing Resource Handling Selection Defines handling when the target resource already exists.
Valid values include:
  • Replace: The target resource is replaced without a message.
  • Ignore: The target resource stays untouched.
  • Error: An error message is produced.
  • From Parameter: The handling is defined by an additional tool parameter.
Path Includes resource Name

Boolean

Determines whether the name of the Eclipse resource is included in the resource path.

Parameters:

Parameter # I/O Type Description
1 [M] I String/MassProcessing Eclipse path to the new resource (must be the full path if the attribute “Including Filename” is set to “true”)
2 [O] I String/MassProcessing The type for the new resource.

Only enabled if the tool attribute Resource Type is set to From Parameter.

Valid values include:
  • Folder
  • File.
3 [O] I String/MassProcessing Name of the new resource. Only enabled if the tool attribute Including Filename is set to false.
4 [O] I String Defines handling when the target resource already exists. Valid values include:
  • Replace: The target resource is replaced without a message.
  • Ignore: The target resource stays untouched.
  • Error: An error message is produced.
Only enabled if the tool attribute Existing Resource Handling is set to From Parameter. Default value: Error
5 [O] I String/MassProcessing Path to the linked resource. Only enabled if the tool attribute With UI is set to false and tool attribute Create Link is set to true. The path can be absolute or relative to the workspace.

Details:

  • This tool is executed as mass processing in the following scenario:
    • Resource path type (first parameter) is set to “MassProcessing":
      • Type of the third input parameter (Name of the new resource) must be set to "MassProcessing" if present.
      • Type of the fifth input parameter (path to the linked resource) must be set to "MassProcessing" if present.
    • Resource path type is set to “String” and
      • Type of the third input parameter (Name of the new resource) is set to "MassProcessing" if present and type of the fifth input parameter (path to the linked resource) is set to "MassProcessing" if present.
      • the input parameter referred to the linked path of the new resource is modeled and is “MassProcessing".
  • The type of the third and fifth input parameter (name and linked path of the new resource) must be the same.
  • If the tool is a mass processing tool, the second input parameter (type of the new resource) may be of type “String” or “MassProcessing".
    • “String”:  All new resources will be create with the same type.
    • “MassProcessing”: Each resource will be created with the corresponding type.
Previous Topic Next topic Print topic