4 comments

VirtualFile file;
Project project;

OpenFileDescriptior descriptor = new OpenFileDescriptior(file);
FileEditorManager.getInstance(project).openTextEditor(descriptor, true);

--
Best regards,
Olesya Smirnova
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"yang" <szysy@21cn.com> wrote in message
news:bqrk86$lrg$1@is.intellij.net...

thanks

>
>


0

thank u~~

"Olesya Smirnova (JetBrains)" <lesya@intellij.com> дÈëÓʼþ
news:bqt07d$v51$1@is.intellij.net...

VirtualFile file;



0

Is it possible to use standard editor with highlighting? For example, can i
pass PsiFile to editor?
And, can i "change" file meaning. For example i get some VirtualFile,
"*.class", i read it - "decompile" for example and now pass it to editor as
"*.java". Is it possible?
Thanks!

"Olesya Smirnova (JetBrains)" <lesya@intellij.com> wrote in message
news:bqt07d$v51$1@is.intellij.net...

VirtualFile file;
Project project;

>

OpenFileDescriptior descriptor = new OpenFileDescriptior(file);
FileEditorManager.getInstance(project).openTextEditor(descriptor, true);

>

--
Best regards,
Olesya Smirnova
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"yang" <szysy@21cn.com> wrote in message
news:bqrk86$lrg$1@is.intellij.net...

thanks

>
>

>
>


0

Is it possible to use standard editor with highlighting? For example, can

i

pass PsiFile to editor?
And, can i "change" file meaning. For example i get some VirtualFile,
"*.class", i read it - "decompile" for example and now pass it to editor

as

"*.java". Is it possible?


Could you please describe more exactly what you neeed in both this cases? I
did not understand.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"Alexey Efimov" <aefimov@spklabs.com> wrote in message
news:br1bcd$fde$1@is.intellij.net...

Is it possible to use standard editor with highlighting? For example, can

i

pass PsiFile to editor?
And, can i "change" file meaning. For example i get some VirtualFile,
"*.class", i read it - "decompile" for example and now pass it to editor

as

"*.java". Is it possible?
Thanks!

>

"Olesya Smirnova (JetBrains)" <lesya@intellij.com> wrote in message
news:bqt07d$v51$1@is.intellij.net...

VirtualFile file;
Project project;

>

OpenFileDescriptior descriptor = new OpenFileDescriptior(file);
FileEditorManager.getInstance(project).openTextEditor(descriptor, true);

>

--
Best regards,
Olesya Smirnova
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"yang" <szysy@21cn.com> wrote in message
news:bqrk86$lrg$1@is.intellij.net...

thanks

>
>

>
>

>
>


0

Please sign in to leave a comment.