Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how can I be notified when changes were made to workspace?
how can I be notified when changes were made to workspace? [message #8381] Mon, 07 August 2006 12:53 Go to next message
Eclipse UserFriend
Originally posted by: dzhpingbo.sohu.com

How can I be notified when changes were made to workspace? such as adding or
delete files to workspace..

Best regards,
dzh
Re: how can I be notified when changes were made to workspace? [message #9873 is a reply to message #8381] Tue, 08 August 2006 09:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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
>
>
>
Re: how can I be notified when changes were made to workspace? [message #41540 is a reply to message #9873] Thu, 07 September 2006 05:43 Go to previous messageGo to next message
Eclipse UserFriend
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
>>
>>
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 Go to previous message
Eclipse UserFriend
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...&nbsp; 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">&lt;merks@ca.ibm.com&gt;</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--
Previous Topic:Showing Attribute Labels in Compartment
Next Topic:Link Mapping - Constraint for one Link
Goto Forum:
  


Current Time: Sun Jul 13 18:45:31 EDT 2025

Powered by FUDForum. Page generated in 0.50933 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top