• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HicServices / RDMP / 19852309549

02 Dec 2025 08:38AM UTC coverage: 55.8% (-1.4%) from 57.197%
19852309549

Pull #2279

github

JFriel
fix build
Pull Request #2279: [UI Overhaul] Spike/refresh

11249 of 21727 branches covered (51.77%)

Branch coverage included in aggregate %.

807 of 1108 new or added lines in 29 files covered. (72.83%)

724 existing lines in 67 files now uncovered.

31893 of 55588 relevant lines covered (57.37%)

16683.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

62.5
/Rdmp.Core/PluginUserInterface.cs
1
// Copyright (c) The University of Dundee 2018-2019
2
// This file is part of the Research Data Management Platform (RDMP).
3
// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4
// RDMP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5
// You should have received a copy of the GNU General Public License along with RDMP. If not, see <https://www.gnu.org/licenses/>.
6

7
using System.Collections.Generic;
8
using Rdmp.Core.CommandExecution;
9
using Rdmp.Core.CommandExecution.AtomicCommands;
10
using Rdmp.Core.MapsDirectlyToDatabaseTable;
11
using Rdmp.Core.ReusableLibraryCode.Icons.IconProvision;
12
using SixLabors.ImageSharp;
13
using SixLabors.ImageSharp.PixelFormats;
14

15
namespace Rdmp.Core;
16

17
public abstract class PluginUserInterface : IPluginUserInterface
18
{
19
    protected readonly IBasicActivateItems BasicActivator;
20

21
    public Image<Rgba32> ImageUnknown => BasicActivator.CoreIconProvider.ImageUnknown;
×
22

23
    /// <summary>
24
    /// Creates a new instance of your plugin UI.  See notes on <paramref name="itemActivator"/>
25
    /// </summary>
26
    /// <param name="itemActivator">The UI layer of the client.  May be a console UI activator or a winforms activator.  Use GetType to
27
    /// determine if the currently running UI layer is one you support in your plugin.</param>
28
    protected PluginUserInterface(IBasicActivateItems itemActivator)
742✔
29
    {
30
        BasicActivator = itemActivator;
742✔
31
    }
742✔
32

UNCOV
33
    public virtual object[] GetChildren(object model) => null;
×
34

35
    /// <summary>
36
    /// Override to return a custom set of commands for some objects
37
    /// </summary>
38
    /// <param name="o">An object that was right clicked or a member of the enum <see cref="RDMPCollection"/> if a right
39
    /// click occurs in whitespace</param>
40
    /// <returns></returns>
41
    public virtual IEnumerable<IAtomicCommand> GetAdditionalRightClickMenuItems(object o)
42
    {
43
        yield break;
4✔
44
    }
45

46
    public virtual Image<Rgba32> GetImage(object concept, OverlayKind kind = OverlayKind.None) => null;
660✔
47

48
    /// <inheritdoc/>
49
    public virtual bool CustomActivate(IMapsDirectlyToDatabaseTable o) => false;
×
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc