[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Can I initially disable an action that implements IWorkbenchWindowActionDelegate
|
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.