I am programming a plugin that uses a virtual tree-like file structure. Basically, it acts the same way as a standard file system containing files, with the difference that these files do not actually exist in a specific place in the file system, but are simply java objects.
Currently, they are supported by the navigator (custom implementation using the Common Navigator Framework) using SetProvider, and interaction with these objects is implemented in the same way as interaction with standard files.
However, now you need to bind markers to these objects. Since I understand the structure of Eclipse, markers can only be bound to * IResource * s, so to achieve this, instead of using * SettingProvider * s, I have to instantiate IResource.
However, the standard implementation only allows you to create resources from the file system. Since there are such things as virtual folders, it must be possible to create virtual resources, that is, resources without an actual location in the file system. But how can I do this? My research seems to be not being conducted anywhere ...
Alternatively, is it possible to achieve the desired functionality (binding markers to objects in the CNF navigator) differently?
Thanks in advance!
source share