Concrete implementation of an SCM service. SourceControlSvc uses this interface to perform SCM actions and gather information about this SCM service.
Method Summary |
public boolean |
|
public |
|
public |
|
public |
|
public |
|
public boolean | |
public boolean |
|
public void |
|
Method Detail |
public boolean canPerform(int actionType,
URI
[] paths)
Checks to see if the operation defined by actionType can be performed on
the files in the paths array.
public IActionProxy
[] getActions()
Provides a set of actions for a given URI. These are specific to the SCM's
gestalt. For instance, the CVS driver will have actions like "update" and "commit",
while the Perforce driver will have actions like "sync" and "submit".
public Integer
getMnemonicKey()
The keystroke to use as the mnemonic key in the Tools menu.
public String
getName()
Human-readable name for this SCM service. For instance, "Perforce" or "CVS".
public SCMPropertyPanel
getSCMPropertyPanel()
SCMPrefs are displayed in the Preferences panel in either the workspace
or the project properties.
public boolean perform(int actionType,
URI
[] paths)
Perform the action defined by actionType on all the paths. This call is preceded
with a call to canPerform, usually. Return true if the action was successful.
Note that the implementation is not allowed to show dialogs during this call.
public boolean performDialog(int actionType,
URI
[] paths)
Same as perform except that the implementation is allowed to show dialogs.
Related Topics
ISCMDriver.perform(int, URI[])
public void setPreferences(Preferences
prefs)
Preferences are set by SCMServices (the concrete, user-visible
SourceControlSvc implementation) when appropriate, so that the strategy
does not have to determine whether or not it should use project preferences
or workspace preferences. The strategy can assume that the preferences
it maintains from this call are kept up-to-date.