[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] REQUEST: Re: Can I initially disable an action that implements IWorkbenchWindowActionDelegate
|
The solution whould be an abitity to trigger the actions on Plugin.startup.
"Nick Edgar" <nick_edgar@xxxxxxx> wrote in message
news:9iv0m9$t9u$1@xxxxxxxxxxxxxxxx
> Using the enablesFor attribute and the selection element in the XML, you
can
> control initial enablement based on how many elements are selected, and
what
> their type and name are.
> There is no way of explicitly setting its enabled state in the XML. If
you
> set it to be disabled in the XML, how could it ever be enabled?
>
> Once the action has been selected once, its code is then running and you
can
> modify its enabled state using any criteria you want.
>
>
>