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
13695814
Commit
13695814
authored
13 years ago
by
Florian Hölzl
Browse files
Options
Downloads
Patches
Plain Diff
fixed bend point NPE.
refs 352
parent
69f5ba96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/ConnectionEditPartBase.java
+14
-9
14 additions, 9 deletions
...tiss/tooling/base/ui/editpart/ConnectionEditPartBase.java
with
14 additions
and
9 deletions
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/ConnectionEditPartBase.java
+
14
−
9
View file @
13695814
...
...
@@ -66,6 +66,13 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
public
abstract
class
ConnectionEditPartBase
<
T
extends
ConnectionSegmentBase
>
extends
AbstractConnectionEditPart
{
/**
* Stores the diagram layout configuration. Since connections are contained
* in the root layer, the configuration must be stored here. The parent
* cannot be used.
*/
protected
final
IDiagramLayoutConfiguration
layoutConfiguration
;
/** The underlying model object. */
protected
final
T
modelElement
;
...
...
@@ -97,8 +104,10 @@ public abstract class ConnectionEditPartBase<T extends ConnectionSegmentBase>
/** Constructor. */
@SuppressWarnings
(
"unchecked"
)
protected
ConnectionEditPartBase
(
T
modelElement
)
{
protected
ConnectionEditPartBase
(
T
modelElement
,
IDiagramLayoutConfiguration
layoutConfiguration
)
{
this
.
modelElement
=
modelElement
;
this
.
layoutConfiguration
=
layoutConfiguration
;
setModel
(
modelElement
);
this
.
modelElementHandler
=
(
IModelElementHandler
<
T
>)
IModelElementHandlerService
.
INSTANCE
.
getModelElementHandler
(
modelElement
);
...
...
@@ -276,15 +285,11 @@ public abstract class ConnectionEditPartBase<T extends ConnectionSegmentBase>
/**
* Returns the layout configuration for the diagram containing this
* connection edit part. This method delegates to its parent graphical edit
* part.
* connection edit part. This method delegates does not delegate to the
* parent edit part, since the parent is the root layer, unfortunately not
* the diagram edit part.
*/
@SuppressWarnings
(
"rawtypes"
)
public
IDiagramLayoutConfiguration
getLayoutConfiguration
()
{
if
(
getParent
()
instanceof
GraphicalEditPartBase
)
{
return
((
GraphicalEditPartBase
)
getParent
())
.
getLayoutConfiguration
();
}
return
null
;
return
layoutConfiguration
;
}
}
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