Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor command registration and tree expansion events #202

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/vsce/src/commands/disableCommands/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/

export * from './disableLocalFileCommand';
export * from './disableProgramCommand';
export * from './disableTransactionCommand';

15 changes: 15 additions & 0 deletions packages/vsce/src/commands/enableCommands/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/

export * from './enableLocalFileCommand';
export * from './enableProgramCommand';
export * from './enableTransactionCommand';

110 changes: 110 additions & 0 deletions packages/vsce/src/commands/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/**
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/

import * as disableCommands from './disableCommands';
import * as enableCommands from './enableCommands';

import { TreeView } from 'vscode';
import { CICSTree } from '../trees/CICSTree';
import { getAddSessionCommand } from "./addSessionCommand";
import { getClearPlexFilterCommand } from "./clearPlexFilterCommand";
import { getClearResourceFilterCommand } from "./clearResourceFilterCommand";
import { getCloseLocalFileCommand } from "./closeLocalFileCommand";
import { getDeleteSessionCommand } from "./deleteSessionCommand";
import * as filterAllResourceCommands from "./filterAllResourceCommand";
import * as filterResourceCommands from "./filterResourceCommands";
import { getFilterPlexResources } from "./getFilterPlexResources";
import { getInquireProgramCommand } from "./inquireProgram";
import { getInquireTransactionCommand } from "./inquireTransaction";
import { getNewCopyCommand } from "./newCopyCommand";
import { getOpenLocalFileCommand } from "./openLocalFileCommand";
import { getPhaseInCommand } from "./phaseInCommand";
import { getPurgeTaskCommand } from "./purgeTaskCommand";
import { getRefreshCommand } from "./refreshCommand";
import { getRemoveSessionCommand } from "./removeSessionCommand";
import * as showAttributesCommands from "./showAttributesCommand";
import { getShowRegionSITParametersCommand } from "./showParameterCommand";
import { getUpdateSessionCommand } from "./updateSessionCommand";
import { viewMoreCommand } from "./viewMoreCommand";

export const getCommands = (treeDataProv: CICSTree, treeview: TreeView<any>) => {

return [
getAddSessionCommand(treeDataProv),
getRemoveSessionCommand(treeDataProv, treeview),
getUpdateSessionCommand(treeDataProv, treeview),
getDeleteSessionCommand(treeDataProv, treeview),

getRefreshCommand(treeDataProv),

getNewCopyCommand(treeDataProv, treeview),
getPhaseInCommand(treeDataProv, treeview),

enableCommands.getEnableProgramCommand(treeDataProv, treeview),
enableCommands.getEnableTransactionCommand(treeDataProv, treeview),
enableCommands.getEnableLocalFileCommand(treeDataProv, treeview),
disableCommands.getDisableProgramCommand(treeDataProv, treeview),
disableCommands.getDisableTransactionCommand(treeDataProv, treeview),
disableCommands.getDisableLocalFileCommand(treeDataProv, treeview),

getCloseLocalFileCommand(treeDataProv, treeview),
getOpenLocalFileCommand(treeDataProv, treeview),

getPurgeTaskCommand(treeDataProv, treeview),

showAttributesCommands.getShowRegionAttributes(treeview),
showAttributesCommands.getShowProgramAttributesCommand(treeview),
showAttributesCommands.getShowLibraryAttributesCommand(treeview),
showAttributesCommands.getShowLibraryDatasetsAttributesCommand(treeview),
showAttributesCommands.getShowTCPIPServiceAttributesCommand(treeview),
showAttributesCommands.getShowURIMapAttributesCommand(treeview),
showAttributesCommands.getShowTransactionAttributesCommand(treeview),
showAttributesCommands.getShowLocalFileAttributesCommand(treeview),
showAttributesCommands.getShowTaskAttributesCommand(treeview),
showAttributesCommands.getShowPipelineAttributesCommand(treeview),
showAttributesCommands.getShowWebServiceAttributesCommand(treeview),

getShowRegionSITParametersCommand(treeview),

filterResourceCommands.getFilterProgramsCommand(treeDataProv, treeview),
filterResourceCommands.getFilterDatasetProgramsCommand(treeDataProv, treeview),
filterResourceCommands.getFilterLibrariesCommand(treeDataProv, treeview),
filterResourceCommands.getFilterDatasetsCommand(treeDataProv, treeview),
filterResourceCommands.getFilterTransactionCommand(treeDataProv, treeview),
filterResourceCommands.getFilterLocalFilesCommand(treeDataProv, treeview),
filterResourceCommands.getFilterTasksCommand(treeDataProv, treeview),
filterResourceCommands.getFilterTCPIPSCommand(treeDataProv, treeview),
filterResourceCommands.getFilterURIMapsCommand(treeDataProv, treeview),
filterResourceCommands.getFilterPipelinesCommand(treeDataProv, treeview),
filterResourceCommands.getFilterWebServicesCommand(treeDataProv, treeview),

filterAllResourceCommands.getFilterAllProgramsCommand(treeDataProv, treeview),
filterAllResourceCommands.getFilterAllLibrariesCommand(treeDataProv, treeview),
filterAllResourceCommands.getFilterAllWebServicesCommand(treeDataProv, treeview),
filterAllResourceCommands.getFilterAllPipelinesCommand(treeDataProv, treeview),
filterAllResourceCommands.getFilterAllTransactionsCommand(treeDataProv, treeview),
filterAllResourceCommands.getFilterAllLocalFilesCommand(treeDataProv, treeview),
filterAllResourceCommands.getFilterAllTasksCommand(treeDataProv, treeview),
filterAllResourceCommands.getFilterAllTCPIPServicesCommand(treeDataProv, treeview),
filterAllResourceCommands.getFilterAllURIMapsCommand(treeDataProv, treeview),

getFilterPlexResources(treeDataProv, treeview),

getClearResourceFilterCommand(treeDataProv, treeview),
getClearPlexFilterCommand(treeDataProv, treeview),

viewMoreCommand(treeDataProv, treeview),

getInquireTransactionCommand(treeDataProv, treeview),
getInquireProgramCommand(treeDataProv, treeview),
];

};
Loading
Loading