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
c16a3d30
Commit
c16a3d30
authored
10 years ago
by
Vincent Aravantinos
Browse files
Options
Downloads
Patches
Plain Diff
GREEN
refs 2255
parent
eb2c6cfc
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/trunk/src/org/fortiss/tooling/base/decompose/HierarchicElementCompositorBase.java
+7
-5
7 additions, 5 deletions
...oling/base/decompose/HierarchicElementCompositorBase.java
with
7 additions
and
5 deletions
org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/decompose/HierarchicElementCompositorBase.java
+
7
−
5
View file @
c16a3d30
...
...
@@ -17,6 +17,8 @@ $Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $
+--------------------------------------------------------------------------*/
package
org.fortiss.tooling.base.decompose
;
import
static
org
.
eclipse
.
emf
.
ecore
.
util
.
EcoreUtil
.
delete
;
import
java.util.ArrayList
;
import
org.eclipse.emf.common.util.EList
;
...
...
@@ -42,7 +44,7 @@ import org.fortiss.tooling.kernel.service.IElementCompositorService;
* @author doebber
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating
YELLOW
Hash:
7930B470229B0EAC5753481DE76C2F27
* @ConQAT.Rating
GREEN
Hash:
947DAC5D876A9B751C2758DAA989ED54
*/
public
abstract
class
HierarchicElementCompositorBase
<
HE
extends
IHierarchicElementContainer
>
implements
IElementCompositor
<
HE
>
{
...
...
@@ -214,7 +216,7 @@ public abstract class HierarchicElementCompositorBase<HE extends IHierarchicElem
*/
protected
boolean
decomposeReference
(
IModelElementReference
element
)
{
element
.
setReference
(
null
);
EcoreUtil
.
delete
(
element
,
true
);
delete
(
element
,
true
);
return
true
;
}
...
...
@@ -226,13 +228,13 @@ public abstract class HierarchicElementCompositorBase<HE extends IHierarchicElem
if
(
IElementCompositorService
.
INSTANCE
.
canDecompose
(
element
))
{
return
IElementCompositorService
.
INSTANCE
.
decompose
(
element
);
}
EcoreUtil
.
delete
(
element
,
true
);
delete
(
element
,
true
);
return
true
;
}
/**
* Base implementation returns compositors' decomposition by default and
* invokes {@link EcoreUtil#delete(EObject, boolean)} otherwise Subclasses may override.
* invokes {@link EcoreUtil#delete(EObject, boolean)} otherwise
.
Subclasses may override.
*/
protected
boolean
decomposeConnector
(
IConnector
element
)
{
ArrayList
<
IConnection
>
list
=
new
ArrayList
<
IConnection
>(
element
.
getIncoming
());
...
...
@@ -253,7 +255,7 @@ public abstract class HierarchicElementCompositorBase<HE extends IHierarchicElem
/**
* Base implementation returns compositors' decomposition by default and
* invokes {@link EcoreUtil#delete(EObject, boolean)} otherwise Subclasses may override.
* invokes {@link EcoreUtil#delete(EObject, boolean)} otherwise
.
Subclasses may override.
*/
protected
boolean
decomposeConnection
(
IConnection
conn
)
{
return
IConnectionCompositorService
.
INSTANCE
.
disconnect
(
conn
);
...
...
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