[Custom Language Plugin] Add checkboxes to project view tree. Follow
Answered
Hello, I would like to have checkboxes in the source tree. They should be placed next to files with certain extensions.
Is it possible to do?
Please sign in to leave a comment.
Could you please explain what are you trying to do?
Sometimes same things done differently in different IDEs or editors.
I am making plugin for DM language which is programming language for game making platform: BYOND. The screenshot I posted is from
their code editor. Checkboxes are used for including / excluding source files from the solution.
Checkboxes only appear next to files with `.dm` extension, and every project has this `.dme` file which stores informations about which `.dm` files are included (checkbox checked), so compilator knows which files should be compiled and which shouldn't.
Having checkboxes in the file tree would be the most convinient way for people who are familiar with original editor but If it cannot be done then I guess I need to implement new project view pane and only show there `.dm` files that are included in the project, right?
You can use com.intellij.ide.projectView.impl.AbstractProjectViewPane to display your custom tree or other components as additional variant in Project View tool window.
Just don't forget about those who is familiar with JetBrains products, but not original editor. They may be confused with such approach.