Method | Description | |
---|---|---|
GetPluginDirectories ( |
Return pluginFolders array from region.json. Default value is ["plugins"]
|
|
GetPluginFolderPath ( string basePath, string pluginPath ) : string |
Return pluginPath relative to basePath. For example, if basePath is "~/www" and pluginPath is "~/www/plugins/xyz" then return "plugins/xyz".
|
|
GetPluginModuleName ( string basePath, string pluginPath ) : string |
Convert pluginPath to relative module path. For example, if basePath is "~/www" and pluginPath is "~/www/plugins/xyz" then return "tnc/plugins/xyz/main". Assuming "tnc" prefix is a package configured to point to your basePath.
|
|
SortPluginNames ( List |
Sort pluginNames by specified keyFunc. Items for which keyFunc returns -1 (not found) will be sorted towards the end of the list in no particular order.
|
|
StripPluginModule ( string pluginModule ) : string |
Given a module name like "tnc/plugins/layer_selector/main" return "layer_selector".
|
|
VerifyDirectoriesExist ( IEnumerable |
Throw exception if folder does not exist.
|
public static GetPluginDirectories ( |
||
jsonDataRegion | ||
basePath | string | |
return | IEnumerable |
public static GetPluginFolderPath ( string basePath, string pluginPath ) : string | ||
basePath | string | |
pluginPath | string | |
return | string |
public static GetPluginModuleName ( string basePath, string pluginPath ) : string | ||
basePath | string | |
pluginPath | string | |
return | string |
public static SortPluginNames ( List |
||
pluginNames | List |
|
keyFunc | int>.Func | |
return | void |
public static StripPluginModule ( string pluginModule ) : string | ||
pluginModule | string | |
return | string |
public static VerifyDirectoriesExist ( IEnumerable |
||
dirs | IEnumerable |
|
return | void |