This may seem like a "user" question, but I'm asking it here because I need to understand how some of the main Eclipse plugins work, so I can make a similar change.
I've somewhat inherited a codebase for an Eclipse plugin that is used to view and edit source files in a somewhat obscure specification language.Â The plugin produces projects that are Maven Java projects, although the source files are not Java.Â Not that it matters, but the files it edits are called "Yang" files.
The plugin is pretty functionally complete for what it has to do, but it has one basic flaw.Â It compiles the current Yang file well enough (using a parser from another open-source project) while in the editor, but the only time it compiles any other Yang files in the project, or in any project in the workspace, is if I load a particular Yang file in the editor, or if I do a "Project"->"Clean".
This is an annoying issue, because Yang files can "import" other Yang files, and those imported Yang files can define types and other components that are referenced from "importing" Yang files. If I make a change in an "imported" Yang file and save it, I would expect the "importing" Yang file to immediately update based on that change.Â For instance, if the importing file was referencing a field that would be defined in an imported file, but isn't defined yet, and I add that field to the imported file, the importing file should have a red mark immediately disappear.
This is how Java editing works in Eclipse, and I really need this plugin to do the same thing.