Commit 198a0c29 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

GREEN

refs 2490
parent 3aacccee
......@@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService;
* @author eder
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: C68C860132EB42C76F5F8859412D0FA3
* @ConQAT.Rating GREEN Hash: 6BF89529AB463C510304C22641E1FD46
*/
public class AllocationConnectCommand extends ConnectCommand {
......@@ -42,9 +42,9 @@ public class AllocationConnectCommand extends ConnectCommand {
@Override
public boolean canExecute() {
if(context instanceof AllocationConnectionDragContext) {
EObject root = ((AllocationConnectionDragContext)context).getAllocationRoot();
return IConnectionCompositorService.getInstance().canConnect(context.getSource(),
context.getTarget(),
((AllocationConnectionDragContext)context).getAllocationRoot(), context);
context.getTarget(), root, context);
}
return super.canExecute();
}
......@@ -54,8 +54,8 @@ public class AllocationConnectCommand extends ConnectCommand {
public void execute() {
if(context instanceof AllocationConnectionDragContext) {
EObject commonParent = ((AllocationConnectionDragContext)context).getAllocationRoot();
IConnectionCompositorService.getInstance().connect(context.getSource(), context.getTarget(),
commonParent, context);
IConnectionCompositorService.getInstance().connect(context.getSource(),
context.getTarget(), commonParent, context);
} else {
super.execute();
}
......
......@@ -36,7 +36,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: AE18C22681C0854DF2F8DE6607E9E396
* @ConQAT.Rating GREEN Hash: F7D3596F1BC65D2B558627125DCB05AA
*/
public class ConnectCommand extends Command {
......@@ -69,14 +69,14 @@ public class ConnectCommand extends Command {
return false;
}
return IConnectionCompositorService.getInstance().canConnect(context.getSource(),
context.getTarget(), getCommonParent(), context);
context.getTarget(), commonParent, context);
}
/** {@inheritDoc} */
@Override
public void execute() {
IConnectionCompositorService.getInstance().connect(context.getSource(), context.getTarget(),
getCommonParent(), context);
IConnectionCompositorService.getInstance().connect(context.getSource(),
context.getTarget(), getCommonParent(), context);
}
/** Returns the common parent. */
......
......@@ -30,7 +30,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 4EE31C09FB94713D877AE61E125129A1
* @ConQAT.Rating GREEN Hash: DFD7618360B797548A1B8EAFF74DF897
*/
public class ReconnectCommand extends ConnectCommand {
......
......@@ -28,7 +28,7 @@ import org.fortiss.tooling.kernel.service.IElementCompositorService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 377AAA7195C60BBBE185E47F6BD744E9
* @ConQAT.Rating GREEN Hash: 11176940618378A24D233BEFC0EA373F
*/
public class RemoveCommand extends Command {
/** The entity to be removed. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment