public interface VersionControlService extends OptionsService
OptionsService
; the option pane or
option group returned by this service is only shown if the service
is chosen as the "version control service" for a project.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VC_SERVICE_KEY
Key in the project's properties identifying the version control service.
|
static int |
VC_STATUS_NORMAL
Special value designating that no special status is available for the node.
|
Modifier and Type | Method and Description |
---|---|
void |
dissociate(VPTProject proj)
Called when a user removes the version control association with a
project (either by not choosing a version control service or a
different one).
|
ImporterFileFilter |
getFilter()
Returns a file filter to be shown as an option when the user
imports files into a project backed by this version control
service.
|
javax.swing.Icon |
getIcon(int state)
This should return the status icon to be used to represent the
given state.
|
int |
getNodeState(VPTNode node)
This method should return an integer identifying the current
state of the given node.
|
java.lang.Class |
getPlugin()
Returns the class identifying the plugin.
|
getOptionGroup, getOptionPane
static final java.lang.String VC_SERVICE_KEY
static final int VC_STATUS_NORMAL
int getNodeState(VPTNode node)
node
- The node.javax.swing.Icon getIcon(int state)
state
- The value retrieved from getNodeState(VPTNode)
.java.lang.Class getPlugin()
ImporterFileFilter getFilter()
It's similar to providing a filter as a service,
but the difference is that the filter provided as a service
is shown always. A filter provided through this method is
selected for the project in which this version control is active.
A filter should not be provided by both means (a service and
getFilter
), because it leads to duplication of
the filter in filters list.
void dissociate(VPTProject proj)
proj
- The project.