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; ...@@ -29,7 +29,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService;
* @author eder * @author eder
* @author $Author: hoelzl $ * @author $Author: hoelzl $
* @version $Rev: 18709 $ * @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: C68C860132EB42C76F5F8859412D0FA3 * @ConQAT.Rating GREEN Hash: 6BF89529AB463C510304C22641E1FD46
*/ */
public class AllocationConnectCommand extends ConnectCommand { public class AllocationConnectCommand extends ConnectCommand {
...@@ -42,9 +42,9 @@ public class AllocationConnectCommand extends ConnectCommand { ...@@ -42,9 +42,9 @@ public class AllocationConnectCommand extends ConnectCommand {
@Override @Override
public boolean canExecute() { public boolean canExecute() {
if(context instanceof AllocationConnectionDragContext) { if(context instanceof AllocationConnectionDragContext) {
EObject root = ((AllocationConnectionDragContext)context).getAllocationRoot();
return IConnectionCompositorService.getInstance().canConnect(context.getSource(), return IConnectionCompositorService.getInstance().canConnect(context.getSource(),
context.getTarget(), context.getTarget(), root, context);
((AllocationConnectionDragContext)context).getAllocationRoot(), context);
} }
return super.canExecute(); return super.canExecute();
} }
...@@ -54,8 +54,8 @@ public class AllocationConnectCommand extends ConnectCommand { ...@@ -54,8 +54,8 @@ public class AllocationConnectCommand extends ConnectCommand {
public void execute() { public void execute() {
if(context instanceof AllocationConnectionDragContext) { if(context instanceof AllocationConnectionDragContext) {
EObject commonParent = ((AllocationConnectionDragContext)context).getAllocationRoot(); EObject commonParent = ((AllocationConnectionDragContext)context).getAllocationRoot();
IConnectionCompositorService.getInstance().connect(context.getSource(), context.getTarget(), IConnectionCompositorService.getInstance().connect(context.getSource(),
commonParent, context); context.getTarget(), commonParent, context);
} else { } else {
super.execute(); super.execute();
} }
......
...@@ -36,7 +36,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService; ...@@ -36,7 +36,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: AE18C22681C0854DF2F8DE6607E9E396 * @ConQAT.Rating GREEN Hash: F7D3596F1BC65D2B558627125DCB05AA
*/ */
public class ConnectCommand extends Command { public class ConnectCommand extends Command {
...@@ -69,14 +69,14 @@ public class ConnectCommand extends Command { ...@@ -69,14 +69,14 @@ public class ConnectCommand extends Command {
return false; return false;
} }
return IConnectionCompositorService.getInstance().canConnect(context.getSource(), return IConnectionCompositorService.getInstance().canConnect(context.getSource(),
context.getTarget(), getCommonParent(), context); context.getTarget(), commonParent, context);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public void execute() { public void execute() {
IConnectionCompositorService.getInstance().connect(context.getSource(), context.getTarget(), IConnectionCompositorService.getInstance().connect(context.getSource(),
getCommonParent(), context); context.getTarget(), getCommonParent(), context);
} }
/** Returns the common parent. */ /** Returns the common parent. */
......
...@@ -30,7 +30,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService; ...@@ -30,7 +30,7 @@ import org.fortiss.tooling.kernel.service.IConnectionCompositorService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 4EE31C09FB94713D877AE61E125129A1 * @ConQAT.Rating GREEN Hash: DFD7618360B797548A1B8EAFF74DF897
*/ */
public class ReconnectCommand extends ConnectCommand { public class ReconnectCommand extends ConnectCommand {
......
...@@ -28,7 +28,7 @@ import org.fortiss.tooling.kernel.service.IElementCompositorService; ...@@ -28,7 +28,7 @@ import org.fortiss.tooling.kernel.service.IElementCompositorService;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: 377AAA7195C60BBBE185E47F6BD744E9 * @ConQAT.Rating GREEN Hash: 11176940618378A24D233BEFC0EA373F
*/ */
public class RemoveCommand extends Command { public class RemoveCommand extends Command {
/** The entity to be removed. */ /** 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