History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-2979
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: Keith Lea
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Add putWeakUserData to PsiElement

Created: 30 May 05 01:53   Updated: 30 May 05 17:48
Component/s: Plugin Support. API
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,341
Severity: Low


 Description  « Hide
I'd like to be able to store user data in a PsiElement which will go away if the key is garbage collected, like WeakHashMap does.

Otherwise I don't think there's a way to store userdata in a PSI tree for temporary use without having to go through recursively removing each userdata for the key, when finished using it.

A getWeakUserData method would be unnecessary; weak user data could be retrieved using getUserData, transparently to the API user.

A corresponding putWeakCopyableUserData should be added as well.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.