[Custom Language Plugin] Add checkboxes to project view tree.

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?

4 comments
Comment actions Permalink

Could you please explain what are you trying to do? 

Sometimes same things done differently in different IDEs or editors. 

0
Comment actions Permalink

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?

0
Comment actions Permalink

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.

0
Comment actions Permalink

Just don't forget about those who is familiar with JetBrains products, but not original editor. They may be confused with such approach.

0

Please sign in to leave a comment.