You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java/bundles/org.eclipse.set.feature.table/src/org/eclipse/set/feature/table/overview/TableOverviewPart.java
Copy file name to clipboardExpand all lines: java/bundles/org.eclipse.set.model.tablemodel.extensions/src/org/eclipse/set/model/tablemodel/extensions/TableExtensions.xtend
Copy file name to clipboardExpand all lines: java/bundles/org.eclipse.set.ppmodel.extensions/src/org/eclipse/set/ppmodel/extensions/EObjectExtensions.xtend
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
*/
9
9
packageorg.eclipse.set.ppmodel.extensions
10
10
11
+
importjava.util.List
11
12
importjava.util.Optional
12
13
importorg.eclipse.emf.ecore.EObject
13
14
importorg.eclipse.emf.ecore.EStructuralFeature
@@ -129,7 +130,21 @@ class EObjectExtensions {
129
130
try {
130
131
returnOptional.ofNullable(func.apply(t))
131
132
} catch(NullPointerException e) {
133
+
logger.debug(e.message)
132
134
returnOptional.empty
133
135
}
134
136
}
137
+
138
+
static def <T>Optional<T> getIndexOutBoundableObject(List<T> t, int index) {
0 commit comments