|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersionControlService
Defines the service for providing version control information for
a project. Plugins implementing this service should provide it
through jEdit's services.xml interface.
The interface extends 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.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from interface projectviewer.config.OptionsService |
---|
getOptionGroup, getOptionPane |
Field Detail |
---|
static final java.lang.String VC_SERVICE_KEY
static final int VC_STATUS_NORMAL
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |