Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Artem Khvastunov
Total activity
142
Last activity
December 01, 2022 09:21
Member since
April 21, 2017 10:34
Following
0 users
Followed by
0 users
Votes
6
Subscriptions
51
Activity overview
Articles (0)
Posts (0)
Comments (85)
Sort by recent activity
Recent activity
Votes
Edited
June 09, 2017 08:27
Official comment
Hi Nicolas, I'd recommend you to put a breakpoint and take a look at runtime what you get as a parent. Alternatively, you can write something like this println(element.parent.javaClass)
Community
IntelliJ IDEA Open API and Plugin Development
PHP Psi Elements comparison not working
0 votes
Edited
May 27, 2017 15:50
The next code snippet should help you. InjectedLanguageManager.getInstance(psiElement.getProject()).isInjectedFragment(psiElement.getContainingFile()) P.S. Also, as we both now know that I'm bad in...
Community
IntelliJ IDEA Open API and Plugin Development
Recognizing html tag inside of php string
0 votes
Edited
May 27, 2017 15:42
Official comment
I don't know how do you find HTML tags but I try to guess and would suggest you to work with XmlFile instead of PhpFile. final FileViewProvider viewProvider = phpFile.getViewProvider();final PsiFil...
Community
IntelliJ IDEA Open API and Plugin Development
Recognizing html tag inside of php string
0 votes
Edited
May 26, 2017 08:10
The first thing you should do is to use TextFieldWithAutoCompletion#installProvider instead of TextFieldWithAutoCompletion#setVariants. Implementing TextFieldWithAutoCompletionListProvider will all...
Community
IntelliJ IDEA Open API and Plugin Development
[PhpStorm] Get All FQN class Names
0 votes
Created
May 24, 2017 09:44
I really doubt maintaining your own index will solve performance problems in a long term perspective. We're working hard to keep PhpStorm as fast as possible so there are a lot of optimizations app...
Community
IntelliJ IDEA Open API and Plugin Development
[PhpStorm] Get All FQN class Names
1 vote
Edited
May 22, 2017 10:02
Official comment
Hi Enrique, Depending on what you want to achieve, your code could look something like this final List<PhpClass> result = new ArrayList<>();final PhpIndex index = PhpIndex.getInstance(project);fina...
Community
IntelliJ IDEA Open API and Plugin Development
[PhpStorm] Get All FQN class Names
0 votes
Edited
May 15, 2017 16:26
Well, I had to mention it from the very beginning. In general, it's not a good idea to insert PHP PSI elements into an HTML tree. Instead, you should just put your text directly into a document. It...
Community
IntelliJ IDEA Open API and Plugin Development
How to insert php-statement into html tag ?
0 votes
Created
May 11, 2017 11:16
Official comment
> But I can't create PsiElement with text "<?=SomeClass::getSomeString(); ?>" :( This is because the string consists of actually 4 PsiElements: an opening tag, an echo statement, a white space, and...
Community
IntelliJ IDEA Open API and Plugin Development
How to insert php-statement into html tag ?
0 votes
Edited
May 08, 2017 10:14
Official comment
PhpPsiElementFactory is located in php.jar. While it's an internal class and subject to change, you can still use it. final String text = "$qb->addSelect('a');";final Statement statement = PhpPsiEl...
Community
IntelliJ IDEA Open API and Plugin Development
PHPstorm plugin create statement
0 votes
Created
April 21, 2017 10:34
Official comment
Hi David, Does the plugin you develop have any dependencies on the PHP plugin libraries? You can find them under File | Project Structure | Modules | Dependencies. If yes do they have the "Provided...
Community
IntelliJ IDEA Open API and Plugin Development
Problem casting PsiFile to PhpFile in PhpStorm
0 votes
«
First
‹
Previous