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
1d7f6461
Commit
1d7f6461
authored
13 years ago
by
Florian Hölzl
Browse files
Options
Downloads
Patches
Plain Diff
fixed platform architecture transformation algorithm
refs 136
parent
c5d3c227
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.kernel/trunk/src/org/fortiss/tooling/kernel/utils/TransformationUtils.java
+18
-0
18 additions, 0 deletions
...org/fortiss/tooling/kernel/utils/TransformationUtils.java
with
18 additions
and
0 deletions
org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/TransformationUtils.java
+
18
−
0
View file @
1d7f6461
...
...
@@ -75,4 +75,22 @@ public final class TransformationUtils {
}
};
}
/**
* Searches a transformation chain for the given model element and the
* target class and returns the transformation result. This method returns
* <code>null</code> if the transformation failed. The exception is
* suppressed.
*/
public
static
<
T
extends
Object
>
T
createTransformedObjectWithoutExceptionFor
(
final
EObject
modelElement
,
final
Class
<
T
>
targetClass
,
ITransformationContext
context
)
{
try
{
T
result
=
createTransformedObjectFor
(
modelElement
,
targetClass
,
context
);
return
result
;
}
catch
(
ChainTransformationFailedException
ctfe
)
{
return
null
;
}
}
}
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