[jboss-dev-forums] [JBoss Tools Development] - Re: Has some way that the editor only shows me some part of a file that is passed as input?
Denis Golovin
do-not-reply at jboss.com
Thu Dec 23 17:03:12 EST 2010
Denis Golovin [http://community.jboss.org/people/dgolovin] created the discussion
"Re: Has some way that the editor only shows me some part of a file that is passed as input?"
To view the discussion, visit: http://community.jboss.org/message/577435#577435
--------------------------------------------------------------
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
[http://community.jboss.org/message/577435#577435]
Start a new discussion in JBoss Tools Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2129]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101223/7818bc5d/attachment.html
More information about the jboss-dev-forums
mailing list