Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
showlog.c
Go to the documentation of this file.
1 [WorkbenchPluginAttribute("SVN ShowLog", "Just for testing", "ctrl+=", "", {"ScriptEditor"})]
3 {
4  [Attribute("TortoiseProc /command:log /path:$path", "editbox")]
5  string CommandLine;
6 
7  override void Run()
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  string command = CommandLine;
17  command.Replace("$path", absPath);
18  Workbench.RunCmd(command);
19  //Print( command );
20  //Print( absPath );
21  }
22  }
23  }
24 
25  override void Configure()
26  {
27  Workbench.ScriptDialog("Configure SVN ShowLog", "Usage: \n$path - will be replaced with file name", this);
28  }
29 
30  [ButtonAttribute("OK")]
31  void OkButton() {}
32 }
33 
SVNShowLogPlugin
Definition: showlog.c:2
ButtonAttribute
Definition: workbenchapi.c:108
ScriptEditor
Definition: workbenchapi.c:29
Workbench
Definition: workbenchapi.c:6
WorkbenchPluginAttribute
CheckLocalisationPlugin WorkbenchPluginAttribute
WorkbenchPlugin
Definition: workbenchapi.c:101
Attribute
Definition: enentity.c:823
Run
override void Run()
Definition: dayztools.c:8