Commit e291ef96 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

GREEN

refs 2490
parent 198a0c29
......@@ -48,7 +48,7 @@ import org.fortiss.tooling.kernel.ui.dnd.ElementCompositionSource;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 1F1B1C76D3EB47B9BE88AA8A385B1047
* @ConQAT.Rating GREEN Hash: 841858B06FB1EA0A45B584615BA2FEF2
*/
public abstract class RelayCreateCommandEditPolicyBase extends LayoutEditPolicy {
......@@ -137,7 +137,7 @@ public abstract class RelayCreateCommandEditPolicyBase extends LayoutEditPolicy
final EObject droppedElement = dragSource.getDesignatedElement();
org.fortiss.tooling.base.model.layout.Point modelPoint =
LayoutModelElementFactory.createPoint(location.x, location.y, "ComposisitonPoint");
LayoutModelElementFactory.createPoint(location.x, location.y, "CompositionPoint");
final IElementCompositionContext context;
Control viewerControl = getHost().getRoot().getViewer().getControl();
......@@ -160,13 +160,14 @@ public abstract class RelayCreateCommandEditPolicyBase extends LayoutEditPolicy
return new Command() {
@Override
public boolean canExecute() {
return IElementCompositorService.getInstance().canCompose(targetElement, droppedElement,
context);
return IElementCompositorService.getInstance().canCompose(targetElement,
droppedElement, context);
}
@Override
public void execute() {
IElementCompositorService.getInstance().compose(targetElement, droppedElement, context);
IElementCompositorService.getInstance().compose(targetElement, droppedElement,
context);
}
};
}
......
......@@ -36,7 +36,7 @@ import org.fortiss.tooling.kernel.service.IElementCompositorService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 5C4A95BCE8E364DA589E9BF07082B603
* @ConQAT.Rating GREEN Hash: 60C93957AA166B83D6B90A1FB14141D3
*/
public final class RemoveEditPolicy extends ComponentEditPolicy {
......
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