DayZ 1.24
Loading...
Searching...
No Matches
SVNBlamePlugin Class Reference
Inheritance diagram for SVNBlamePlugin:
[legend]
Collaboration diagram for SVNBlamePlugin:
[legend]

Private Member Functions

override void Run ()
 
override void Configure ()
 
void OkButton ()
 

Private Attributes

string CommandLine
 

Detailed Description

Definition at line 2 of file BlameTool.c.

Member Function Documentation

◆ Configure()

override void SVNBlamePlugin::Configure ( )
inlineprivate

Definition at line 25 of file BlameTool.c.

26 {
27 Workbench.ScriptDialog("Configure SVN Blame", "Usage: \n$path - will be replaced with file name\n$line - will be replaced with current line number", this);
28 }
static proto int ScriptDialog(string caption, string text, Class data)

References Workbench::ScriptDialog().

◆ OkButton()

void SVNBlamePlugin::OkButton ( )
inlineprivate

Definition at line 31 of file BlameTool.c.

31{}

◆ Run()

override void SVNBlamePlugin::Run ( )
inlineprivate

Definition at line 7 of file BlameTool.c.

8 {
9 ScriptEditor mod = Workbench.GetModule("ScriptEditor");
10 if (mod)
11 {
12 string file;
13 string absPath;
14 if (mod.GetCurrentFile(file) && Workbench.GetAbsolutePath(file, absPath))
15 {
16 int line = mod.GetCurrentLine();
17 string command = CommandLine;
18 command.Replace("$path", absPath);
19 command.Replace("$line", (line + 1).ToString());
21 }
22 }
23 }
proto string ToString()
string CommandLine
Definition BlameTool.c:5
static proto native int RunCmd(string command, bool wait=false)
static proto native WBModuleDef GetModule(string type)
static proto bool GetAbsolutePath(string relativePath, out string absPath)

References Workbench::GetAbsolutePath(), Workbench::GetModule(), Workbench::RunCmd(), and ToString().

Member Data Documentation

◆ CommandLine

string SVNBlamePlugin::CommandLine
private

Definition at line 5 of file BlameTool.c.


The documentation for this class was generated from the following file: