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
fda28685
Commit
fda28685
authored
13 years ago
by
Daniel Ratiu
Browse files
Options
Downloads
Patches
Plain Diff
code improvements to accomodate MSC editors
refs 693
parent
0548d988
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/layout/RectangleGridLayoutDiagramConfiguration.java
+11
-3
11 additions, 3 deletions
...se/ui/layout/RectangleGridLayoutDiagramConfiguration.java
with
11 additions
and
3 deletions
org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/layout/RectangleGridLayoutDiagramConfiguration.java
+
11
−
3
View file @
fda28685
...
...
@@ -52,7 +52,7 @@ import org.fortiss.tooling.base.ui.utils.LayoutDataUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash:
D47CAC361395764DABE025B37FFBF163
* @ConQAT.Rating
YELLOW
Hash:
23C911F8A8FC42CEF3B3271ED0277B6F
*/
public
class
RectangleGridLayoutDiagramConfiguration
extends
DiagramLayoutConfigurationBase
{
...
...
@@ -102,8 +102,7 @@ public class RectangleGridLayoutDiagramConfiguration extends
StickyConnectorEditPartBase
<?
extends
ILayoutedModelElement
>
connectorEditPart
,
IFigure
connectorFigure
)
{
// get the bounds of the parent
Rectangle
containerBounds
=
getNodeBounds
(
connectorEditPart
.
getParentEditPart
().
getModel
());
Rectangle
containerBounds
=
getContainerBounds
(
connectorEditPart
);
// get the child position relative to the parent
Point
childPos
=
connectorFigure
.
getBounds
().
getLocation
()
.
getTranslated
(
containerBounds
.
getLocation
().
getNegated
());
...
...
@@ -141,6 +140,15 @@ public class RectangleGridLayoutDiagramConfiguration extends
request
.
setMoveDelta
(
relativePos
);
}
/**
* Returns the bounds of the container figure on the edges of which the
* connector will be sticked.
*/
protected
Rectangle
getContainerBounds
(
StickyConnectorEditPartBase
<?
extends
ILayoutedModelElement
>
connectorEditPart
)
{
return
getNodeBounds
(
connectorEditPart
.
getParentEditPart
().
getModel
());
}
/** {@inheritDoc} */
@Override
public
void
alterElementMoveAndResizeFeedbackRequest
(
...
...
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