Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] SelectionAggregator and initial selection behavior

Jens, here's a use case that should show why it behaves as it does...

Have the Package Explorer *and* the Project Explorer open (in the same stack)
Select some stuff in the Project Explorer
Switch to the Package Explorer and select some different stuff
Switch back to the Project Explorer

Now, if the selection worked the way you suggest then hitting delete would delete items from the *Package* explorer which you can't even see ! Deleting elements that the user cannot even see is always considered 'a bad thing' (tm). Also it would mean that many of the tool items associated with editors wouldn't keep themselves up to date correctly since they user the *current* editor's selection to set their state.

Onwards,
Eric


Inactive hide details for "Kübler,Jens" ---07/23/2013 11:27:03 AM---Spending two thoughts on this I can’t see where the benefi"Kübler,Jens" ---07/23/2013 11:27:03 AM---Spending two thoughts on this I can’t see where the benefits are. Most actions, handler and stuff re


    From:

"Kübler,Jens" <Jens.Kuebler@xxxxxxxxxx>

    To:

"Eclipse Platform UI component developers list." <platform-ui-dev@xxxxxxxxxxx>,

    Date:

07/23/2013 11:27 AM

    Subject:

Re: [platform-ui-dev] SelectionAggregator and initial selection behavior

    Sent by:

platform-ui-dev-bounces@xxxxxxxxxxx




Spending two thoughts on this I can’t see where the benefits are. Most actions, handler and stuff react on the active part.
Thinking of copy and paste I’d expect to copy the elements I actively selected and not to copy those that got set by a part activation.
Maybe you have a good example where this is beneficial ?
 
Jens
 
 
    From: platform-ui-dev-bounces@xxxxxxxxxxx [mailto:platform-ui-dev-bounces@xxxxxxxxxxx] On Behalf Of Paul Webster
    Sent:
     Tuesday, July 23, 2013 4:29 PM
    To:
     Eclipse Platform UI component developers list.
    Subject:
     Re: [platform-ui-dev] SelectionAggregator and initial selection behavior
     
    On Tue, Jul 23, 2013 at 9:38 AM, Kübler, Jens <Jens.Kuebler@xxxxxxxxxx> wrote:
    Hi
     
    I’m wondering about the selection behavior of eclipse (referring to E4) when you switch active parts.
    My understanding is that if you actively select an item I’d expect it to be selected but if I simply change views I’d expect the selection to remain stable
     
    We expect the selection (at the window level) to reflect the selection of the currently active part.  So if you switch to a new part, the selection is updated.  This was designed this way deliberately.

    PW



    --
    Paul Webster
    Hi floor.  Make me a sammich! - GIR
    _______________________________________________
    platform-ui-dev mailing list
    platform-ui-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


GIF image

GIF image


Back to the top