FUNCTION GetInfo$(option$)
Get information about the current Eclipse working environment
|
Parameter | Description |
option$ |
A single letter to identify the information required. |
|
Returns |
The value for the requested information. |
|
Information Codes |
Value | Description |
E |
The current editor resource |
N |
The number of selected resources in the Navigator View |
P |
The current project |
W |
The workspace name |
|
FUNCTION GetPath$(option$)
Get the specified path
|
Parameter | Description |
option$ |
A single letter code to identify the path |
|
Returns |
The value for the path. |
|
Path Identification Codes |
Value | Description |
O |
The location of the output directory for the current project |
P |
The current project location |
S |
The location of the source directory for the current project |
W |
The location of the current workspace |
|
FUNCTION isPluginLoaded(aPluginID$)
Check to see if the MAS plug-in has been loaded
aPluginID$ The ID of the dependent plug-in to be checked
|
Returns |
A simple boolean (0=false, 1=true) to indicate whether the dependent Plug-in has been loaded |
|
FUNCTION OSisWindows()
A simple check to determine if application is executing on a MS-Windows operating system.
|
Returns |
A simple boolean to indicate that operating is MS-Windows |
|
FUNCTION Prefs(option$, tag$, value$)
Access / modify preferences stored in the Eclipse Preference store
|
Parameter | Description |
option$ |
A code to indication the action to perform |
tag$ |
The preference (or preference prefix) |
value$ |
The value to be returned for a preference, or the value to set for the preference, or the maximum number for the preferences to be cleared |
|
Returns |
See 'Action Code' table |
|
Action Codes |
Value | Description |
C |
Clear a series of preferences that are prefixed by TAG$ and include a numeric counter that starts at one. The return value will be the number of preferences that have been cleared |
G |
Get the value of the preference. The return value will be a 1 of there is a value. |
S |
Set the value of the preference. The return value will be a 1 if the assignment was successful. |
|
FUNCTION RESOURCE$(option$)
Get the location of the specified resource
|
Parameter | Description |
option$ |
A code to identify the view for the selected resource |
|
Returns |
The location of the selected resource |
|
View Codes |
Value | Description |
E |
The current resource loaded in the editor |
N |
The resource selected in the Navigator View |
|
FUNCTION WorkFile$(prefix$, path$, ext$)
Get the name for a work file.
|
Parameter | Description |
prefix$ |
A prefix to be used when creating the name for the work file. |
path$ |
An optional path for the work file; if not specified, the operating system temporary directory will be used |
ext$ |
An optional file extension to be used for the work file; if none is specified, "tmp" will be used |
|
Returns |
The full path name of a work file that can be created by the application. |
|