Change perspective on selection [message #195133] |
Wed, 07 September 2005 23:57 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>>
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06828 seconds