I try to use EditorTextField to implement a customed text filed , and everything is ok.But It will throw a exception when close a project.
I google the throwed exception info for answers,and find that I need to call EditorFactory.getInstance().releaseEditor(myEditorTextField.getEditor()) explicitly.
I tried the following methods, but it still does not work:
- Implement Disposal interface , and release the editor in dispose() method
- Create a new class that implement ProjectComponent , and release the editor in the projectClosed() method
- Override the finalize() function
how to fix this ?