Help with keeping track of changes to resources [message #149258] |
Wed, 19 April 2006 07:33 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: Roohullah.popal.aeroflex.com
Hi! I am developing a simple plugin which displays the list of files in
folder outside the workspace. I know this can only be implemented through
the linked resource method. I also need to keep track of changes that have
been made to these files(i.e. delete and added etc). The
IResourceChangelistener is not sufficient since it is only appropriate for
changes made by the workspace. I need to monitor the files at all times
and refresh the view to reflect the changes made by other programs or
through windows explorer. As far I know this can be achieved by using the
org.eclipse.core.resource.win32 fragment, but my problem is that i can
locate the fragment in the plugin directory but i cant import it to the
view class. I have looked around for articles on how to use/activate
fragments but found nothing. Can anyone please provide me with some
insight into this issue? examples of how to use this fragment would be
great. Thanks
|
|
|
|
|
Re: Help with keeping track of changes to resources [message #149550 is a reply to message #149258] |
Mon, 24 April 2006 07:59 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: daniel.megert.eclipse.org
Roohulla Popal wrote:
> Hi! I am developing a simple plugin which displays the list of files
> in folder outside the workspace. I know this can only be implemented
> through the linked resource method. I also need to keep track of
> changes that have been made to these files(i.e. delete and added etc).
> The IResourceChangelistener is not sufficient since it is only
> appropriate for changes made by the workspace. I need to monitor the
> files at all times and refresh the view to reflect the changes made by
> other programs or through windows explorer. As far I know this can be
> achieved by using the org.eclipse.core.resource.win32 fragment, but my
> problem is that i can locate the fragment in the plugin directory but
> i cant import it to the view class. I have looked around for articles
> on how to use/activate fragments but found nothing. Can anyone please
> provide me with some insight into this issue? examples of how to use
> this fragment would be great. Thanks
The Windows download of the SDK contains the fragment but you don't need
that fragment directly: it's a user preference whether changes outside
Eclipse are tracked and reported to via resource deltas (see Window >
Preferences > Workspace > Refresh automatically.
Dani
|
|
|
|
Re: Help with keeping track of changes to resources [message #149911 is a reply to message #149903] |
Wed, 26 April 2006 13:09 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Roohulla Popal schreef:
> Thanks! that did the job, but can this preference be set programatically.
Which one? You didn’t quote any context, so I don’t know what you are
talking about. Read op on some netiquette.
H.
- --
Hendrik Maryns
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFET3EPe+7xMGD3itQRAkeQAJ0Zq7A2tC+M+v4tByEfRbESVda+RgCf WRQq
xmq3jOi4xmaQM2/D6zTIJCk=
=0hiJ
-----END PGP SIGNATURE-----
|
|
|
Re: Help with keeping track of changes to resources [message #149918 is a reply to message #149550] |
Wed, 26 April 2006 16:10 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: Roohullah.popal.aeroflex.com
Daniel Megert wrote:
> Roohulla Popal wrote:
>> Hi! I am developing a simple plugin which displays the list of files
>> in folder outside the workspace. I know this can only be implemented
>> through the linked resource method. I also need to keep track of
>> changes that have been made to these files(i.e. delete and added etc).
>> The IResourceChangelistener is not sufficient since it is only
>> appropriate for changes made by the workspace. I need to monitor the
>> files at all times and refresh the view to reflect the changes made by
>> other programs or through windows explorer. As far I know this can be
>> achieved by using the org.eclipse.core.resource.win32 fragment, but my
>> problem is that i can locate the fragment in the plugin directory but
>> i cant import it to the view class. I have looked around for articles
>> on how to use/activate fragments but found nothing. Can anyone please
>> provide me with some insight into this issue? examples of how to use
>> this fragment would be great. Thanks
> The Windows download of the SDK contains the fragment but you don't need
> that fragment directly: it's a user preference whether changes outside
> Eclipse are tracked and reported to via resource deltas (see Window >
> Preferences > Workspace > Refresh automatically.
> Dani
Thanks mate!can this preference be set programatically.
|
|
|
Re: Help with keeping track of changes to resources [message #150379 is a reply to message #149918] |
Sun, 30 April 2006 19:18 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: roohullah.popal.aeroflex.com
CAN ANYONE HELP!
Roohulla Popal wrote:
> Daniel Megert wrote:
>> Roohulla Popal wrote:
>>> Hi! I am developing a simple plugin which displays the list of files
>>> in folder outside the workspace. I know this can only be implemented
>>> through the linked resource method. I also need to keep track of
>>> changes that have been made to these files(i.e. delete and added etc).
>>> The IResourceChangelistener is not sufficient since it is only
>>> appropriate for changes made by the workspace. I need to monitor the
>>> files at all times and refresh the view to reflect the changes made by
>>> other programs or through windows explorer. As far I know this can be
>>> achieved by using the org.eclipse.core.resource.win32 fragment, but my
>>> problem is that i can locate the fragment in the plugin directory but
>>> i cant import it to the view class. I have looked around for articles
>>> on how to use/activate fragments but found nothing. Can anyone please
>>> provide me with some insight into this issue? examples of how to use
>>> this fragment would be great. Thanks
>> The Windows download of the SDK contains the fragment but you don't need
>> that fragment directly: it's a user preference whether changes outside
>> Eclipse are tracked and reported to via resource deltas (see Window >
>> Preferences > Workspace > Refresh automatically.
>> Dani
> Thanks mate!can this preference be set programatically.
|
|
|
Re: Help with keeping track of changes to resources [message #157220 is a reply to message #150379] |
Fri, 16 June 2006 21:26 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
|
roohullah popal wrote:
> CAN ANYONE HELP!
Yes, since it can be found using
ResourcesPlugin.getPlugin().getPluginPreferences() as a Boolean with
a key of ResourcesPlugin.PREF_AUTO_REFRESH. However, since it is
not your own preference and it's controllable by the user, I'd
discourage changing it on your own.
--
- Nitin
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Powered by
FUDForum. Page generated in 0.09261 seconds