Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Mylyn - "open resource" to context
Mylyn - "open resource" to context [message #46460] Thu, 03 April 2008 12:22 Go to next message
Eclipse UserFriend
Originally posted by: ChrisFaulkner.loydspharmacy.co.uk

Hi

I have been using Mylyn for a couple of weeks and I am pretty pleased,
overall. I have a couple of questions - I looked through the FAQ and
couldn't see the answers. So apologies if I missed them.

1. I have an active task, and the "Focus on Active Task" button is enabled
so my package explorer is greatly slimmed down, which I am grateful for
because there are 60-odd projects in my workspace ! I can Shift-Ctrl-T to
add a type to the context, and that class opens. The project containing
that class, if it isn't already there, is added to the context, along with
the .java file. I can Shift-Ctrl-R to open an XML file. The file opens in
the editor but is not shown in my package explorer. It appears that any
resource I open is not added to the package explorer.

If I turn off the "focus on active task", pretty much any file I file I
right click on in the package has "remove from Context" even though the
file isn't in the context.

2. Why is the "link with editor button" greyed out ? If I select a file by
clicking on its edit tab, the default behaviour is to select the file in
the the package explorer (i.e same as link with editor) but sometimes I
don't want that to happen.

I am using MyEclipse (version 6 - Europa) with the latest version of Mylyn.

I don't think it is relevant but I should say that I am using a local task
repository. We use Mantis here as a defect tracking system but
unfortunately, the connector that is available doesn't support our version
of Mantis.

Thanks


Chris
Re: Mylyn - "open resource" to context [message #46516 is a reply to message #46460] Thu, 03 April 2008 14:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mauro.molinari.cardinis.com

Hi Chris!

Chris Faulkner ha scritto:
> 1. I have an active task, and the "Focus on Active Task" button is
> enabled so my package explorer is greatly slimmed down, which I am
> grateful for because there are 60-odd projects in my workspace ! I can
> Shift-Ctrl-T to add a type to the context, and that class opens. The
> project containing that class, if it isn't already there, is added to
> the context, along with the .java file. I can Shift-Ctrl-R to open an
> XML file. The file opens in the editor but is not shown in my package
> explorer. It appears that any resource I open is not added to the
> package explorer.
>
> If I turn off the "focus on active task", pretty much any file I file I
> right click on in the package has "remove from Context" even though the
> file isn't in the context.

I too think there are some synchronization problems between what is
showed by Package Explorer when focused and the contents of the context.
See also my bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221802

> 2. Why is the "link with editor button" greyed out ? If I select a file
> by clicking on its edit tab, the default behaviour is to select the file
> in the the package explorer (i.e same as link with editor) but sometimes
> I don't want that to happen.

I asked the same question some time ago, please see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205548#c1
and Mik's answer in comment #2.

Cheers,
Mauro.
Re: Mylyn - "open resource" to context [message #46545 is a reply to message #46516] Thu, 03 April 2008 15:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ChrisFaulkner.loydspharmacy.co.uk

Thanks for the quick reply. My main reason for posting was just to be sure
that there wasn't some functional part of Mylyn that I wasn't
understanding.

The linking with editor behaviour is only a minor niggle really. Before
Mylyn I tended to run with this on most of the time in any case. I can see
from the bug record that implementing a good solution would be tricky.

The synchronisation definitely looks to be a bug, though.

Chris
Re: Mylyn - "open resource" to context [message #47234 is a reply to message #46545] Tue, 15 April 2008 16:55 Go to previous messageGo to next message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Mylyn automatically turns on editor linking when the view is focused,
since the main use case for turning it off (having the view jump around)
is remedied by focusing the view. The problem is that we can't have the
action look both disabled and checked at the same time, even though
what's happening is that it is staying checked and we're just preventing
the user from unchecking it.

Mik

Chris Faulkner wrote:
> Thanks for the quick reply. My main reason for posting was just to be
> sure that there wasn't some functional part of Mylyn that I wasn't
> understanding.
>
> The linking with editor behaviour is only a minor niggle really. Before
> Mylyn I tended to run with this on most of the time in any case. I can
> see from the bug record that implementing a good solution would be tricky.
>
> The synchronisation definitely looks to be a bug, though.
>
> Chris
Re: Mylyn - "open resource" to context [message #47264 is a reply to message #46460] Tue, 15 April 2008 16:57 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Chris Faulkner wrote:
> Hi
> I have been using Mylyn for a couple of weeks and I am pretty pleased,
> overall. I have a couple of questions - I looked through the FAQ and
> couldn't see the answers. So apologies if I missed them.
>
> 1. I have an active task, and the "Focus on Active Task" button is
> enabled so my package explorer is greatly slimmed down, which I am
> grateful for because there are 60-odd projects in my workspace ! I can
> Shift-Ctrl-T to add a type to the context, and that class opens. The
> project containing that class, if it isn't already there, is added to
> the context, along with the .java file. I can Shift-Ctrl-R to open an
> XML file. The file opens in the editor but is not shown in my package
> explorer. It appears that any resource I open is not added to the
> package explorer.

161834: opening a resource using ctrl shift R that gets opened in
external editor does not result in resource gaining interest!
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161834

> If I turn off the "focus on active task", pretty much any file I file I
> right click on in the package has "remove from Context" even though the
> file isn't in the context.

Yes, this is a limitation and the action will always show if a context
is active. Feel free to file a bug.

Mik
Re: Mylyn - "open resource" to context [message #588838 is a reply to message #46460] Thu, 03 April 2008 14:32 Go to previous message
Mauro Molinari is currently offline Mauro MolinariFriend
Messages: 285
Registered: July 2009
Senior Member
Hi Chris!

Chris Faulkner ha scritto:
> 1. I have an active task, and the "Focus on Active Task" button is
> enabled so my package explorer is greatly slimmed down, which I am
> grateful for because there are 60-odd projects in my workspace ! I can
> Shift-Ctrl-T to add a type to the context, and that class opens. The
> project containing that class, if it isn't already there, is added to
> the context, along with the .java file. I can Shift-Ctrl-R to open an
> XML file. The file opens in the editor but is not shown in my package
> explorer. It appears that any resource I open is not added to the
> package explorer.
>
> If I turn off the "focus on active task", pretty much any file I file I
> right click on in the package has "remove from Context" even though the
> file isn't in the context.

I too think there are some synchronization problems between what is
showed by Package Explorer when focused and the contents of the context.
See also my bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221802

> 2. Why is the "link with editor button" greyed out ? If I select a file
> by clicking on its edit tab, the default behaviour is to select the file
> in the the package explorer (i.e same as link with editor) but sometimes
> I don't want that to happen.

I asked the same question some time ago, please see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205548#c1
and Mik's answer in comment #2.

Cheers,
Mauro.
Re: Mylyn - "open resource" to context [message #588848 is a reply to message #46516] Thu, 03 April 2008 15:31 Go to previous message
Eclipse UserFriend
Originally posted by: ChrisFaulkner.loydspharmacy.co.uk

Thanks for the quick reply. My main reason for posting was just to be sure
that there wasn't some functional part of Mylyn that I wasn't
understanding.

The linking with editor behaviour is only a minor niggle really. Before
Mylyn I tended to run with this on most of the time in any case. I can see
from the bug record that implementing a good solution would be tricky.

The synchronisation definitely looks to be a bug, though.

Chris
Re: Mylyn - "open resource" to context [message #589118 is a reply to message #46545] Tue, 15 April 2008 16:55 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Mylyn automatically turns on editor linking when the view is focused,
since the main use case for turning it off (having the view jump around)
is remedied by focusing the view. The problem is that we can't have the
action look both disabled and checked at the same time, even though
what's happening is that it is staying checked and we're just preventing
the user from unchecking it.

Mik

Chris Faulkner wrote:
> Thanks for the quick reply. My main reason for posting was just to be
> sure that there wasn't some functional part of Mylyn that I wasn't
> understanding.
>
> The linking with editor behaviour is only a minor niggle really. Before
> Mylyn I tended to run with this on most of the time in any case. I can
> see from the bug record that implementing a good solution would be tricky.
>
> The synchronisation definitely looks to be a bug, though.
>
> Chris
Re: Mylyn - "open resource" to context [message #589123 is a reply to message #46460] Tue, 15 April 2008 16:57 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Chris Faulkner wrote:
> Hi
> I have been using Mylyn for a couple of weeks and I am pretty pleased,
> overall. I have a couple of questions - I looked through the FAQ and
> couldn't see the answers. So apologies if I missed them.
>
> 1. I have an active task, and the "Focus on Active Task" button is
> enabled so my package explorer is greatly slimmed down, which I am
> grateful for because there are 60-odd projects in my workspace ! I can
> Shift-Ctrl-T to add a type to the context, and that class opens. The
> project containing that class, if it isn't already there, is added to
> the context, along with the .java file. I can Shift-Ctrl-R to open an
> XML file. The file opens in the editor but is not shown in my package
> explorer. It appears that any resource I open is not added to the
> package explorer.

161834: opening a resource using ctrl shift R that gets opened in
external editor does not result in resource gaining interest!
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161834

> If I turn off the "focus on active task", pretty much any file I file I
> right click on in the package has "remove from Context" even though the
> file isn't in the context.

Yes, this is a limitation and the action will always show if a context
is active. Feel free to file a bug.

Mik
Previous Topic:Wrong context retrieve after eclipse startup
Next Topic:Mylyn 2.3.2 is now available / new update site for ganymede
Goto Forum:
  


Current Time: Fri Mar 29 09:59:55 GMT 2024

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

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

Back to the top