Inside NetBeans. Introduction
Good day. A few years ago, I chose an IDE to develop a plug-in for supporting untyped Java written in C, which has its own compiler. The result was a choice between Eclipse and NetBeans. I tried to analyze large projects in C. Where the first one fell, the second showed good results. The choice fell on NetBeans. I also tried writing projects using JNI. NetBeans’s code analysis, reorganization, and navigation tools are good. The IDE itself is written in JAVA, which I still have to master and researching the internals of NetBeans will help me with this.
So, I joined NetBeans comunity.
As it turned out to be new to parsing and source code analysis, it’s not easy to figure out where to start. Having spent some time, I understand that I am still at the very beginning of the journey.
The first thing I saw was the main NetBeans committers - Russian work (s) in Oracle. I tried to contact one of them. But it’s clear that they are busy people, and I received from him only links to the “How to create support for a new language” page and the developer forum. In everything that is there it is difficult to find the necessary.
The first useful page was DevFaqSourceTreeModuleDescriptions .
NetBeans is a modular application. This means that it consists of parts that are detected at runtime. Some of these parts can even be downloaded and installed or removed at run time.
The module is a library. This is a Java JAR file (Java ARchive) that contains some classes.
NetBeans has a very small runtime kernel that knows how to find the modules that make up the application (the launcher goes through a list of directories - usually called clusters that contain modular JAR files and some XML metadata about them).
Since the language supports C-inserts and the functions for it can be written in C, I need to study a subset of cnd modules, which makes it possible to develop programs in C and C ++.
The second useful resource was nabble.com .
Then the necessary links began to appear:
" How to Write a Simple Code Analyzer Using NetBeans C / C ++ Language Model API
"C / C ++ Pack, Language Model and C / C ++ Navigator Tutorial I will dwell
on this for now.
So, I joined NetBeans comunity.
As it turned out to be new to parsing and source code analysis, it’s not easy to figure out where to start. Having spent some time, I understand that I am still at the very beginning of the journey.
The first thing I saw was the main NetBeans committers - Russian work (s) in Oracle. I tried to contact one of them. But it’s clear that they are busy people, and I received from him only links to the “How to create support for a new language” page and the developer forum. In everything that is there it is difficult to find the necessary.
The first useful page was DevFaqSourceTreeModuleDescriptions .
NetBeans is a modular application. This means that it consists of parts that are detected at runtime. Some of these parts can even be downloaded and installed or removed at run time.
The module is a library. This is a Java JAR file (Java ARchive) that contains some classes.
NetBeans has a very small runtime kernel that knows how to find the modules that make up the application (the launcher goes through a list of directories - usually called clusters that contain modular JAR files and some XML metadata about them).
Since the language supports C-inserts and the functions for it can be written in C, I need to study a subset of cnd modules, which makes it possible to develop programs in C and C ++.
The second useful resource was nabble.com .
Then the necessary links began to appear:
" How to Write a Simple Code Analyzer Using NetBeans C / C ++ Language Model API
"C / C ++ Pack, Language Model and C / C ++ Navigator Tutorial I will dwell
on this for now.