Skip to content

Commit

Permalink
Resolve issues reported ( Missing TellMe ) (#1181)
Browse files Browse the repository at this point in the history
Jira: SDLCOM-4503
  • Loading branch information
FlaviuTritean authored Apr 7, 2023
1 parent 75078ba commit b459b0c
Show file tree
Hide file tree
Showing 11 changed files with 189 additions and 17 deletions.
50 changes: 49 additions & 1 deletion Reports.Viewer/Reports.Viewer/PluginResources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Reports.Viewer/Reports.Viewer/PluginResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,19 @@
<data name="Message_UnableToLocateReport" xml:space="preserve">
<value>Unable to locate report {0}</value>
</data>
<data name="Download" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>resources\download.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ForumIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>resources\forumicon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Question" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>resources\question.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TellMe_Provider" xml:space="preserve">
<value>{0} TellMe provider</value>
</data>
<data name="TellMe_Provider_Results" xml:space="preserve">
<value>{0} results</value>
</data>
</root>
2 changes: 1 addition & 1 deletion Reports.Viewer/Reports.Viewer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.3")]
[assembly: AssemblyFileVersion("3.0.1.0")]
37 changes: 23 additions & 14 deletions Reports.Viewer/Reports.Viewer/Reports.Viewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
<Reference Include="PresentationFramework" />
<Reference Include="PresentationFramework.Aero" />
<Reference Include="Sdl.Desktop.Platform.Styles">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Desktop.Platform.Styles.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Desktop.Platform.Styles.dll</HintPath>
</Reference>
<Reference Include="Sdl.MultiSelectComboBox">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.MultiSelectComboBox.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.MultiSelectComboBox.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -107,6 +107,10 @@
<Compile Include="ReportsViewerGroups.cs" />
<Compile Include="Service\DialogService.cs" />
<Compile Include="Service\ImageService.cs" />
<Compile Include="TellMe\AppStoreDownloadAction.cs" />
<Compile Include="TellMe\AppStoreForumAction.cs" />
<Compile Include="TellMe\CommunityWikiAction.cs" />
<Compile Include="TellMe\TellMeProvider.cs" />
<Compile Include="ViewModel\AppendTemplateViewModel.cs" />
<Compile Include="ViewModel\DataViewModel.cs" />
<Compile Include="ViewModel\ReportViewModel.cs" />
Expand Down Expand Up @@ -137,44 +141,49 @@
</ItemGroup>
<ItemGroup>
<Reference Include="Sdl.ProjectAutomation.Core">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.Core.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.Core.dll</HintPath>
</Reference>
<Reference Include="Sdl.ProjectAutomation.FileBased">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.FileBased.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.FileBased.dll</HintPath>
</Reference>
<Reference Include="Sdl.ProjectAutomation.Settings">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.Settings.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.Settings.dll</HintPath>
</Reference>
<Reference Include="Sdl.TranslationStudioAutomation.IntegrationApi">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.TranslationStudioAutomation.IntegrationApi.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.TranslationStudioAutomation.IntegrationApi.dll</HintPath>
</Reference>
<Reference Include="Sdl.TranslationStudioAutomation.IntegrationApi.Extensions">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.TranslationStudioAutomation.IntegrationApi.Extensions.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.TranslationStudioAutomation.IntegrationApi.Extensions.dll</HintPath>
</Reference>
<Reference Include="Sdl.Core.Globalization">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Core.Globalization.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Core.Globalization.dll</HintPath>
</Reference>
<Reference Include="Sdl.Core.Settings">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Core.Settings.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Core.Settings.dll</HintPath>
</Reference>
<Reference Include="Sdl.Desktop.IntegrationApi">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Desktop.IntegrationApi.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Desktop.IntegrationApi.dll</HintPath>
</Reference>
<Reference Include="Sdl.Desktop.IntegrationApi.Extensions">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Desktop.IntegrationApi.Extensions.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Desktop.IntegrationApi.Extensions.dll</HintPath>
</Reference>
<Reference Include="Sdl.Desktop.Platform.Controls">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.Desktop.Platform.Controls.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.Desktop.Platform.Controls.dll</HintPath>
</Reference>
<Reference Include="Sdl.ProjectAutomation.AutomaticTasks">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.AutomaticTasks.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.ProjectAutomation.AutomaticTasks.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(ProgramFiles)\Trados\Trados Studio\Studio17\Newtonsoft.Json.dll</HintPath>
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Sdl.TellMe.ProviderApi">
<HintPath>$(MSBuildProgramFiles32)\Trados\Trados Studio\Studio17\Sdl.TellMe.ProviderApi.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="pluginpackage.manifest.xml" />
<Content Include="Resources\Download.ico" />
<Content Include="Resources\ForumIcon.ico" />
<Resource Include="Resources\StudioReport.ico" />
<Resource Include="Resources\Add.ico" />
<Resource Include="Resources\Edit.ico" />
Expand Down
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions Reports.Viewer/Reports.Viewer/TellMe/AppStoreDownloadAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Diagnostics;
using System.Drawing;
using Sdl.TellMe.ProviderApi;

namespace Reports.Viewer.Plus.TellMe
{
public class AppStoreDownloadAction : AbstractTellMeAction
{
public override bool IsAvailable => true;

public override string Category => string.Format(PluginResources.TellMe_Provider_Results, PluginResources.Plugin_Name);

public override Icon Icon => PluginResources.Download;

public AppStoreDownloadAction()
{
Name = string.Format("Download {0} from the AppStore", PluginResources.Plugin_Name);
}

public override void Execute()
{
Process.Start("https://appstore.rws.com/Plugin/37");
}
}
}
25 changes: 25 additions & 0 deletions Reports.Viewer/Reports.Viewer/TellMe/AppStoreForumAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Diagnostics;
using System.Drawing;
using Sdl.TellMe.ProviderApi;

namespace Reports.Viewer.Plus.TellMe
{
public class AppStoreForumAction : AbstractTellMeAction
{
public override bool IsAvailable => true;

public override string Category => string.Format(PluginResources.TellMe_Provider_Results, PluginResources.Plugin_Name);

public override Icon Icon => PluginResources.ForumIcon;

public AppStoreForumAction()
{
Name = "RWS Community AppStore Forum";
}

public override void Execute()
{
Process.Start("https://community.rws.com/product-groups/trados-portfolio/rws-appstore/f");
}
}
}
25 changes: 25 additions & 0 deletions Reports.Viewer/Reports.Viewer/TellMe/CommunityWikiAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Diagnostics;
using System.Drawing;
using Sdl.TellMe.ProviderApi;

namespace Reports.Viewer.Plus.TellMe
{
public class CommunityWikiAction : AbstractTellMeAction
{
public override bool IsAvailable => true;

public override string Category => string.Format(PluginResources.TellMe_Provider_Results, PluginResources.Plugin_Name);

public override Icon Icon => PluginResources.Question;

public CommunityWikiAction()
{
Name = string.Format("{0} plugin wiki", PluginResources.Plugin_Name);
}

public override void Execute()
{
Process.Start("https://community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/5519/reports-viewer-plus");
}
}
}
25 changes: 25 additions & 0 deletions Reports.Viewer/Reports.Viewer/TellMe/TellMeProvider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Sdl.TellMe.ProviderApi;

namespace Reports.Viewer.Plus.TellMe
{
[TellMeProvider]
public class TellMeProvider: ITellMeProvider
{
public string Name => string.Format(PluginResources.TellMe_Provider, PluginResources.Plugin_Name);

public AbstractTellMeAction[] ProviderActions => new AbstractTellMeAction[]
{
new CommunityWikiAction
{
Keywords = new[] { "reports", "viewer", "plus", "community", "support", "wiki" }
},
new AppStoreForumAction
{
Keywords = new[] { "reports", "viewer", "plus", "support", "forum" }
},
new AppStoreDownloadAction
{
Keywords = new[] { "reports", "viewer", "plus", "store", "download", "appstore" }}
};
}
}
2 changes: 1 addition & 1 deletion Reports.Viewer/Reports.Viewer/pluginpackage.manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PluginPackage xmlns="http://www.sdl.com/Plugins/PluginPackage/1.0">
<PlugInName>Reports Viewer Plus</PlugInName>
<Version>3.0.0.3</Version>
<Version>3.0.1.0</Version>
<Description>Reports Viewer Plus</Description>
<Author>Trados AppStore Team</Author>
<RequiredProduct name="TradosStudio" minversion="17.0" maxversion="17.9"/>
Expand Down

0 comments on commit b459b0c

Please sign in to comment.