|
|
|
Re: Dealing with resource removals [message #418187 is a reply to message #418183] |
Fri, 04 April 2008 14:09 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------000604050908070401070500
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Jose,
The way the editor is written, the editor's input is used to create/load
the initial resource in the resource set and all other resources are
demand loaded as a result of proxy resolution and hence will definitely
appear later in the list of resources.
Jose Hernandez wrote:
> Hi Ed,
>
> Does EMF guarantee the first resource in the resource set to be the primary
> resource?
>
>
>
> Thanks
>
> Jose
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:ft53gh$3md$1@build.eclipse.org...
>
>> Jose,
>>
>> I guess you'd need to specialize the two places in the generated editor
>> where the editor is being closed; look for closeEditor. Perhaps we should
>> only be closing the editor when the primary resource (first resource in
>> the resource set is deleted)...
>>
>>
>> Jose Hernandez wrote:
>>
>>> Hi,
>>>
>>>
>>>
>>> I'm trying to deal with scenarios where EMF project A has a resource with
>>> a reference to a resource in EMF project B and the user deletes project B
>>> whilst an editor in the workspace is open on project A.
>>>
>>>
>>>
>>> At the moment EMF closes project A's editor when one completely deletes
>>> project B from the workspace but I would like to change this so that the
>>> editor remains open and I can internally flag all the proxies as missing.
>>>
>>>
>>>
>>> Is there a straightforward way of altering the behaviour of the EMF
>>> generated editor to keep it open when references disappear?
>>>
>>>
>>>
>>> Thanks
>>>
>>> Jos
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02878 seconds