|
|
|
Re: how can I be notified when changes were made to workspace? [message #41858 is a reply to message #41540] |
Thu, 07 September 2006 09:06  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------020706010408010702010102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Fabio,
I think listening to the workspace for resource deltas as we do in the
generated EMF editor might be the only way... Perhaps there are hooks
in GMF I don't know about.
Fabio Centineo wrote:
> Hi Ed,
> How can I be notified when e model file change due to a save action of a
> GMF editor ?
> Is this possible ?
>
> Thanks in advance.
>
> Fabio.
>
>
> "Ed Merks" <merks@ca.ibm.com> ha scritto nel messaggio
> news:eba25j$8oj$1@utils.eclipse.org...
>
>> Dzh,
>>
>> If you look in any generated EMF editor you'll find there's a
>> resourceChangeListener field that holds an instance that listens for
>> changes in the workspace. Setting a breakpoint in resourceChanged and
>> watching the events that arrive when you do things like delete a file from
>> the workspace should help you get started.
>>
>>
>> dzh wrote:
>>
>>> How can I be notified when changes were made to workspace? such as adding
>>> or delete files to workspace..
>>>
>>> Best regards,
>>> dzh
>>>
>>>
>>>
>
>
>
--------------020706010408010702010102
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Fabio,<br>
<br>
I think listening to the workspace for resource deltas as we do in the
generated EMF editor might be the only way... Perhaps there are hooks
in GMF I don't know about.<br>
<br>
<br>
Fabio Centineo wrote:
<blockquote cite="midedopkq$vrd$1@utils.eclipse.org" type="cite">
<pre wrap="">Hi Ed,
How can I be notified when e model file change due to a save action of a
GMF editor ?
Is this possible ?
Thanks in advance.
Fabio.
"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:merks@ca.ibm.com"><merks@ca.ibm.com></a> ha scritto nel messaggio
<a class="moz-txt-link-freetext" href="news:eba25j$8oj$1@utils.eclipse.org">news:eba25j$8oj$1@utils.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Dzh,
If you look in any generated EMF editor you'll find there's a
resourceChangeListener field that holds an instance that listens for
changes in the workspace. Setting a breakpoint in resourceChanged and
watching the events that arrive when you do things like delete a file from
the workspace should help you get started.
dzh wrote:
</pre>
<blockquote type="cite">
<pre wrap="">How can I be notified when changes were made to workspace? such as adding
or delete files to workspace..
Best regards,
dzh
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>
--------------020706010408010702010102--
|
|
|
Powered by
FUDForum. Page generated in 0.50933 seconds