JBoss Community

Re: Has some way that the editor only shows me some part of a file that is passed as input?

created by Denis Golovin in JBoss Tools Development - View the full discussion

I would implement IStorage interface wrapper that controls what part of InputStream instance from getContents() to return.

Then I would implement wrapper around FileEditoInput with overridden method getStorage(). This method should return IStorage implementation wrapper described above which wraps real IStorage instance returned by real FileEditorInput instance. All this wrappers should have start position in file and length parameters to control what part of file should be presented in editor.

Reply to this message by going to Community

Start a new discussion in JBoss Tools Development at Community