Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 205517 Details for
Bug 361382
Memory leaks in profiling.ext
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed patch
memory_leak_profiling.patch (text/plain), 2.03 KB, created by
Tatiana Fesenko
on 2011-10-19 08:35:09 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Tatiana Fesenko
Created:
2011-10-19 08:35:09 EDT
Size:
2.03 KB
patch
obsolete
>From fed8ac636b9f022db77c40777f27d302b9263eff Mon Sep 17 00:00:00 2001 >From: tfesenko <tatiana.fesenko@gmail.com> >Date: Wed, 19 Oct 2011 16:33:05 +0400 >Subject: [PATCH] Bug 361382 - Memory leaks in profiling.ext > >--- > .../uml2/profile/ProfilingExtensions.java | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/plugins/org.eclipse.xtend.typesystem.uml2/src/org/eclipse/xtend/typesystem/uml2/profile/ProfilingExtensions.java b/plugins/org.eclipse.xtend.typesystem.uml2/src/org/eclipse/xtend/typesystem/uml2/profile/ProfilingExtensions.java >index 3042772..d85fbe8 100644 >--- a/plugins/org.eclipse.xtend.typesystem.uml2/src/org/eclipse/xtend/typesystem/uml2/profile/ProfilingExtensions.java >+++ b/plugins/org.eclipse.xtend.typesystem.uml2/src/org/eclipse/xtend/typesystem/uml2/profile/ProfilingExtensions.java >@@ -52,7 +52,7 @@ public class ProfilingExtensions { > setMetaModelPackage(UMLPackage.class.getName()); > } > >- public Element load (String file) { >+ public Element load (Element element, String file) { > setModelFile(file); > Issues issues = new IssuesImpl(); > final File f = loadFile(issues); >@@ -61,7 +61,7 @@ public class ProfilingExtensions { > } > final URI fileURI = URI.createFileURI(f.getAbsolutePath()); > >- final Resource r = new ResourceSetImpl().createResource(fileURI); >+ final Resource r = element.eResource().getResourceSet().createResource(fileURI); > try { > r.load(null); > } catch (final IOException e) { >@@ -72,6 +72,7 @@ public class ProfilingExtensions { > } > return (Element) r.getContents().get(0); > } >+ > } > > /** >@@ -85,7 +86,7 @@ public class ProfilingExtensions { > if (!uri.endsWith(".profile.uml2") && !uri.endsWith(".profile.uml")) { > uri += ".profile.uml"; > } >- Profile profile = (Profile) new XmiReader().load(uri); >+ Profile profile = (Profile) new XmiReader().load(model, uri); > if (profile==null) { > throw new NullPointerException("Profile '"+uri+"' not loaded."); > } >-- >1.7.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 361382
:
205511
|
205517
|
205520
|
205531