Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #504 from maheeka/bug-fixes
Browse files Browse the repository at this point in the history
remove Current Package in connector declaration and action invocation…
  • Loading branch information
maheeka authored Feb 12, 2017
2 parents 4d08d29 + d845b79 commit 75a92df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion modules/web/js/ballerina/ast/action-invocation-expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ define(['lodash', 'log', './statement'], function (_, log, Statement) {
: (argsString = this.getConnectorVariableReference() + ' , ' + argsString);
}

if (!_.isNil(this.getActionPackageName()) && !_.isEmpty(this.getActionPackageName().trim())) {
if (!_.isNil(this.getActionPackageName()) && !_.isEmpty(this.getActionPackageName().trim())
&& !_.isEqual(this.getActionPackageName().trim(), 'Current Package')) {
if(this._isActionInvocationStatement){
return this.getActionPackageName() + ':' + this.getActionConnectorName() + '.' + this.getActionName() +
'(' + argsString + ')';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ define(['log', 'lodash', './../env/package', './../tool-palette/tool-palette', '
action.classNames = "tool-connector-action tool-connector-last-action";
}
action.meta = {
action: action.getAction(),
action: action.getName(),
actionConnectorName: connector.getName(),
actionPackageName: packageName
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ define(['lodash', 'log', 'event_channel', './abstract-source-gen-visitor'],
* If we need to add additional parameters which are dynamically added to the configuration start
* that particular source generation has to be constructed here
*/
var connectorPkg = !_.isNil(connectorDeclaration.getConnectorPkgName()) ?
var connectorPkg = ((!_.isNil(connectorDeclaration.getConnectorPkgName()))
&& (!_.isEqual(connectorDeclaration.getConnectorPkgName(), 'Current Package'))) ?
(connectorDeclaration.getConnectorPkgName() + ":") : "";
var constructedSource = connectorPkg +
connectorDeclaration.getConnectorName() + ' ' + connectorDeclaration.getConnectorVariable() +
Expand Down

0 comments on commit 75a92df

Please sign in to comment.