Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
af3
kernel
Commits
52a950e2
Commit
52a950e2
authored
8 years ago
by
Vincent Aravantinos
Browse files
Options
Downloads
Patches
Plain Diff
applies the fix discussed in jour fixe
refs 2533
parent
2c514fd9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/compose/HierarchicElementConnectionCompositorBase.java
+11
-5
11 additions, 5 deletions
...se/compose/HierarchicElementConnectionCompositorBase.java
with
11 additions
and
5 deletions
org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/compose/HierarchicElementConnectionCompositorBase.java
+
11
−
5
View file @
52a950e2
...
...
@@ -29,15 +29,15 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
1BD22D874FBCDB5B4FDA7536828BA425
* @ConQAT.Rating YELLOW Hash:
7A3C53940D04EA617F6AB4B38AB87C9E
*/
public
abstract
class
HierarchicElementConnectionCompositorBase
<
HE
extends
IHierarchicElement
,
S
extends
IHierarchicElement
,
T
extends
IHierarchicElement
>
extends
ConnectionCompositorBase
<
HE
,
S
,
T
>
{
/** Creates the application specific
source
{@link IConnector} model element. */
/** Creates the application specific
entry
{@link IConnector} model element. */
protected
abstract
IConnector
createEntryConnector
();
/** Creates the application specific
targe
t {@link IConnector} model element. */
/** Creates the application specific
exi
t {@link IConnector} model element. */
protected
abstract
IConnector
createExitConnector
();
/** {@inheritDoc} */
...
...
@@ -49,9 +49,15 @@ public abstract class HierarchicElementConnectionCompositorBase<HE extends IHier
/** {@inheritDoc} */
@Override
public
boolean
connect
(
S
source
,
T
target
,
HE
parent
,
IConnectionCompositionContext
context
)
{
IConnector
sourceConnector
=
createEntryConnector
();
// By default, exit connectors are source connectors.
// Explanation: exit connectors exit a hierarchically contained model element, i.e., it goes
// from the "inside" to the "outside" of the element. Most of the time (hence the face that
// it is the default behavior) a connection is drawn from "outside" the element, therefore
// the exit connector is considered as the source by default.
IConnector
sourceConnector
=
createExitConnector
();
avoidDuplicateConnectorName
(
source
,
sourceConnector
);
IConnector
targetConnector
=
createExitConnector
();
// And conversely entry connectors are target connectors.
IConnector
targetConnector
=
createEntryConnector
();
avoidDuplicateConnectorName
(
target
,
targetConnector
);
ITopLevelElement
topElement
=
IPersistencyService
.
getInstance
().
getTopLevelElementFor
(
parent
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment