AnAction.setEnabled???

hi ...

as i have read in the plugin faq the preferred way of creating buttons
for toolbars is by using AnActions. i want to enable/disable the
ui-representation
of the actions depending on the current state of the program. but clearly
this
is not possible, because there is no reference to the ui-elements.

whats the preferred way of handling such a scenario?

thanks in advance

christian koestlin



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11.09.2003


1 comment
Comment actions Permalink

ActionEvent e= ...;
e.getPresentation.setEnabled(...);

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Christian Köstlin" <christian.koestlin@bmw-carit.de> wrote in message
news:bjt21a$8cv$1@is.intellij.net...

hi ...

>

as i have read in the plugin faq the preferred way of creating buttons
for toolbars is by using AnActions. i want to enable/disable the
ui-representation
of the actions depending on the current state of the program. but clearly
this
is not possible, because there is no reference to the ui-elements.

>

whats the preferred way of handling such a scenario?

>

thanks in advance

>

christian koestlin

>
>
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11.09.2003

>
>


0

Please sign in to leave a comment.