Editor management causing problems [message #32172] |
Tue, 02 October 2007 10:00  |
Eclipse User |
|
|
|
We have an Eclipse editor that implements an SSH Terminal client that
we use to work on remote servers. A problem we have is that when we
activate tasks Mylyn will close this editor in addition the regular
ones. Is there something we can do to fix this? It does not seem
unreasonable that you might have editors that are not for local
resources and I cannot see why Mylyn should close those.
I am not sure what API's exist that Mylyn could use to figure this out.
If you have reasons to not consider this, can you think of any code we
could put in our editor to stop you from closing us?
Mark
|
|
|
|
Re: Editor management causing problems [message #32277 is a reply to message #32242] |
Tue, 02 October 2007 17:25  |
Eclipse User |
|
|
|
Is it possible to use "adaptable" mechanisms instead of explicitly
implementing Mylyn API?
regards,
Eugene
Mik Kersten wrote:
> Yup, you just need to implement IContextAwareEditor and return false
> for canClose(). I just updated the wiki docs to make this clear:
>
> http://wiki.eclipse.org/Mylyn_Integrator_Reference#Task-Focu sed_UI
>
> Note that if this method meets your needs you should create a bug
> report for making it API, since that class is currently internal.
>
> The best place for this kind of question is currently the
> mylyn-integrators mailing list, so CC'ing.
>
> Mik
>
> Mark Phippard wrote:
>> We have an Eclipse editor that implements an SSH Terminal client that
>> we use to work on remote servers. A problem we have is that when we
>> activate tasks Mylyn will close this editor in addition the regular
>> ones. Is there something we can do to fix this? It does not seem
>> unreasonable that you might have editors that are not for local
>> resources and I cannot see why Mylyn should close those.
>>
>> I am not sure what API's exist that Mylyn could use to figure this out.
>>
>> If you have reasons to not consider this, can you think of any code
>> we could put in our editor to stop you from closing us?
|
|
|
Re: Editor management causing problems [message #583014 is a reply to message #32172] |
Tue, 02 October 2007 17:10  |
Eclipse User |
|
|
|
Yup, you just need to implement IContextAwareEditor and return false for
canClose(). I just updated the wiki docs to make this clear:
http://wiki.eclipse.org/Mylyn_Integrator_Reference#Task-Focu sed_UI
Note that if this method meets your needs you should create a bug report
for making it API, since that class is currently internal.
The best place for this kind of question is currently the
mylyn-integrators mailing list, so CC'ing.
Mik
Mark Phippard wrote:
> We have an Eclipse editor that implements an SSH Terminal client that we
> use to work on remote servers. A problem we have is that when we
> activate tasks Mylyn will close this editor in addition the regular
> ones. Is there something we can do to fix this? It does not seem
> unreasonable that you might have editors that are not for local
> resources and I cannot see why Mylyn should close those.
>
> I am not sure what API's exist that Mylyn could use to figure this out.
>
> If you have reasons to not consider this, can you think of any code we
> could put in our editor to stop you from closing us?
|
|
|
Re: Editor management causing problems [message #583029 is a reply to message #32242] |
Tue, 02 October 2007 17:25  |
Eclipse User |
|
|
|
Is it possible to use "adaptable" mechanisms instead of explicitly
implementing Mylyn API?
regards,
Eugene
Mik Kersten wrote:
> Yup, you just need to implement IContextAwareEditor and return false
> for canClose(). I just updated the wiki docs to make this clear:
>
> http://wiki.eclipse.org/Mylyn_Integrator_Reference#Task-Focu sed_UI
>
> Note that if this method meets your needs you should create a bug
> report for making it API, since that class is currently internal.
>
> The best place for this kind of question is currently the
> mylyn-integrators mailing list, so CC'ing.
>
> Mik
>
> Mark Phippard wrote:
>> We have an Eclipse editor that implements an SSH Terminal client that
>> we use to work on remote servers. A problem we have is that when we
>> activate tasks Mylyn will close this editor in addition the regular
>> ones. Is there something we can do to fix this? It does not seem
>> unreasonable that you might have editors that are not for local
>> resources and I cannot see why Mylyn should close those.
>>
>> I am not sure what API's exist that Mylyn could use to figure this out.
>>
>> If you have reasons to not consider this, can you think of any code
>> we could put in our editor to stop you from closing us?
|
|
|
Powered by
FUDForum. Page generated in 0.04106 seconds