Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Change perspective on selection
Change perspective on selection [message #195133] Wed, 07 September 2005 23:57 Go to next message
Eclipse UserFriend
Originally posted by: kevin.cs.washington.edu

Hello,

How could you make the perspective change depending on what kind of
editpart is selected?

For example, if I have a square and a jpeg in the editing window, and I
select the square, then a toolbar with a "side length" button appears in
the toolbar, but if I select the jpeg, a "brightness" button appears in
the toolbar.

Kevin
Re: Change perspective on selection [message #195157 is a reply to message #195133] Thu, 08 September 2005 14:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Kevin Chiu" <kevin@cs.washington.edu> wrote in message
news:dfo5qr$b2t$1@news.eclipse.org...
> Hello,
>
> How could you make the perspective change depending on what kind of
> editpart is selected?
>
> For example, if I have a square and a jpeg in the editing window, and I
> select the square, then a toolbar with a "side length" button appears in
> the toolbar, but if I select the jpeg, a "brightness" button appears in
> the toolbar.
>
Instead of hiding and showing buttons, why not just disable and enable them
appropriately?
Switching perspectives everytime will quickly become annoying to the user.
---
Sunil
Re: Change perspective on selection [message #195196 is a reply to message #195157] Thu, 08 September 2005 17:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

I don't think he meant switching perspectives, just changing the toolbar.
Kevin, I don't think you can do what you want, but I am not sure. You might
have to just put both the actions on the toolbar and enable/disable them
based on the selection. The platform newsgroup will be the proper place to
inquire about this.


"Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in message
news:dfpg6f$3dr$1@news.eclipse.org...
>
> "Kevin Chiu" <kevin@cs.washington.edu> wrote in message
> news:dfo5qr$b2t$1@news.eclipse.org...
> > Hello,
> >
> > How could you make the perspective change depending on what kind of
> > editpart is selected?
> >
> > For example, if I have a square and a jpeg in the editing window, and I
> > select the square, then a toolbar with a "side length" button appears in
> > the toolbar, but if I select the jpeg, a "brightness" button appears in
> > the toolbar.
> >
> Instead of hiding and showing buttons, why not just disable and enable
them
> appropriately?
> Switching perspectives everytime will quickly become annoying to the user.
> ---
> Sunil
>
>
Re: Change perspective on selection [message #195404 is a reply to message #195196] Fri, 09 September 2005 16:00 Go to previous message
Eclipse UserFriend
Originally posted by: kevin.cs.washington.edu

Arg, the toolbar buttons were supposed to be added dynamically by
seperate plugins, but I guess I need another approach now.

Pratik Shah wrote:
> I don't think he meant switching perspectives, just changing the toolbar.
> Kevin, I don't think you can do what you want, but I am not sure. You might
> have to just put both the actions on the toolbar and enable/disable them
> based on the selection. The platform newsgroup will be the proper place to
> inquire about this.
>
>
> "Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in message
> news:dfpg6f$3dr$1@news.eclipse.org...
>
>>"Kevin Chiu" <kevin@cs.washington.edu> wrote in message
>>news:dfo5qr$b2t$1@news.eclipse.org...
>>
>>>Hello,
>>>
>>>How could you make the perspective change depending on what kind of
>>>editpart is selected?
>>>
>>>For example, if I have a square and a jpeg in the editing window, and I
>>>select the square, then a toolbar with a "side length" button appears in
>>>the toolbar, but if I select the jpeg, a "brightness" button appears in
>>>the toolbar.
>>>
>>
>>Instead of hiding and showing buttons, why not just disable and enable
>
> them
>
>>appropriately?
>>Switching perspectives everytime will quickly become annoying to the user.
>>---
>>Sunil
>>
>>
>
>
>
Previous Topic:Self-Connections When Using BendpointConnectionRouter
Next Topic:Newbie: Making a simple tool
Goto Forum:
  


Current Time: Fri Apr 26 07:33:35 GMT 2024

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

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

Back to the top