Goutham Prasad
Goutham Prasad

Reputation: 169

How to destroy a dynamically created part in eclipse 4 rcp

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

Answers (1)

greg-449
greg-449

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

Related Questions