Reputation: 169
Can anybody please help me out on how to destroy a dynamically created part. I am using partservice to create a part dynamically from a partdescriptor. i know we can hide the created part, But i think the context still has the object saved in some list so it is not removed from the heap space which in turn increases the memory. so is there a way where i can destroy the part like how we dispose a widget in SWT.
Upvotes: 2
Views: 1053
Reputation: 111142
Add removeOnHide
to the Tags
section of the part descriptor (and make sure it is copied to the created part!). This constant is declared in EPartService
.
Upvotes: 6