[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: Re: [platform-ui-dev] Accessibility of Workbench toolbar
|
Ajay,
There is no way to set the icon of an action set (or actions within the
action set) programmatically before it is run.
After it is run, you can use setImage on the IAction instance passed to
IActionDelegate.run or selectionChanged.
Note that changing the icon dynamically is not recommended though. Users
expect the icon for a particular action to stay the same (except for
enablement / disablement / hover of course).
Nick
"Ajay" <ajayinfo@xxxxxxxxxxxxxx>
Sent by: platform-ui-dev-admin@xxxxxxxxxxx
12/02/02 10:50 AM
Please respond to platform-ui-dev
To: platform-ui-dev@xxxxxxxxxxx
cc:
Subject: Re: Re: [platform-ui-dev] Accessibility of Workbench toolbar
Hi,
thanx for the response.
Taking into consideration wat u suggested.. would it be possible
to change the gif associated with it programatically. i.e by
default the gif associated with it is declared in the plugin.xml.
Is it possible to change that gif/icon programatically.
thanx
Ajay
On Mon, 02 Dec 2002 Nick Edgar wrote :
>Ajay,
>
>It is only possible to contribute to the main toolbar through
>action sets,
>or through editor action contributions (i.e. from the active
>editor).
>With the new actionSetPartAssociations extension point in 2.0,
>you can
>associate action sets with views and editors so that they appear
>when the
>view or editor is active, if not already visible in the
>perspective.
>
>The main reason for using action sets over programmatic action
>contributions is to avoid having to activate plugins in order for
>the
>actions to appear.
>There are no plans to change this behaviour. Please file a
>feature
>request if this doesn't meet your needs.
>
>Nick
>
>
>
>
>
>"Ajay" <ajayinfo@xxxxxxxxxxxxxx>
>Sent by: platform-ui-dev-admin@xxxxxxxxxxx
>12/02/02 08:22 AM
>Please respond to platform-ui-dev
>
>
> To: platform-ui-dev@xxxxxxxxxxx
> cc:
> Subject: [platform-ui-dev] Accessibility of
>Workbench toolbar
>
>
>Hi,
>I was wondering whether is it really a good idea to restrict
>the
>user from contributing to the workbenchs main tool bar
>dynamically/programatically.
>I know its rather easy to do the same using the actionSets
>extension point. but u need to understand that in many cases
>this
>might not be the ideal solution.
>I have been going thru many articles and news groups posts
>(infatc
>i have myself posted queries..) trying to know as to how to
>achieve this.. nobody seems to know how to do this.
>Im presently using WSAD 4.0.3 which uses Eclipse 1.0. i dont
>think
>there have been any major changes to Eclipse in this respect..
>Cud
>any one please tell me y is it not possible to add a tool bar
>item
>to the workbenchs main tool bar dynamically/programatically. If
>this can be done (i havent found any article which supports
>this)
>then pl do let me know how. there are many people out there who
>are quite intereseted to know abt it.
>thanx
>Ajay
>
>________________________________________________________________
> NIIT supports World Computer Literacy Day on 2nd December.
> Enroll for NIIT SWIFT Jyoti till 2nd December for only Rs.
>749
> and get free Indian Languages Office software worth Rs.
>2500.
> For details contact your nearest NIIT centre, SWIFT Point
> or click here http://swift.rediff.com/
>
>_______________________________________________
>platform-ui-dev mailing list
>platform-ui-dev@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/platform-ui-dev
>
>
>
>_______________________________________________
>platform-ui-dev mailing list
>platform-ui-dev@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/platform-ui-dev
________________________________________________________________
NIIT supports World Computer Literacy Day on 2nd December.
Enroll for NIIT SWIFT Jyoti till 2nd December for only Rs. 749
and get free Indian Languages Office software worth Rs. 2500.
For details contact your nearest NIIT centre, SWIFT Point
or click here http://swift.rediff.com/
_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev