resources - Eclipse indexer implementation -
I want to implement the Eclipse plugin, which parses. Property files and misses them with a key for quick search of these files. It should work similar to Open Type or Open Resource, but with the Properties key.
I do not know what is the best practice to implement such a plugin, should it work as a builder? Is it self-registered for workplace changes, and should parse files on the changes? How quickly can I get all * .properties files through the resource API?
To apply such a feature, I would recommend:
-
Scan everyone, on the first run. The files in the workspaces by using the following code in the workspace. The results need to be retained on the disk in some way, so you do not have to scan it at every start.
IWorkspace workspace = ResourcesPlugin.getWorkspace (); Workpace.getRoot (). Accept (New IRSOSOS Visitor () {Public Boolean Visit (IRSSOS Resource) {// Process Processing}}, IRSOsRDAPTHNFINETET, Incorrect);
-
In this way you Will not interfere with them, which could potentially block them on long operations.
Comments
Post a Comment