Added desktop action attribute to allow file/folder parameters to be optional.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3535 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2006-08-17 10:39:56 +00:00
parent 7c670da1b0
commit 3877dffcd4
7 changed files with 21 additions and 7 deletions

View File

@@ -148,7 +148,7 @@ BOOL CCAlfrescoAppApp::InitInstance()
// Action does not use targets, just run the action
else {
else if ( actionInfo.allowsNoParameters()) {
// Run the action
@@ -465,6 +465,13 @@ bool CCAlfrescoAppApp::runAction( AlfrescoInterface& alfresco, StringList& pathL
if ( buildDesktopParameters( alfresco, pathList, actionInfo, desktopParams)) {
// Check if the action requires parameters
if ( actionInfo.allowsNoParameters() == false && desktopParams.numberOfTargets() == 0) {
AfxMessageBox( L"No parameters for action", MB_OK | MB_ICONEXCLAMATION);
return false;
}
// Run the desktop action
DesktopResponse response = alfresco.runAction( actionInfo, desktopParams);