how to create an editable components for GEF Eclipse
I want to create a component kind of Text Box for GEF Eclipse. I am able to create component but not ab开发者_开发知识库le to make it editable. How to achieve the desired.
In GEF there is direct edit mechanism that can be used for these for these kind of purposes.
When you double click the editpart, it should create direct edit request. I believe this request is then by default send to the request to EditParts editpolicies.
So you should probably install this direct edit editpolicy and that returns cell editor.
It might be that actually installing the direct edit editpolicy provides you the text editor when double clicked, and all of this parts can be modified if the outlook of default implementation is not good.
I checked that it seems that there isn't easy examples about the subject, but there was some talks that "logical" example contains direct edit support.
精彩评论