Marcin
- Total activity 48
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 5
- Subscriptions 15
-
Edited Need to create project directory explicitly before each unit test
AnsweredI'm using light unit tests with default fixture:class ProjectTest : BasePlatformTestCase() { var file: String? = null @BeforeEach fun setup() { super.setUp() file = "$... -
Created How simple is to write IntelliJ plugin (remark according documentation)
AnsweredDeveloping IntelliJ plugin be like:Oh! Link to source code! JavaDocs will explain me everything! Checking NotificationAction…Ok, lets see Notification::addAction:Yeah, you got me. Who needs docs...... -
Created Action on save not run on saveDocument
AnsweredHi! I am writing document content (having path and content defined) (in EDT) as:vfsFile.findDocument()?.let { CommandProcessor.getInstance().executeCommand( project, ... -
Created Process resource after created by plugin
AnsweredMy plugin creates resource file in /src/main/resources/ using:WriteCommandAction.runWriteCommandAction(project) { val fileType = FileTypeManager.getInstance().getFileTypeByFileName(ioFile.name) ... -
Created Detect actions on save
AnsweredUse case:My plugin handles external file write and undo operations (acting as rest server - not in scope of this issue). File write adds undo “My Plugin - File Write” labeled operation to stack. Af... -
Edited How to use GeneratorNewProjectWizardBuilderAdapter for Project create only, not Module?
I've created own project generator based on GeneratorNewProjectWizard and registered in New Project/Module dialog using GeneratorNewProjectWizardBuilderAdapter. Works great for creating new projec... -
Created Import module as maven or gradle after creation
AnsweredI created module builder in which user decides of project build tool - maven or gradle. Plugin downloads example maven or gradle files and unzip it to project build path.After opening project I nee... -
Created How to create single module wizard step with generic Name and Location? (direct Create, no wizard steps)
AnsweredI want to create wizard step similar to existing generators (Maven / IDE Plugin) with direct “Create” button:For the moment I can add custom options step to display my fields: But still on next ste... -
Created Document changes not flushed when IDE is not focused
AnsweredI have plugin process running as a thread (executeOnPooledThread) and it performs document update using vfsDoc.setText(content)PsiDocumentManager.getInstance(project).commitDocument(vfsDoc)If IDE w... -
Edited Undo not present after vfs.writeText on non edited file
AnsweredI've got simple action which writes file content as:val file = File("/asd/asd/asd/asd.txt") <- (any project file) vfsFile = VfsUtil.findFileByIoFile(file, true) vfsDoc = vfsFile.findDocument() Com...