Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Editor management causing problems
Editor management causing problems [message #32172] Tue, 02 October 2007 14:00 Go to next message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
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 #32242 is a reply to message #32172] Tue, 02 October 2007 21:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: beatmik.acm.org

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 #32277 is a reply to message #32242] Tue, 02 October 2007 21:25 Go to previous message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
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 21:10 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
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 21:25 Go to previous message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
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?
Previous Topic:Mylyn: Where did "Activity Report" go??
Next Topic:important: bugs.eclipse.org is failing for updating attributes
Goto Forum:
  


Current Time: Fri Apr 19 19:17:33 GMT 2024

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

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

Back to the top