Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Peter Gromov
Total activity
2258
Last activity
May 09, 2023 12:44
Member since
July 25, 2008 18:59
Following
0 users
Followed by
1 user
Votes
0
Subscriptions
739
Activity overview
Articles (0)
Posts (3)
Comments (1516)
Sort by recent activity
Recent activity
Votes
Created
April 06, 2016 16:08
For template data languages, it seems that the following should be in your word scanner (should extend DefaultWordScanner and create lexer and iterate all tokens by itself): if (YOUR_TEMPLATE_DATA_...
Community
IntelliJ IDEA Open API and Plugin Development
FindUsages in MultiPsiTree files
0 votes
Created
April 09, 2016 14:05
I see. Bad news is that I can't think of a workaround for this issue, only if you make all changes in the document and then call reparse (or temporarily pretend that your file has just one PSI root...
Community
IntelliJ IDEA Open API and Plugin Development
Bulk PSI modification
0 votes
Created
April 09, 2016 14:23
Returning one language from the view provider and one file from its getAllFiles. Not sure it can work without some unexpected consequences.
Community
IntelliJ IDEA Open API and Plugin Development
Bulk PSI modification
0 votes
Created
May 09, 2016 17:35
Official comment
You can create the file from text (PsiFileFactory) and then use PsiDirectory.add for it to be saved to disk. Or you can do virtualFile.createChildData(this, "a.xml") directly.
Community
IntelliJ IDEA Open API and Plugin Development
Creating new XMLFile programatically
0 votes
Created
May 11, 2016 15:04
Official comment
You should use VFS (or better PSI) to create files, either VirtualFile.createChildData(this, name) or PsiDirectory.add(file) where file = PsiFileFactory.getInstance(project).createFileFromText(). Y...
Community
IntelliJ IDEA Open API and Plugin Development
File creation in my plug-in (undo/redo)
0 votes
Created
May 11, 2016 15:40
I see. Then, instead of runWriteCommandAction, you'd need to create an anonymous WriteCommandAction instance and execute() it, plus override getUndoConfirmationPolicy method. By default it's DO_NOT...
Community
IntelliJ IDEA Open API and Plugin Development
File creation in my plug-in (undo/redo)
0 votes
Created
May 13, 2016 07:39
How did you remove the child, with which code? What do you use this event listener for?
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener - ChildRemoved is not working properly
0 votes
Created
May 17, 2016 08:10
Do you really mean for "findTags.getNameSpace()" to be a string constant? Please provide the full stack trace of the exception.
Community
IntelliJ IDEA Open API and Plugin Development
Insertion of XML tag into xml file
0 votes
Created
May 17, 2016 08:18
Daniel, you can override com.intellij.openapi.editor.markup.GutterIconRenderer#getClickAction and show a popup there, creating it via JBPopupFactory (e.g. factory.createListPopup(factory.createActi...
Community
IntelliJ IDEA Open API and Plugin Development
How to navigate to custom side panel UI by clicking on a gutter icon
0 votes
Created
May 17, 2016 08:25
Then I'd still recommend to use smart pointers, and after anything changes (e.g. in MergingUpdateQueue update queued inside a PSI change listener; I wouldn't do that inside PSI listener directly si...
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener - ChildRemoved is not working properly
0 votes
«
First
‹
Previous
Next
›
Last
»