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
a86e5236
Commit
a86e5236
authored
9 years ago
by
Simon Barner
Browse files
Options
Downloads
Patches
Plain Diff
Avoid empty catch
parent
e603e721
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/annotation/valueprovider/EStructuralFeatureDescriptor.java
+6
-5
6 additions, 5 deletions
...nnotation/valueprovider/EStructuralFeatureDescriptor.java
with
6 additions
and
5 deletions
org.fortiss.tooling.base/trunk/src/org/fortiss/tooling/base/annotation/valueprovider/EStructuralFeatureDescriptor.java
+
6
−
5
View file @
a86e5236
...
...
@@ -39,7 +39,7 @@ import org.fortiss.tooling.base.model.element.IModelElement;
* @author barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash: 6
CDDBEDED2A34C65AF1C5FD5315651A9
* @ConQAT.Rating
YELLOW
Hash: 6
6AEDAE9850DC4A70B474DD380C21D9F
*/
public
class
EStructuralFeatureDescriptor
{
/**
...
...
@@ -149,6 +149,9 @@ public class EStructuralFeatureDescriptor {
* @param specification
* Specification for which the set of available objects is computed.
*
* @return {@code true} iff an object is available to be selected for an {@link EReference}
* structural feature of an annotation.
*
*/
public
boolean
isAvailableObject
(
EObject
obj
,
IAnnotatedSpecification
specification
,
EObject
modelElement
)
{
...
...
@@ -160,13 +163,11 @@ public class EStructuralFeatureDescriptor {
* {@link EStructuralFeatureDescriptor}.
*/
public
EClassifier
getEType
(
IAnnotatedSpecification
specification
)
{
EClassifier
eType
=
null
;
try
{
eType
=
getEStructuralFeature
(
specification
).
getEType
();
return
getEStructuralFeature
(
specification
).
getEType
();
}
catch
(
Exception
e
)
{
// Ignore
return
null
;
}
return
eType
;
}
/**
...
...
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