Since 1050, FoldRegion implements UserDataHolder.
=> When extending FoldRegion, you now have to
- use generics, and
- add the 2 UserDataHolder methods, that have parametrized parameters.
I get the following error message on the method parametrized parameters
"type com.intellij.openapi.util.Key does not take parameters."
=> the code below - generated by - doesn't compile anymore :
(Note: I added collect.jar to the project, and I put it first in the
Is there a workaround, or am I doing something wrong?
code that doesn't compile anymore
T getUserData ( Key i_key )
return null; //To change body of implemented methods use
Options | File Templates.
public void putUserData ( Key i_key, T i_t )
//To change body of implemented methods use Options | File