Open project notification when plugin isn't loaded [message #299433] |
Thu, 16 February 2006 16:22  |
Eclipse User |
|
|
|
Hi,
I need to detect when project with certain nature is opened. I've read
disscusions about this so I know I need to use IResourceChangeListener and
use earlyStartup for case that project is opened while my plugin is not
loaded.
This approach has some disadvantages - loading of my plugin will slow down
Eclipse start and earlyStartup can be switched off.
While going through the newsgroups I've found out that quite many people
need the Open project notification. So I think it's worthy to define new
extension point dealing with this.
It can work like this: there would be extension point allowing to define
nature and class implementing some interface. When project with the nature
would be opened, some method of the class would be called.
Do you think this is a good idea and I should post it bugzilla? Or is
there some other possibility how to solve my problem?
--
Jiri
|
|
|
|
|
|
Re: Open project notification when plugin isn't loaded [message #299586 is a reply to message #299584] |
Mon, 20 February 2006 17:33  |
Eclipse User |
|
|
|
Originally posted by: john.eclipsefaq.org
Well, it turns out that in Eclipse 3.2 an API has been added to do
exactly that. The org.eclipse.core.filesystem plugin has an extension
point where you can register a provider for your virtual file system.
Then, a project can be created with a URI associated with your file
system. This gives you complete control over how that project interacts
with the file system, allowing you to insert a complete virtual file
system, or even augment the local file system with extra virtual files.
If your plugin is the file system provider for a project, it will be
loaded automatically whenever that project needs to access its file
system (which occurs on project open).
--
jt wrote:
> Hi,
>
> I need to activate plugin when project with is opened, because I add
> some virtual files to project. Concretely, project is a view to
> database, different db objects are reprezented by virtual files.
>
> I know that much better would be if I put some layer between tree in
> Navigator and local file system, so that I can provide virtual files
> only when requested.
> I was looking hard for something like that, but I didn't find anything,
> so I just add virtual files when project is opened or when reload is
> requested. Does Eclipse provide some better way?
>
> --
> Jiri
>
|
|
|
Powered by
FUDForum. Page generated in 0.05019 seconds