-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve issues reported ( Missing TellMe ) (#1181)
Jira: SDLCOM-4503
- Loading branch information
1 parent
75078ba
commit b459b0c
Showing
11 changed files
with
189 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
Reports.Viewer/Reports.Viewer/TellMe/AppStoreDownloadAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
25
Reports.Viewer/Reports.Viewer/TellMe/AppStoreForumAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
25
Reports.Viewer/Reports.Viewer/TellMe/CommunityWikiAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }} | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters