Opening file without opening an editor

Hi,

Is it possible to open a file without opening it in an editor?
I want to programmatically open a file and examine the PSI-tree but also let the user open the file in an editor. For both kinds of opening the file I want to use the same lexer and parser.

Cheers,
Robert

2 comments
Comment actions Permalink

You should register file type for using custom lexer and parser. The IDE uses the registered file type in both cases.

Get PSI tree without opening file in the editor:

0
Comment actions Permalink

Thanks,
That's what I was looking for.

Cheers,
Robert

0

Please sign in to leave a comment.