Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
kernel
Commits
e291ef96
Commit
e291ef96
authored
Jul 27, 2016
by
Vincent Aravantinos
Browse files
GREEN
refs 2490
parent
198a0c29
Changes
2
Hide whitespace changes
Inline
Side-by-side
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/policy/RelayCreateCommandEditPolicyBase.java
View file @
e291ef96
...
...
@@ -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
,
"Composi
si
tonPoint"
);
LayoutModelElementFactory
.
createPoint
(
location
.
x
,
location
.
y
,
"Composit
i
onPoint"
);
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
);
}
};
}
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/policy/RemoveEditPolicy.java
View file @
e291ef96
...
...
@@ -36,7 +36,7 @@ import org.fortiss.tooling.kernel.service.IElementCompositorService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
5C4A95BCE8E364DA589E9BF07082B60
3
* @ConQAT.Rating
GREEN
Hash:
60C93957AA166B83D6B90A1FB14141D
3
*/
public
final
class
RemoveEditPolicy
extends
ComponentEditPolicy
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment