public interface IRepositoryService
final IRepositoryService repositoryService = (IRepositoryService) PlatformUI.getWorkbench().getService(IRepositoryService.class);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BROKER_CHANNEL_SCRIPT_KEYWORDS
Channel to promote all keyword changes from user scripts.
|
static java.lang.String |
BROKER_CHANNEL_SCRIPTS_BASE
Base channel for all script events.
|
static java.lang.String |
BROKER_CHANNEL_SCRIPTS_NEW
Channel to promote new detected user scripts.
|
static java.lang.String |
BROKER_CHANNEL_SCRIPTS_REMOVED
Channel to promote when user scripts are removed.
|
static boolean |
TRACE_REPOSITORY_SERVICE
Trace enablement for the repository service.
|
Modifier and Type | Method and Description |
---|---|
void |
addLocation(java.lang.String locationURI,
boolean defaultLocation,
boolean recursive)
Add a new script location to the repository.
|
java.util.Collection<IScriptLocation> |
getLocations()
Get all script locations currently registered.
|
IScript |
getScript(java.lang.String name)
Get a script by providing its full name.
|
java.util.Collection<IScript> |
getScripts()
Get all scripts registered with this service
|
void |
removeLocation(java.lang.String locationURI)
Remove a give location from the repository.
|
void |
update(boolean force)
Trigger an immediate refresh of all script sources and contained scripts.
|
void |
updateLocation(IScriptLocation location,
java.lang.String scriptURI,
long lastChanged) |
static final java.lang.String BROKER_CHANNEL_SCRIPTS_BASE
static final java.lang.String BROKER_CHANNEL_SCRIPTS_NEW
static final java.lang.String BROKER_CHANNEL_SCRIPTS_REMOVED
static final java.lang.String BROKER_CHANNEL_SCRIPT_KEYWORDS
static final boolean TRACE_REPOSITORY_SERVICE
void update(boolean force)
void updateLocation(IScriptLocation location, java.lang.String scriptURI, long lastChanged)
java.util.Collection<IScript> getScripts()
IScript getScript(java.lang.String name)
name
- full name of script (including path)java.util.Collection<IScriptLocation> getLocations()
void addLocation(java.lang.String locationURI, boolean defaultLocation, boolean recursive)
locationURI
- location URI to registerdefaultLocation
- set to true to be the default location for scriptsrecursive
- true
to parse subfolders of locationvoid removeLocation(java.lang.String locationURI)
locationURI
- location URI to unregister