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
198a0c29
Commit
198a0c29
authored
Jul 27, 2016
by
Vincent Aravantinos
Browse files
GREEN
refs 2490
parent
3aacccee
Changes
4
Hide whitespace changes
Inline
Side-by-side
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/command/AllocationConnectCommand.java
View file @
198a0c29
...
...
@@ -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
();
}
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/command/ConnectCommand.java
View file @
198a0c29
...
...
@@ -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
(),
getC
ommonParent
()
,
context
);
context
.
getTarget
(),
c
ommonParent
,
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. */
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/command/ReconnectCommand.java
View file @
198a0c29
...
...
@@ -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
{
...
...
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/command/RemoveCommand.java
View file @
198a0c29
...
...
@@ -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. */
...
...
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