Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Cancelling PShelf selection
Cancelling PShelf selection [message #30812] Mon, 05 March 2007 15:00 Go to next message
Roland Tepp is currently offline Roland TeppFriend
Messages: 336
Registered: July 2009
Senior Member
Hello,

I started to use the PShelf as a sort of 2 level menu system for
selecting modal views of a JFace application and in my application I
need the ability to cancel the PShelf item selections.

I looked into the code and it seems that canceling a selection is not
supported for PShelf?

Is this the kind of feature that would make some sense to wider audience
or should I just go and hack my way around it by mouse event filtering?
--
Roland Tepp
Re: Cancelling PShelf selection [message #30956 is a reply to message #30812] Tue, 06 March 2007 17:54 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Roland,

So you want to veto a selection? This is not currently supported. Can
you explain further why you would need that feature?

If its important to you, please enter a bugzilla for it.

Regards,
-Chris

Roland Tepp wrote:
> Hello,
>
> I started to use the PShelf as a sort of 2 level menu system for
> selecting modal views of a JFace application and in my application I
> need the ability to cancel the PShelf item selections.
>
> I looked into the code and it seems that canceling a selection is not
> supported for PShelf?
>
> Is this the kind of feature that would make some sense to wider audience
> or should I just go and hack my way around it by mouse event filtering?
Re: Cancelling PShelf selection [message #31097 is a reply to message #30956] Wed, 07 March 2007 13:04 Go to previous message
Roland Tepp is currently offline Roland TeppFriend
Messages: 336
Registered: July 2009
Senior Member
Well - I'm using the PShelf in an unconventional scenario as a sort of
"Accordion menu" system for a "Control panel" style application for a
"kiosk" type device with almost no keyboard and a touchscreen.

We do not want to use traditional menus or toolbar buttons for selecting
individual panels and single tab strip does not cut it either, as the
navigation structure is sometimes up to 3 levels deep.

A reason to veto a selection is mainly needed because I need to do some
processing (e.g. validate and save changes, check permissions, etc.)
based on the selection and decide if the selection change is allowed
before committing to it.

I have worked around it by filtering mouse events for the PShelf and
making selections in code instead. It works beautifully.

Any way, I realized after I asked this question, that I'm not using the
PShelf the way it was really meant to be used and my needs probably
warrant completely different widget (one that probably does not exist yet).

Currently I worked around this
Chris Gross kirjutas mulle midagi seesugust:
> Hi Roland,
>
> So you want to veto a selection? This is not currently supported. Can
> you explain further why you would need that feature?
>
> If its important to you, please enter a bugzilla for it.
>
> Regards,
> -Chris
>
> Roland Tepp wrote:
>> Hello,
>>
>> I started to use the PShelf as a sort of 2 level menu system for
>> selecting modal views of a JFace application and in my application I
>> need the ability to cancel the PShelf item selections.
>>
>> I looked into the code and it seems that canceling a selection is not
>> supported for PShelf?
>>
>> Is this the kind of feature that would make some sense to wider
>> audience or should I just go and hack my way around it by mouse event
>> filtering?

--
Roland Tepp
Re: Cancelling PShelf selection [message #579599 is a reply to message #30812] Tue, 06 March 2007 17:54 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Hi Roland,

So you want to veto a selection? This is not currently supported. Can
you explain further why you would need that feature?

If its important to you, please enter a bugzilla for it.

Regards,
-Chris

Roland Tepp wrote:
> Hello,
>
> I started to use the PShelf as a sort of 2 level menu system for
> selecting modal views of a JFace application and in my application I
> need the ability to cancel the PShelf item selections.
>
> I looked into the code and it seems that canceling a selection is not
> supported for PShelf?
>
> Is this the kind of feature that would make some sense to wider audience
> or should I just go and hack my way around it by mouse event filtering?
Re: Cancelling PShelf selection [message #579704 is a reply to message #30956] Wed, 07 March 2007 13:04 Go to previous message
Roland Tepp is currently offline Roland TeppFriend
Messages: 336
Registered: July 2009
Senior Member
Well - I'm using the PShelf in an unconventional scenario as a sort of
"Accordion menu" system for a "Control panel" style application for a
"kiosk" type device with almost no keyboard and a touchscreen.

We do not want to use traditional menus or toolbar buttons for selecting
individual panels and single tab strip does not cut it either, as the
navigation structure is sometimes up to 3 levels deep.

A reason to veto a selection is mainly needed because I need to do some
processing (e.g. validate and save changes, check permissions, etc.)
based on the selection and decide if the selection change is allowed
before committing to it.

I have worked around it by filtering mouse events for the PShelf and
making selections in code instead. It works beautifully.

Any way, I realized after I asked this question, that I'm not using the
PShelf the way it was really meant to be used and my needs probably
warrant completely different widget (one that probably does not exist yet).

Currently I worked around this
Chris Gross kirjutas mulle midagi seesugust:
> Hi Roland,
>
> So you want to veto a selection? This is not currently supported. Can
> you explain further why you would need that feature?
>
> If its important to you, please enter a bugzilla for it.
>
> Regards,
> -Chris
>
> Roland Tepp wrote:
>> Hello,
>>
>> I started to use the PShelf as a sort of 2 level menu system for
>> selecting modal views of a JFace application and in my application I
>> need the ability to cancel the PShelf item selections.
>>
>> I looked into the code and it seems that canceling a selection is not
>> supported for PShelf?
>>
>> Is this the kind of feature that would make some sense to wider
>> audience or should I just go and hack my way around it by mouse event
>> filtering?

--
Roland Tepp
Previous Topic:resizing rows
Next Topic:How to specify text color for Gallery Item
Goto Forum:
  


Current Time: Thu Sep 24 05:11:30 GMT 2020

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

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

Back to the top