public LoadDirectoryNodeMenu(RDMPContextMenuStripArgs args, LoadDirectoryNode node) : base(args, node) { args.SkipCommand <ExecuteCommandCreateNewDataLoadDirectory>(); ReBrandActivateAs("Open In Explorer", RDMPConcept.CatalogueFolder); Add(new ExecuteCommandChooseLoadDirectory(_activator, node.LoadMetadata)); }
public ProjectCataloguesNodeMenu(RDMPContextMenuStripArgs args, ProjectCataloguesNode node) : base(args, node) { //instead of this args.SkipCommand <ExecuteCommandCreateNewCatalogueByImportingFile>(); //use our fabulous UI Add(new ExecuteCommandCreateNewCatalogueByImportingFileUI(_activator).SetTarget(node.Project)); }
public CatalogueFolderMenu(RDMPContextMenuStripArgs args, CatalogueFolder folder) : base(args, folder) { args.SkipCommand <ExecuteCommandCreateNewCatalogueByImportingFile>(); //Things that are always visible regardless Add(new ExecuteCommandCreateNewCatalogueByImportingFileUI(_activator) { TargetFolder = folder }); Add(new ExecuteCommandGenerateMetadataReport(_activator, _activator.CoreChildProvider.GetAllChildrenRecursively(folder).OfType <ICatalogue>().ToArray())); }
public LoadStageNodeMenu(RDMPContextMenuStripArgs args, LoadStageNode loadStageNode) : base(args, loadStageNode) { _loadStageNode = loadStageNode; _mef = _activator.RepositoryLocator.CatalogueRepository.MEF; args.SkipCommand <ExecuteCommandCreateNewClassBasedProcessTask>(); AddMenu <IDataProvider>("Add Cached Data Provider", t => typeof(ICachedDataProvider).IsAssignableFrom(t)); AddMenu <IDataProvider>("Add Data Provider", t => !typeof(ICachedDataProvider).IsAssignableFrom(t)); AddMenu <IAttacher>("Add Attacher"); AddMenu <IMutilateDataTables>("Add Mutilator"); }
public ProjectMenu(RDMPContextMenuStripArgs args, Project project) : base(args, project) { Add(new ExecuteCommandRelease(_activator).SetTarget(project)); Add(new ExecuteCommandExecuteExtractionConfiguration(_activator).SetTarget(project)); args.SkipCommand <ExecuteCommandCreateNewCatalogueByImportingFile>(); Add(new ExecuteCommandCreateNewCatalogueByImportingFileUI(_activator) { OverrideCommandName = "From File..." }.SetTarget(project), Keys.None, AddProjectSpecificCatalogueMenuText, _activator.CoreIconProvider.GetImage(RDMPConcept.ProjectCatalogue, OverlayKind.Add)); Add(new ExecuteCommandCreateNewCatalogueByImportingExistingDataTable(_activator) { OverrideCommandName = "From Database..." }.SetTarget(project), Keys.None, AddProjectSpecificCatalogueMenuText); }
public RDMPContextMenuStrip(RDMPContextMenuStripArgs args, object o) { _o = o; _args = args; //we will add this ourselves in AddCommonMenuItems _args.SkipCommand <ExecuteCommandActivate>(); _activator = _args.ItemActivator; _activator.Theme.ApplyTo(this); AtomicCommandUIFactory = new AtomicCommandUIFactory(_activator); RepositoryLocator = _activator.RepositoryLocator; if (o != null && !(o is RDMPCollection)) { ActivateCommandMenuItem = Add(new ExecuteCommandActivate(_activator, args.Masquerader ?? o), Keys.None); } }
public ExternalDatabaseServerMenu(RDMPContextMenuStripArgs args, ExternalDatabaseServer server) : base(args, server) { _server = server; args.SkipCommand <ExecuteCommandViewLogs>(); if (server.WasCreatedBy(new LoggingDatabasePatcher())) { var viewLogs = new ToolStripMenuItem("View Logs", CatalogueIcons.Logging); Add(new ExecuteCommandViewLogs(_activator, new LogViewerFilter(LoggingTables.DataLoadTask)), Keys.None, viewLogs); Add(new ExecuteCommandViewLogs(_activator, new LogViewerFilter(LoggingTables.DataLoadRun)), Keys.None, viewLogs); Add(new ExecuteCommandViewLogs(_activator, new LogViewerFilter(LoggingTables.FatalError)), Keys.None, viewLogs); Add(new ExecuteCommandViewLogs(_activator, new LogViewerFilter(LoggingTables.TableLoadRun)), Keys.None, viewLogs); Add(new ExecuteCommandViewLogs(_activator, new LogViewerFilter(LoggingTables.DataSource)), Keys.None, viewLogs); Add(new ExecuteCommandViewLogs(_activator, new LogViewerFilter(LoggingTables.ProgressLog)), Keys.None, viewLogs); viewLogs.DropDownItems.Add(new ToolStripSeparator()); viewLogs.DropDownItems.Add(new ToolStripMenuItem("Query with SQL", CatalogueIcons.SQL, ExecuteSqlOnLoggingDatabase)); Items.Add(viewLogs); } }
public PipelineMenu(RDMPContextMenuStripArgs args, Pipeline pipeline) : base(args, pipeline) { // alternate create new that uses a windows UI form args.SkipCommand <ExecuteCommandNewObject>(); Add(new ExecuteCommandCreateNewPipeline(_activator, null)); }
public PipelineMenu(RDMPContextMenuStripArgs args, StandardPipelineUseCaseNode node) : base(args, node) { // alternate create new that uses a windows UI form args.SkipCommand <ExecuteCommandNewObject>(); Add(new ExecuteCommandCreateNewPipeline(_activator, node.UseCase)); }