Class ecWorkspaceResourceReader

This class provides a standard interface to the Eclipse Resource Manager to retrieve information about the current working environment and files in the source directory of each project in the workspace.

ParameterDescription
theSource Source to be used for gathering the resources in the list
theFilter$ *OPTIONAL* A simple DOS-style file mask
theType *OPTIONAL* A numeric value to identify the type of files to be included in the list
Source Codes
ValueDescription
0 All resources in current workspace
1 All resources in current project (based on selection in navigation view)
2 All resources selected in the navigation view
3 The resource loaded in the editor view
4 All resources in current working-set
Type Codes (Add together for multiple types)
ValueDescription
1 Only source files for ProvideX programs
2 ProvideX class definitions (*.pvc)
4 Only NOMADS libraries
8 Only Message libraries

Properties

No Properties

Methods

FUNCTION project_getInfo(projectHandle, Name$, Location$)

Get information about the project identified by the handle. The project name and full path will be updated into the corresponding arguments.

ParameterDescription
projectHandle The handle to the resource for the project
Name$ The name of the resource (no path)
Location$ The operating system path for the resource
Returns A simple boolean value to indicate success (1) or failure (0).
FUNCTION project_getInfo(projectHandle, Name$, Location$, ProjPath$)

Get information about the project identified by the handle. The project name and full path will be updated into the corresponding arguments.

ParameterDescription
projectHandle The handle to the resource for the project
Name$ The name of the resource (no path)
Location$ The operating system path for the resource
ProjPath$ The project path for the resource
Returns A simple boolean value to indicate success (1) or failure (0).
FUNCTION project_getNext()

Get a handle to the next project for the current workspace.

Returns A handle to the next project in the current workspace
FUNCTION resource_getCount()

Get the number of resources in the current selection source

Returns The number of selected resources
FUNCTION resource_getInfo(resHandle, Name$, Location$)

Get information about the resource identified by the handle. The resource name and full path will be updated into the corresponding arguments.

ParameterDescription
resHandle The handle to the resource
Name$ The name of the resource (no path)
Location$ The operating system path for the resource
Returns A simple boolean value to indicate success (1) or failure (0).
FUNCTION resource_getInfo(resHandle, Name$, Location$, ProjPath$)

Get information about the resource identified by the handle. The resource name and full path will be updated into the corresponding arguments.

ParameterDescription
resHandle The handle to the resource
Name$ The name of the resource (no path)
Location$ The operating system path for the resource
ProjPath$ The project path for the resource
Returns A simple boolean value to indicate success (1) or failure (0).
FUNCTION resource_getNext()

Get a handle to the next resource in the list

Returns A handle to the next resource in the list