4 comments
Comment actions Permalink

PsiLanguageInjector in Demetra

Taras Tielkes wrote:


One before last feature on the list:
http://www.jetbrains.com/idea/features/newfeatures.html

What is it? Where is it? :)



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hello Taras,

TT> One before last feature on the list:
TT> http://www.jetbrains.com/idea/features/newfeatures.html
TT> What is it? Where is it? :)

http://www.jetbrains.com/idea/documentation/dom-rp.html

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks Dmitry/Maxim,

TT>> One before last feature on the list:
TT>> http://www.jetbrains.com/idea/features/newfeatures.html What is it?
TT>> Where is it? :)
TT>>

http://www.jetbrains.com/idea/documentation/dom-rp.html


Two questions:
1) Inside my custom language, I'd like to support Class Name completion (for
custom language elements that refer to java classes in the current project).
Is there any infrastructure/support to help with this?

2) If (1) is possible (perhaps this is where that CompletionData stuff comes
in?), will it still work when I embed my language (say inside an XML attribute).
The reason I ask this is because default XML editor already has classname
completion inside attribute values, and when I inject I want to override
this (make it more specific).


0
Comment actions Permalink

1) Inside my custom language, I'd like to support Class Name completion (for
custom language elements that refer to java classes in the current project).
Is there any infrastructure/support to help with this?


Basic support for this is incredibly easy to get: Make your attribute's type PsiClass.
You can also easily restrict the allowed classes to a certain super class/interface:

 getExceptionClass();
]]>

0

Please sign in to leave a comment.