You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally, if multiple resources are selected in a resource view like package explorer, and the user executes a custom command on this selection, the command is executed on each of the resources separately. Thus, if 3 files are selected, the command is simply executed 3 times and each execution gets one of the files as a parameter. For most commands this is just fine.
For some commands however, it would be nice to be able to pass all selected resources as a parameter list to one execution. Then the command would be executed just once but gets all three files as a parameter.
To support this feature, StartExplorer should provide a few new variables:
${resource_path_list:arg} :The paths of all selected resources, delimited by arg. If no argument is provided, a comma or the platform specific path separator is used
Variables of the same fashion for resource_parent, resource_name, resource_name_without_extension and resource_extension, that is, ${resource_parent_list:arg}, ${resource_name_list:arg}, ${resource_name_without_extension_list:arg} and ${resource_extension_list:arg}
${resource_path_elem:arg} :The paths of the n-th resource, n is given by the numerical arg. If no argument is provided, the first resource is used
Variables of the same fashion for resource_parent, resource_name, resource_name_without_extension and resource_extension, that is, ${resource_parent_elem:arg}, ${resource_name_elem:arg}, ${resource_name_without_extension_elem:arg} and ${resource_extension_elem:arg}.
Normally, if multiple resources are selected in a resource view like package explorer, and the user executes a custom command on this selection, the command is executed on each of the resources separately. Thus, if 3 files are selected, the command is simply executed 3 times and each execution gets one of the files as a parameter. For most commands this is just fine.
For some commands however, it would be nice to be able to pass all selected resources as a parameter list to one execution. Then the command would be executed just once but gets all three files as a parameter.
To support this feature, StartExplorer should provide a few new variables:
Bring variable names in line with Eclipse variable naming schemes #17 and Variable replacement should always be handled by standard Eclipse mechanisms #18 should be done before this ticket
The text was updated successfully, but these errors were encountered: