build: renaming to sourcetrail

This commit is contained in:
Andreas Stallinger
2017-04-07 13:19:09 +02:00
parent 8391a6da57
commit 045a259b2e
224 changed files with 885 additions and 4271 deletions
+6 -6
View File
@@ -2,7 +2,7 @@
-Start VS and load a C/C++ solution (best mixed with multiple projects)
-Check all projects are loaded in Solution Explorer
-Check Plugin Logging and Obfuscation is off
-VS Menu Bar -> Tools -> Options -> Coati -> Logging & Obfuscation is off
-VS Menu Bar -> Tools -> Options -> Sourcetrail -> Logging & Obfuscation is off
-Delete log file and dictionary for current VS session if present
-delete log file for current session at ..AppData/Local/Coati Software/Plugin/VS if present
-delete dictionary file for current session at ..AppData/Local/Coati Software/Plugin/VS if present
@@ -38,10 +38,10 @@
-Check ..AppData/Local/Coati Software/Plugin/VS for no new log created
-Check ..AppData/Local/Coati Software/Plugin/VS for no new dictionary created
-Turn on Logging
-VS Menu Bar -> Tools -> Options -> Coati -> Logging ON & Obfuscation OFF
-VS Menu Bar -> Tools -> Options -> Sourcetrail -> Logging ON & Obfuscation OFF
-Enable VS Output Window
-VS Menu Bar -> View -> Output
-In Output Window, show Coati log (Show Output from: Coati Log)
-In Output Window, show Sourcetrail log (Show Output from: Sourcetrail Log)
-Create CDB from solution again
-Check location and name is the same as last time
-Check dialogue asking whether to overwrite old file or not
@@ -58,7 +58,7 @@
-Check ..AppData/Local/Coati Software/Plugin/VS for new log created
-Check ..AppData/Local/Coati Software/Plugin/VS for no new dictionary created
-Turn on Obfuscation
-VS Menu Bar -> Tools -> Options -> Coati -> Logging ON & Obfuscation ON
-VS Menu Bar -> Tools -> Options -> Sourcetrail -> Logging ON & Obfuscation ON
-Create CDB from solution again
-Check unloaded project is not in the listed projects in the dialogue
-Check location and name is the same as first time
@@ -84,7 +84,7 @@
-Click Create
-Close Progress Bar before CDB is finished
-Check no new CDB was created
-Switch to Coati
-Switch to Sourcetrail
-Keep Visual Studio running
-Open the 'New Project From Visual Studio Solution'
-Click 'Create CDB' button
@@ -92,5 +92,5 @@
-Create a new CDB with Settings of your choice
-Wait for CDB to be finished
-Click 'Yes' in the 'CDB finished' dialog
-Switch back to Coati
-Switch back to Sourcetrail
-Check prefilled data is correct
@@ -1,14 +0,0 @@
// Guids.cs
// MUST match guids.h
using System;
namespace CoatiSoftware.CoatiPlugin
{
static class GuidList
{
public const string guidCoatiPluginPkgString = "acf15780-03b5-440e-a41e-db79b7043fc2";
public const string guidCoatiPluginCmdSetString = "0efb005b-715c-4a62-8a9b-1e5a870e6c34";
public static readonly Guid guidCoatiPluginCmdSet = new Guid(guidCoatiPluginCmdSetString);
};
}
@@ -1,15 +0,0 @@
// PkgCmdID.cs
// MUST match PkgCmdID.h
using System;
namespace CoatiSoftware.CoatiPlugin
{
static class PkgCmdIDList
{
public const uint cmdidCoatiSetActiveToken = 0x104;
public const uint cmdidCoatiCreateProject = 0x105;
public const uint cmdidCoatiCreateCDB = 0x106;
public const uint cmdidCoatiOpenLogFolder = 0x107;
};
}
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoatiPlugin", "CoatiPlugin\CoatiPlugin.csproj", "{A585A530-E120-4C74-934E-D57ED12A7DA9}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourcetrailPlugin", "SourcetrailPlugin\SourcetrailPlugin.csproj", "{A585A530-E120-4C74-934E-D57ED12A7DA9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -0,0 +1,14 @@
// Guids.cs
// MUST match guids.h
using System;
namespace CoatiSoftware.SourcetrailPlugin
{
static class GuidList
{
public const string guidSourcetrailPluginPkgString = "acf15780-03b5-440e-a41e-db79b7043fc2";
public const string guidSourcetrailPluginCmdSetString = "0efb005b-715c-4a62-8a9b-1e5a870e6c34";
public static readonly Guid guidSourcetrailPluginCmdSet = new Guid(guidSourcetrailPluginCmdSetString);
};
}
@@ -1,12 +1,12 @@
using System;
using System.Collections.Generic;
namespace CoatiSoftware.CoatiPlugin.Logging
namespace CoatiSoftware.SourcetrailPlugin.Logging
{
class FileLogger : ILogger
{
private static string _directory = "";
private static string _fileNamePrefix = "Log_CoatiPlugin_";
private static string _fileNamePrefix = "Log_SourcetrailPlugin_";
private static string _fileNameSufix = ".txt";
private string _fileName = "";
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoatiSoftware.CoatiPlugin.Logging
namespace CoatiSoftware.SourcetrailPlugin.Logging
{
public interface ILogger
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoatiSoftware.CoatiPlugin.Logging
namespace CoatiSoftware.SourcetrailPlugin.Logging
{
public class LogManager
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoatiSoftware.CoatiPlugin.Logging
namespace CoatiSoftware.SourcetrailPlugin.Logging
{
public class LogMessage
{
@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
namespace CoatiSoftware.CoatiPlugin.Logging
namespace CoatiSoftware.SourcetrailPlugin.Logging
{
public class Logging
{
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace CoatiSoftware.CoatiPlugin.Logging.Obfuscation
namespace CoatiSoftware.SourcetrailPlugin.Logging.Obfuscation
{
class NameObfuscator
{
@@ -14,7 +14,7 @@ namespace CoatiSoftware.CoatiPlugin.Logging.Obfuscation
int _currentInt = 0;
private static string _directory = "";
private static string _fileNamePrefix = "Dictionary_CoatiPlugin_";
private static string _fileNamePrefix = "Dictionary_SourcetrailPlugin_";
private static string _fileNameSufix = ".txt";
private string _fileName = "";
@@ -5,7 +5,7 @@ using Microsoft.VisualStudio.Shell.Interop;
using System;
using System.Diagnostics;
namespace CoatiSoftware.CoatiPlugin.Logging
namespace CoatiSoftware.SourcetrailPlugin.Logging
{
class VSOutputLogger : ILogger
{
@@ -19,17 +19,17 @@ namespace CoatiSoftware.CoatiPlugin.Logging
public void LogMessage(LogMessage message)
{
if (message.MessageType == CoatiPlugin.Logging.LogMessage.LogMessageType.INFO)
if (message.MessageType == SourcetrailPlugin.Logging.LogMessage.LogMessageType.INFO)
{
Debug.WriteLine(message.Message, "Info");
WriteToOutputWindow("Info: " + message.Message);
}
if (message.MessageType == CoatiPlugin.Logging.LogMessage.LogMessageType.WARNING)
if (message.MessageType == SourcetrailPlugin.Logging.LogMessage.LogMessageType.WARNING)
{
Debug.WriteLine(message.Message, "Warning");
WriteToOutputWindow("Warning: " + message.Message);
}
if (message.MessageType == CoatiPlugin.Logging.LogMessage.LogMessageType.ERROR)
if (message.MessageType == SourcetrailPlugin.Logging.LogMessage.LogMessageType.ERROR)
{
Debug.WriteLine(message.Message, "Error");
WriteToOutputWindow("Error: " + message.Message);
@@ -38,7 +38,7 @@ namespace CoatiSoftware.CoatiPlugin.Logging
private void WriteToOutputWindow(string message)
{
string paneName = "Coati Log";
string paneName = "Sourcetrail Log";
if (_dte.Windows.Count > 0)
{
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
// based on: https://msdn.microsoft.com/en-us/library/system.threading.tasks.taskscheduler(v=vs.110).aspx
namespace CoatiSoftware.CoatiPlugin.Multitasking
namespace CoatiSoftware.SourcetrailPlugin.Multitasking
{
class LimitedThreadsTaskScheduler : TaskScheduler
{
@@ -0,0 +1,15 @@
// PkgCmdID.cs
// MUST match PkgCmdID.h
using System;
namespace CoatiSoftware.SourcetrailPlugin
{
static class PkgCmdIDList
{
public const uint cmdidSourcetrailSetActiveToken = 0x104;
public const uint cmdidSourcetrailCreateProject = 0x105;
public const uint cmdidSourcetrailCreateCDB = 0x106;
public const uint cmdidSourcetrailOpenLogFolder = 0x107;
};
}
@@ -7,11 +7,11 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CoatiPlugin")]
[assembly: AssemblyTitle("SourcetrailPlugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Coati Software")]
[assembly: AssemblyProduct("CoatiPlugin")]
[assembly: AssemblyProduct("SourcetrailPlugin")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace CoatiSoftware.CoatiPlugin {
namespace CoatiSoftware.SourcetrailPlugin {
using System;
@@ -39,7 +39,7 @@ namespace CoatiSoftware.CoatiPlugin {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CoatiSoftware.CoatiPlugin.Resources", typeof(Resources).Assembly);
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CoatiSoftware.SourcetrailPlugin.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
@@ -1,5 +1,5 @@

namespace CoatiSoftware.CoatiPlugin.SolutionParser
namespace CoatiSoftware.SourcetrailPlugin.SolutionParser
{
public class CommandObject
{
@@ -6,7 +6,7 @@ using System.IO;
using System.Threading;
using System;
namespace CoatiSoftware.CoatiPlugin.SolutionParser
namespace CoatiSoftware.SourcetrailPlugin.SolutionParser
{
public class CompilationDatabase
{
@@ -8,7 +8,7 @@ using System.Collections;
using System.IO;
using System.Diagnostics;
namespace CoatiSoftware.CoatiPlugin.SolutionParser
namespace CoatiSoftware.SourcetrailPlugin.SolutionParser
{
class SolutionParser
{
@@ -19,8 +19,8 @@
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CoatiSoftware.CoatiPlugin</RootNamespace>
<AssemblyName>coati_plugin_vs</AssemblyName>
<RootNamespace>CoatiSoftware.SourcetrailPlugin</RootNamespace>
<AssemblyName>sourcetrail_plugin_vs</AssemblyName>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
@@ -153,7 +153,7 @@
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="GlobalSuppressions.cs" />
<Compile Include="CoatiPluginPackage.cs">
<Compile Include="SourcetrailPluginPackage.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
@@ -227,7 +227,7 @@
<None Include="Key.snk" />
</ItemGroup>
<ItemGroup>
<VSCTCompile Include="CoatiPlugin.vsct">
<VSCTCompile Include="SourcetrailPlugin.vsct">
<ResourceName>Menus.ctmenu</ResourceName>
<SubType>Designer</SubType>
</VSCTCompile>
@@ -236,7 +236,7 @@
<Resource Include="Resources\favicon_16x16.png" />
</ItemGroup>
<ItemGroup>
<Content Include="coati.ico">
<Content Include="sourcetrail.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
@@ -25,28 +25,28 @@
<!--The Commands section is where we the commands, menus and menu groups are defined.
This section uses a Guid to identify the package that provides the command defined inside it. -->
<Commands package="guidCoatiPluginPkg">
<Commands package="guidSourcetrailPluginPkg">
<Bitmaps>
<Bitmap guid="icon" href="Resources\favicon_16x16.png" usedList="icon0"/>
</Bitmaps>
<Groups>
<Group guid="guidCoatiPluginCmdSet" id="ContextMenuGroup" priority="0x0600">
<Group guid="guidSourcetrailPluginCmdSet" id="ContextMenuGroup" priority="0x0600">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_CODEWIN"/>
</Group>
<Group guid="guidCoatiPluginCmdSet" id="TopLevelMenu" priority="0x0600">
<Group guid="guidSourcetrailPluginCmdSet" id="TopLevelMenu" priority="0x0600">
<Parent guid="guidSHLMainMenu" id="IDM_VS_TOOL_MAINMENU"/>
</Group>
<Group guid="guidCoatiPluginCmdSet" id="SubMenu" priority="0x0600">
<Parent guid="guidCoatiPluginCmdSet" id="TopLevelMenu"/>
<Group guid="guidSourcetrailPluginCmdSet" id="SubMenu" priority="0x0600">
<Parent guid="guidSourcetrailPluginCmdSet" id="TopLevelMenu"/>
</Group>
<!--
<Group guid="guidCoatiPluginCmdSet" id="HelpMenu" priority="0x0600">
<Parent guid="guidCoatiPluginCmdSet" id="TopLevelMenu"/>
<Group guid="guidSourcetrailPluginCmdSet" id="HelpMenu" priority="0x0600">
<Parent guid="guidSourcetrailPluginCmdSet" id="TopLevelMenu"/>
</Group>
-->
@@ -54,32 +54,32 @@
<Buttons>
<Button guid="guidCoatiPluginCmdSet" id="cmdidCoatiSetActiveToken" priority="0x0100" type="Button">
<Parent guid="guidCoatiPluginCmdSet" id="ContextMenuGroup" />
<Button guid="guidSourcetrailPluginCmdSet" id="cmdidSourcetrailSetActiveToken" priority="0x0100" type="Button">
<Parent guid="guidSourcetrailPluginCmdSet" id="ContextMenuGroup" />
<Icon guid="icon" id="icon0" />
<Strings>
<ButtonText>Set active Token</ButtonText>
</Strings>
</Button>
<Button guid="guidCoatiPluginCmdSet" id="cmdidCoatiCreateCDB" priority="0x0100" type="Button">
<Parent guid="guidCoatiPluginCmdSet" id="SubMenu" />
<Button guid="guidSourcetrailPluginCmdSet" id="cmdidSourcetrailCreateCDB" priority="0x0100" type="Button">
<Parent guid="guidSourcetrailPluginCmdSet" id="SubMenu" />
<Icon guid="icon" id="icon0" />
<Strings>
<ButtonText>Create CDB</ButtonText>
</Strings>
</Button>
<Button guid="guidCoatiPluginCmdSet" id="cmdidCoatiOpenLogFolder" priority="0x0100" type="Button">
<Parent guid="guidCoatiPluginCmdSet" id="SubMenu" />
<Button guid="guidSourcetrailPluginCmdSet" id="cmdidSourcetrailOpenLogFolder" priority="0x0100" type="Button">
<Parent guid="guidSourcetrailPluginCmdSet" id="SubMenu" />
<Strings>
<ButtonText>Open Log Directory</ButtonText>
</Strings>
</Button>
<!--
<Button guid="guidCoatiPluginCmdSet" id="cmdidCoatiHelp" priority="0x0100" type="Button">
<Parent guid="guidCoatiPluginCmdSet" id="HelpMenu" />
<Button guid="guidSourcetrailPluginCmdSet" id="cmdidSourcetrailHelp" priority="0x0100" type="Button">
<Parent guid="guidSourcetrailPluginCmdSet" id="HelpMenu" />
<Strings>
<ButtonText>Online Help</ButtonText>
</Strings>
@@ -90,20 +90,20 @@
<Menus>
<Menu guid="guidCoatiPluginCmdSet" id="TopLevelMenu" priority="0x700" type="Menu">
<Menu guid="guidSourcetrailPluginCmdSet" id="TopLevelMenu" priority="0x700" type="Menu">
<Parent guid="guidSHLMainMenu" id="IDG_VS_MM_TOOLSADDINS"/>
<Strings>
<ButtonText>Coati</ButtonText>
<CommandName>Coati</CommandName>
<ButtonText>Sourcetrail</ButtonText>
<CommandName>Sourcetrail</CommandName>
</Strings>
</Menu>
<!--
<Menu guid="guidCoatiPluginCmdSet" id="HelpMenu" priority="0x700" type="Menu">
<Parent guid="guidCoatiPluginCmdSet" id="TopLevelMenu"/>
<Menu guid="guidSourcetrailPluginCmdSet" id="HelpMenu" priority="0x700" type="Menu">
<Parent guid="guidSourcetrailPluginCmdSet" id="TopLevelMenu"/>
<Strings>
<ButtonText>Coati Help</ButtonText>
<CommandName>Coati Help</CommandName>
<ButtonText>Sourcetrail Help</ButtonText>
<CommandName>Sourcetrail Help</CommandName>
</Strings>
</Menu>
-->
@@ -118,24 +118,24 @@
<Symbols>
<!-- This is the package guid. -->
<GuidSymbol name="guidCoatiPluginPkg" value="{acf15780-03b5-440e-a41e-db79b7043fc2}" />
<GuidSymbol name="guidSourcetrailPluginPkg" value="{acf15780-03b5-440e-a41e-db79b7043fc2}" />
<!-- This is the guid used to group the menu commands together -->
<GuidSymbol name="guidCoatiPluginCmdSet" value="{0efb005b-715c-4a62-8a9b-1e5a870e6c34}">
<GuidSymbol name="guidSourcetrailPluginCmdSet" value="{0efb005b-715c-4a62-8a9b-1e5a870e6c34}">
<IDSymbol name="ContextMenuGroup" value="0x1020" />
<IDSymbol name="cmdidCoatiPing" value="0x0100" />
<IDSymbol name="cmdidCoatiFile" value="0x0101"/>
<IDSymbol name="cmdidCoatiGetActiveFileName" value="0x0102"/>
<IDSymbol name="cmdidCoatiGetActiveLineNumber" value="0x0103"/>
<IDSymbol name="cmdidCoatiSetActiveToken" value="0x0104"/>
<IDSymbol name="cmdidCoatiCreateProject" value="0x0105"/>
<IDSymbol name="cmdidCoatiCreateCDB" value="0x0106"/>
<IDSymbol name="cmdidCoatiOpenLogFolder" value="0x0107"/>
<IDSymbol name="cmdidSourcetrailPing" value="0x0100" />
<IDSymbol name="cmdidSourcetrailFile" value="0x0101"/>
<IDSymbol name="cmdidSourcetrailGetActiveFileName" value="0x0102"/>
<IDSymbol name="cmdidSourcetrailGetActiveLineNumber" value="0x0103"/>
<IDSymbol name="cmdidSourcetrailSetActiveToken" value="0x0104"/>
<IDSymbol name="cmdidSourcetrailCreateProject" value="0x0105"/>
<IDSymbol name="cmdidSourcetrailCreateCDB" value="0x0106"/>
<IDSymbol name="cmdidSourcetrailOpenLogFolder" value="0x0107"/>
<IDSymbol name="TopLevelMenu" value="0x1021"/>
<IDSymbol name="SubMenu" value="0x1022"/>
<IDSymbol name="HelpMenu" value="0x1023"/>
<IDSymbol name="cmdidCoatiHelp" value="0x1024"/>
<IDSymbol name="cmdidSourcetrailHelp" value="0x1024"/>
</GuidSymbol>
@@ -11,7 +11,7 @@ using System.IO;
using EnvDTE;
using System.Windows.Forms;
namespace CoatiSoftware.CoatiPlugin
namespace CoatiSoftware.SourcetrailPlugin
{
public class OptionPageGrid : DialogPage
{
@@ -28,7 +28,7 @@ namespace CoatiSoftware.CoatiPlugin
public static Callback _obfuscationToggled = null;
public static Callback _threadCountChanged = null;
[Category("Coati")]
[Category("Sourcetrail")]
[DisplayName("VS Port")]
[Description("The port on which Visual Studio will receive messages")]
public uint ServerPort
@@ -44,9 +44,9 @@ namespace CoatiSoftware.CoatiPlugin
}
}
[Category("Coati")]
[DisplayName("Coati Port")]
[Description("The port on which Coati will receive messages")]
[Category("Sourcetrail")]
[DisplayName("Sourcetrail Port")]
[Description("The port on which Sourcetrail will receive messages")]
public uint ClientPort
{
get { return _clientPort; }
@@ -60,7 +60,7 @@ namespace CoatiSoftware.CoatiPlugin
}
}
[Category("Coati")]
[Category("Sourcetrail")]
[DisplayName("File Logging")]
[Description("Enables or disables file logging for the plugin")]
public bool LoggingEnabled
@@ -76,7 +76,7 @@ namespace CoatiSoftware.CoatiPlugin
}
}
[Category("Coati")]
[Category("Sourcetrail")]
[DisplayName("Log Obfuscation")]
[Description("Names will be obfuscated in log files. Note that already logged data will not be obfuscated retroactively. A dictionary file will be created that you can use to make sense of obfuscated logs. Keep this dictionary to yourself!")]
public bool ObfuscateLogging
@@ -92,7 +92,7 @@ namespace CoatiSoftware.CoatiPlugin
}
}
[Category("Coati")]
[Category("Sourcetrail")]
[DisplayName("Thread Count")]
[Description("The maximum number of threads that will be used while building Compilation Databases")]
public uint ThreadCount
@@ -116,11 +116,11 @@ namespace CoatiSoftware.CoatiPlugin
[PackageRegistration(UseManagedResourcesOnly = true)]
[InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[Guid(GuidList.guidCoatiPluginPkgString)]
[Guid(GuidList.guidSourcetrailPluginPkgString)]
[ProvideAutoLoad(Microsoft.VisualStudio.Shell.Interop.UIContextGuids80.NoSolution)]
[ProvideOptionPage(typeof(OptionPageGrid), "Coati", "Coati Settings", 0, 0, true)]
[ProvideOptionPage(typeof(OptionPageGrid), "Sourcetrail", "Sourcetrail Settings", 0, 0, true)]
public sealed class CoatiPluginPackage : Package
public sealed class SourcetrailPluginPackage : Package
{
private MenuCommand _menuItemSetActiveToken = null;
private MenuCommand _menuItemCreateProject = null;
@@ -182,7 +182,7 @@ namespace CoatiSoftware.CoatiPlugin
public CoatiPluginPackage()
public SourcetrailPluginPackage()
{}
protected override void Initialize()
@@ -204,10 +204,10 @@ namespace CoatiSoftware.CoatiPlugin
OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
if ( null != mcs )
{
CommandID setActiveTokenCommandID = new CommandID(GuidList.guidCoatiPluginCmdSet, (int)PkgCmdIDList.cmdidCoatiSetActiveToken);
CommandID createProjectID = new CommandID(GuidList.guidCoatiPluginCmdSet, (int)PkgCmdIDList.cmdidCoatiCreateProject);
CommandID createCDBID = new CommandID(GuidList.guidCoatiPluginCmdSet, (int)PkgCmdIDList.cmdidCoatiCreateCDB);
CommandID openLogDirID = new CommandID(GuidList.guidCoatiPluginCmdSet, (int)PkgCmdIDList.cmdidCoatiOpenLogFolder);
CommandID setActiveTokenCommandID = new CommandID(GuidList.guidSourcetrailPluginCmdSet, (int)PkgCmdIDList.cmdidSourcetrailSetActiveToken);
CommandID createProjectID = new CommandID(GuidList.guidSourcetrailPluginCmdSet, (int)PkgCmdIDList.cmdidSourcetrailCreateProject);
CommandID createCDBID = new CommandID(GuidList.guidSourcetrailPluginCmdSet, (int)PkgCmdIDList.cmdidSourcetrailCreateCDB);
CommandID openLogDirID = new CommandID(GuidList.guidSourcetrailPluginCmdSet, (int)PkgCmdIDList.cmdidSourcetrailOpenLogFolder);
_menuItemSetActiveToken = new MenuCommand(MenuItemCallback, setActiveTokenCommandID);
_menuItemCreateProject = new MenuCommand(MenuItemCallback, createProjectID);
@@ -243,7 +243,7 @@ namespace CoatiSoftware.CoatiPlugin
try
{
// the coati ui should only be enabled when the solution contains C/C++ projects
// the sourcetrail ui should only be enabled when the solution contains C/C++ projects
DTE dte = (DTE)GetService(typeof(DTE));
List<String> languages = Utility.SolutionUtility.GetSolutionLanguages(dte);
@@ -386,7 +386,7 @@ namespace CoatiSoftware.CoatiPlugin
if (menuCommand != null)
{
if (menuCommand.CommandID.ID == (int)PkgCmdIDList.cmdidCoatiSetActiveToken)
if (menuCommand.CommandID.ID == (int)PkgCmdIDList.cmdidSourcetrailSetActiveToken)
{
string fileName = Utility.FileUtility.GetActiveDocumentName(dte);
string filePath = Utility.FileUtility.GetActiveDocumentPath(dte);
@@ -398,21 +398,21 @@ namespace CoatiSoftware.CoatiPlugin
Utility.AsynchronousClient.Send(message);
}
else if(menuCommand.CommandID.ID == (int)PkgCmdIDList.cmdidCoatiCreateCDB)
else if(menuCommand.CommandID.ID == (int)PkgCmdIDList.cmdidSourcetrailCreateCDB)
{
CreateCompilationDatabase(dte);
}
else if(menuCommand.CommandID.ID == (int)PkgCmdIDList.cmdidCoatiCreateProject)
else if(menuCommand.CommandID.ID == (int)PkgCmdIDList.cmdidSourcetrailCreateProject)
{
// show hint to use CDB methad (only for CDB beta) and create project on ok
Wizard.WindowMessage windowMessage = new Wizard.WindowMessage();
windowMessage.Title = "Hint";
windowMessage.Message = "Consider using 'Create CDB' if errors arise during Coati's indexing. This will become standard in the future.";
windowMessage.OnOK = CreateCoatiProjectOld;
windowMessage.Message = "Consider using 'Create CDB' if errors arise during Sourcetrail's indexing. This will become standard in the future.";
windowMessage.OnOK = CreateSourcetrailProjectOld;
windowMessage.RefreshWindow();
windowMessage.ShowDialog();
}
else if(menuCommand.CommandID.ID == (int)PkgCmdIDList.cmdidCoatiOpenLogFolder)
else if(menuCommand.CommandID.ID == (int)PkgCmdIDList.cmdidSourcetrailOpenLogFolder)
{
Utility.SystemUtility.OpenWindowsExplorerAtDirectory(Utility.DataUtility.GetStandardFolderDirectory());
}
@@ -420,7 +420,7 @@ namespace CoatiSoftware.CoatiPlugin
}
// will be removed once the CDB project creation is fully integrated
private void CreateCoatiProjectOld()
private void CreateSourcetrailProjectOld()
{
DTE dte = (DTE)GetService(typeof(DTE));
@@ -444,7 +444,7 @@ namespace CoatiSoftware.CoatiPlugin
}
else
{
DisplayMessage("Coati", "Can not create a Coati Project. Please check whether your VS solution is a valid C or C++ solution and is saved.");
DisplayMessage("Sourcetrail", "Can not create a Sourcetrail Project. Please check whether your VS solution is a valid C or C++ solution and is saved.");
}
}
@@ -457,7 +457,7 @@ namespace CoatiSoftware.CoatiPlugin
Utility.NetworkProtocolUtility.CursorPosition cursorPosition = Utility.NetworkProtocolUtility.ParseSetCursorMessage(message);
if (cursorPosition.Valid)
{
cursorPosition.ColumnNumber += 1; // VS counts columns starting at 1, coati starts at 0
cursorPosition.ColumnNumber += 1; // VS counts columns starting at 1, sourcetrail starts at 0
DTE dte = (DTE)GetService(typeof(DTE));
if (Utility.FileUtility.OpenSourceFile(dte, cursorPosition.FilePath))
{
@@ -485,13 +485,13 @@ namespace CoatiSoftware.CoatiPlugin
private void OnNetworkErrorCallback(string message)
{
Logging.Logging.LogError("Network Error: " + message.ToString());
DisplayMessage("Coati Network Error", message);
DisplayMessage("Sourcetrail Network Error", message);
}
private void OnFileUtilityError(string message)
{
Logging.Logging.LogError("File Error: " + message.ToString());
DisplayMessage("Coati File Error", message);
DisplayMessage("Sourcetrail File Error", message);
}
private void OnServerPortChanged()
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
class CompilationDatabaseList
{
@@ -1,11 +1,11 @@
using System;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
class DataUtility
{
static private string _standardFolder = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\Coati Software\\Plugins\\VS\\";
static private string _standardFileName = "cdbs.coatidata";
static private string _standardFileName = "cdbs.sourcetraildata";
static private DataUtility _instance = null;
@@ -1,7 +1,7 @@
using System;
using EnvDTE;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
class FileUtility
{
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
class NetworkProtocolUtility
{
@@ -5,7 +5,7 @@ using System.Threading;
using System.Net.Sockets;
using System.Net;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
public class StateObject
{
@@ -6,7 +6,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
public class ProjectUtility
{
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Threading;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
class QueuedFileWriter
{
@@ -9,7 +9,7 @@ using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
public class SolutionUtility
{
@@ -1,6 +1,6 @@
using System;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
class StringUtility
{
@@ -1,6 +1,6 @@
using System;
namespace CoatiSoftware.CoatiPlugin.Utility
namespace CoatiSoftware.SourcetrailPlugin.Utility
{
class SystemUtility
{
@@ -129,9 +129,9 @@
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="110" xml:space="preserve">
<value>CoatiPlugin</value>
<value>SourcetrailPlugin</value>
</data>
<data name="112" xml:space="preserve">
<value>Coati plugin test</value>
<value>Sourcetrail plugin test</value>
</data>
</root>
@@ -1,4 +1,4 @@
namespace CoatiSoftware.CoatiPlugin.Wizard
namespace CoatiSoftware.SourcetrailPlugin.Wizard
{
partial class ProjectSetupWindow
{
@@ -4,7 +4,7 @@ using System.Windows.Forms;
using System.IO;
using System.Text.RegularExpressions;
namespace CoatiSoftware.CoatiPlugin.Wizard
namespace CoatiSoftware.SourcetrailPlugin.Wizard
{
public partial class ProjectSetupWindow : Form
{
@@ -248,7 +248,7 @@ namespace CoatiSoftware.CoatiPlugin.Wizard
{
Logging.Logging.LogWarning("A file \"" + Logging.Obfuscation.NameObfuscator.GetObfuscatedName(targetDir + "\\" + textBoxFileName.Text) + "\" already exists.");
DialogResult result = MessageBox.Show("A file of the chosen name already exists. Do you want to replace it?", "Coati Plugin", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
DialogResult result = MessageBox.Show("A file of the chosen name already exists. Do you want to replace it?", "Sourcetrail Plugin", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if(result == DialogResult.No)
{
@@ -274,13 +274,13 @@ namespace CoatiSoftware.CoatiPlugin.Wizard
if(Directory.Exists(targetDir) == false)
{
Logging.Logging.LogError("The target directory \"" + Logging.Obfuscation.NameObfuscator.GetObfuscatedName(targetDir) + "\" does not exist.");
MessageBox.Show("The target directory does not exist.", "Coati Plugin", MessageBoxButtons.OK, MessageBoxIcon.Warning);
MessageBox.Show("The target directory does not exist.", "Sourcetrail Plugin", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
if (CheckFileNameIsValid(textBoxFileName.Text) == false)
{
Logging.Logging.LogError("The chosen file name \"" + Logging.Obfuscation.NameObfuscator.GetObfuscatedName(textBoxFileName.Text) + "\" is not valid. I'd almost dare to say it's invalid!");
MessageBox.Show("The chosen file name is not valid.", "Coati Plugin", MessageBoxButtons.OK, MessageBoxIcon.Warning);
MessageBox.Show("The chosen file name is not valid.", "Sourcetrail Plugin", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
@@ -1,4 +1,4 @@
namespace CoatiSoftware.CoatiPlugin.Wizard
namespace CoatiSoftware.SourcetrailPlugin.Wizard
{
partial class WindowCDBReady
{
@@ -8,13 +8,13 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CoatiSoftware.CoatiPlugin.Wizard
namespace CoatiSoftware.SourcetrailPlugin.Wizard
{
public partial class WindowCDBReady : Form
{
private string _message0 = "The CDB ";
private string _message1 = " was created at directory ";
private string _message2 = "Do you want to auto-import it in Coati now?";
private string _message2 = "Do you want to auto-import it in Sourcetrail now?";
private WindowCreateCDB.CreationResult _creationResult = new WindowCreateCDB.CreationResult();
@@ -1,4 +1,4 @@
namespace CoatiSoftware.CoatiPlugin.Wizard
namespace CoatiSoftware.SourcetrailPlugin.Wizard
{
partial class WindowCreateCDB
{
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using System.Threading;
using System.Windows.Forms;
namespace CoatiSoftware.CoatiPlugin.Wizard
namespace CoatiSoftware.SourcetrailPlugin.Wizard
{
public partial class WindowCreateCDB : Form
{
@@ -1,4 +1,4 @@
namespace CoatiSoftware.CoatiPlugin.Wizard
namespace CoatiSoftware.SourcetrailPlugin.Wizard
{
partial class WindowMessage
{
@@ -1,7 +1,7 @@
using System;
using System.Windows.Forms;
namespace CoatiSoftware.CoatiPlugin.Wizard
namespace CoatiSoftware.SourcetrailPlugin.Wizard
{
public partial class WindowMessage : Form
{
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="acf15780-03b5-440e-a41e-db79b7043fc2" Version="0.9.7" Language="en-US" Publisher="Coati Software OG" />
<DisplayName>CoatiPlugin</DisplayName>
<Description xml:space="preserve">This package allows Coati to communicate with Visual Studio and vice versa.</Description>
<MoreInfo>http://www.coati.io/</MoreInfo>
<Identity Id="acf15780-03b5-440e-a41e-db79b7043fc2" Version="0.9.8" Language="en-US" Publisher="Coati Software OG" />
<DisplayName>SourcetrailPlugin</DisplayName>
<Description xml:space="preserve">This package allows Sourcetrail to communicate with Visual Studio and vice versa.</Description>
<MoreInfo>http://www.sourcetrail.com/</MoreInfo>
<ReleaseNotes>Creation of CDBs is in beta and may change in future versions</ReleaseNotes>
<Icon>coati.ico</Icon>
<Icon>sourcetrail.ico</Icon>
</Metadata>
<Installation InstalledByMsi="false">
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="11.0" />

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB