Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-04-18 15:00:33 +0000
committerChristian W. Damus2014-04-23 22:50:03 +0000
commit6b5bd4e873c98eaf0e65789c72a6ffd209201fa9 (patch)
tree423e3efb3923df96cd5488696370a46f1509b878 /plugins/views
parent0f5c62c58c9ca14d38c46d1fc9b2b757880495f0 (diff)
downloadorg.eclipse.papyrus-6b5bd4e873c98eaf0e65789c72a6ffd209201fa9.tar.gz
org.eclipse.papyrus-6b5bd4e873c98eaf0e65789c72a6ffd209201fa9.tar.xz
org.eclipse.papyrus-6b5bd4e873c98eaf0e65789c72a6ffd209201fa9.zip
422257: [Performances] Memory leaks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=422257 Add memory leak JUnit tests for basic model editor open/close scenario.
Diffstat (limited to 'plugins/views')
-rw-r--r--plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerView.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerView.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerView.java
index cfd2a446518..11de6ead59e 100644
--- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerView.java
+++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerView.java
@@ -904,12 +904,7 @@ public class ModelExplorerView extends CommonNavigator implements IRevealSemanti
public static void reveal(Iterable<?> elementList, final CommonViewer commonViewer) {
ArrayList<IMatchingItem> matchingItemsToSelect = new ArrayList<IMatchingItem>();
// filter out non EMF objects
- Iterable<EObject> list = Iterables.transform(Iterables.filter(elementList, EObject.class), new Function<Object, EObject>() {
-
- public EObject apply(Object from) {
- return (EObject)from;
- }
- });
+ Iterable<EObject> list = Iterables.filter(elementList, EObject.class);
for(EObject currentEObject : list) {
matchingItemsToSelect.add(new ModelElementItemMatchingItem(currentEObject));

Back to the top